Delete specific attachment file through Conversion Channel ?

version : iMS5.2 sp1
O/S : Solaris 2.6 Generic_105181-29
I wanted to delete specific attachment file(ex: ALTDESK.ZIP) through Conversion Channel.
So I set up like below..
1) In mappings file
=================
CONVERSIONS
IN-CHAN=tcp_intranet;OUT-CHAN=tcp_local;CONVERT Yes
==============
I only want to delete attached file from tcp_intranet to tcp_local.
2) msg-INSTANCE/imta/config/conversions
example mail header ::
--- omit ----
MIME-version: 1.0
X-Mailer: iPlanet Messenger Express 5.2 Patch 1 (built Aug 19 2002)
Content-type: multipart/mixed; boundary=--6b2385053506b85
Content-language: ko
X-Accept-Language: ko
Priority: normal
This is a multi-part message in MIME format.
----6b2385053506b85
Content-Type: text/plain; charset=EUC-KR
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
----6b2385053506b85
Content-Type: application/x-zip-compressed
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=ALTDESK.ZIP
- conversions file setting
==================================================
in-channel=tcp_intranet; out-channel=tcp_local;
in-type=application; in-subtype=x-zip-compressed;
parameter-symbol-0=ALTDESK.ZIP; parameter-copy-0=*;
dparameter-symbol-0=ALTDESK.ZIP; dparameter-copy-0=*;
message-header-file=2; original-header-file=1;
override-header-file=1; override-option-file=1;
command="/product/leeky/convert.sh"
============================================
3) /product/leeky/convert.sh file
========================
#!/bin/sh
if [ $? -eq 1 ]; then
echo "STATUS=178030178" >> $OUTPUT_OPTIONS
else
cp $INPUT_FILE $OUTPUT_FILE
fi
=========================
4) The problems I face are
- All of zip files which are filtered is deleted. As you can see 2) I only want to delete ALTDESK.ZIP file
But, all of the zip-compressed files are deleted at the moment.
- This converison channel is work(even if all zip-compressed files are deleted). But sometimes this is not
working(2 or 3 times out of 10). I don not know why.
- Above all, I am not sure 2) and 3) settings are good. English is a second language to me. So it was
not easy to understand conversion channel setting in Admin Guide.
- How can I see the out put of "$OUTPUT_OPTIONS" ? I do not know where I can see that.
Is there anybody to help me ?

The section of the admin guide which can help is:
http://docs.sun.com/source/816-6009-10/channel2.htm#42283
Here there is an explanation of how the mime headers of the message part would align with the entries one would put into the conversions file entry. (The document has an error where it talks about APPARENT_NAME and APPARENT_FILENAME. It should really say the words "NAME" and "FILENAME" respectively).
Based on that document, the MIME headers of your message part :
Content-Type: application/x-zip-compressed
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=ALTDESK.ZIP
will align with a conversions file settiong of:
in-channel=tcp_intranet; out-channel=tcp_local;
in-type=application; in-subtype=x-zip-compressed;
parameter-symbol-0=NAME; parameter-copy-0=*;
dparameter-symbol-0=FILENAME; dparameter-copy-0=*;
message-header-file=2; original-header-file=1;
override-header-file=1; override-option-file=1;
command="/product/leeky/convert.sh"
and a /product/leeky/convert.sh script which reads something like:
#!/bin/sh
grep "$FILENAME" /product/leek/badfiles.list
if [ $? -eq 1 ]; then
echo "STATUS=178030178" >> $OUTPUT_OPTIONS
else
grep "$NAME" /product/leek/badfiles.list
if [ $? -eq 1 ]; then
echo "STATUS=178030178" >> $OUTPUT_OPTIONS
else
cp $INPUT_FILE $OUTPUT_FILE
fi
fi
The lines:
parameter-symbol-0=NAME; parameter-copy-0=*;
dparameter-symbol-0=FILENAME; dparameter-copy-0=*;
tells the conversion channel to make the environment variable $NAME avaliable to your program with a value corresponding to the "name=" clause on the Content-Type line of the MIME headers. The environment variable $FILENAME is made avalable to your program and takes on the value extracted from the filename=" clause on the content-disposition line of the MIME headers.
The document at :
http://docs.sun.com/source/816-6092-10/conversion.html
may help provide other examples.

Similar Messages

  • Mail doesn't attach files through dragging and dropping the files!

    Help please,
    Mail doesn't attach files through dragging and dropping the files on OS X ML, it crashes for a while !!

    Open Disk Utility and Repair disk permissions on the First Aid tab.
    Then, Restart and boot into Recovery Mode by holding down cmd-r on restart until you see a gray screen. When the Mac boots, you will be presented with some options. Choose Disk Utility and select your Hard drive volume (Macintosh HD is the default name). Then, on the First Aid tab, click Repair Disk (not permissions).
    If that doesn't help, you could try installing the 10.8.2 combo updater from the Apple Downloads site:
    http://support.apple.com/kb/DL1581

  • Delete specific attachment from DMS document

    Hi Experts
    I have a requirement to delete specific attachments from a DMS document. I am using the FM 'CVAPI_DOC_CHECKIN' to create the attachments to the document. Im unable to figure out a way to delete a specific attachment from the document. Appreciate any help.
    Neo

    Have you tried with FM CV140_LINKS_DELETE ? and also check the Program MCDOKDEL you will get some FMs to delete documents
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Dec 7, 2010 10:37 PM

  • How to retrieve deleted Siebel Attachment files

    Friends,
    An end-user of my Siebel ERM Application has accidentally deleted some of the file attachments under a record .
    Is there any possibility of retrieving it ?
    I believe that even if you delete attachment files from the GUI , the .SAF files will still not get deleted from the siebel file system directory in the servers.
    I only have the deleted attachments' names (Attachment Title) with me now , as it was present in the Audit Trail .
    Is there any chance if we can get back the row id of these deleted files and thereby retrieve the file's contents from the SAF files ?
    thks in advance .
    Regards,
    Hari

    Luckily I have never been in a scenraio like yours.
    But according to the theory it is correct that SAF files will stay in the Siebel FS, even when the record is deleted.
    From the top of my head the names of the SAF file consist of the Siebel Table name, ROW_ID and REVISION_NUM (and .SAF).
    What you could try to do is to locate the files that don't have a corresponding record in the Siebel Table.
    Keep REVISION_NUM out of the filter.
    But so far I don't think you can find them with just the attachment title.

  • Sending mail with attachment file through plsql

    Hi,
    Now i send the mail using utl_smtp and utl_tcp.
    How can i send a mail with a attachment file. That file is in the local directory. Can any one know just send me to the following mail id [email protected]
    Regards
    Suresh

    Hi,
    Now i send the mail using utl_smtp and utl_tcp.
    How can i send a mail with a attachment file. That file is in the local directory. Can any one know just send me to the following mail id [email protected].
    Regards
    Suresh

  • Problem in uploading attachment files through automation scripts using Oracle Application Testing Suite(OATS)

    I am using OATS tool for writing automation scripts to test a web-based application . But I am facing problem when the requirement is to upload any file from the system to that web application .
    Actually the behavior of the script or I guess of OATS is inconsistent as the attachment file is getting upload sometime and
    fails to do so at the other time .
    I have observed a strange case also ,i.e whenever i am executing the scripts while sharing my system screen on webex meeting
    then the attachment upload results in failure . What can be the proper solution for doing file upload using automation script ??

    Can you please check whether the sync has been taken care before performing the upload operation. If the sync is taken care then the upload should work always

  • Making a PDF with LiveCycle then being able to edit pages, insert pages, delete pages, attach files to document, be readable in Adobe Reader etc.

    We have been working for some time with LiveCycle to creat a documents and have experienced a host of problems with the end product.
    1.  Images inserted into the LiveCycle PDF document often come up as "broken links" after editing the document and resaving it.
    2.  Documents will not display in Acrobat reader unless a digital signature is applied to them and the document is re-saved.
    3.  After making the document, we are unable to use Adobe Pro to insert pages, delete pages, or insert files into the document as attachments.
    The end state was to use the simplicity of LiveCycle to create a document and do most of the hard work, and then save it as a PDF document that could be easily edited with Adobe Pro.  It has proven difficult, to say the least, to figure out how to make this work.
    Thanks in advance for any assistance.

    1- Thank you
    2- It only seems rational that if I make a form with LiveCycle that I should be able to view it with Adobe Reader or Adobe Pro.
    Making a form with LiveCycle to be distrubuted to personnel internally that have Adobe Reader and Adobe Pro and cannot open it without it having a digital signature field in it that has just recently been signed just doesn't make sense.  Nor does it seem to make sense to have to purchase 200 additional licenses just for LiveCycle so that people can open a PDF that was made with LiveCycle.  If I make it in LiveCycle and only people with LiveCycle can open it, what is the purpose of making it to begin with?
    3- This also totally sucks.  In a standard Adobe Doc I can at least attach documents to it?
    So, what, exactly then, is the purpose of LiveCycle if the only benefit it seems to provide is ease of creation, but the end product has way less functionality?
    And how do I go about contacting an Adobe rep on the phone in regards to this without getting "there is no support for this product, go to Adobe.com"
    We have millions of dollars of Adobe software and can't get support other than hunting and pecking in these forums?  Really?

  • How to either hide or delete specific computer files Time Machine

    Hi i have a MBP late 2011 with 10.8.2 on it, and i use a time capsule to store a large amount of files that i use on both my mac and my windows 7 laptops. I am getting annoyed by all the unnessicary or junk files placed in all my stuff such as:
    .ini
    thumbs.db
    .AppleDouble
    .DS_Store
    :2e*
    I would like it so i just dont see these files on either my windows 7 computer or my mac. I have my folder options on my windows 7 laptop set to hide hidden files. Is there a way to set these files to be hidden on a PC? If not is there an application on either windows 7 or mac that can clean these files from my time capsule? I know how to use terminal and CMD well enough to do a step by step.... Also i know how to change windows registry on windows 7.
    Summary:
    Time Capsule used by both Windows 7 PC and MBP
    Time Capsule is FULL of operating system files listed above
    I want to hide or delete all of these files from existence on the time capsule for BOTH my Mac and my Windows 7 computers
    If hiding them on windows/mac i would like to do this once and forever hold my peace
    if deleting them it would be easier on me if there were either a Mac or Windows application or progaram that will do it
    I can use CMD and Terminal very well, you wouldnt need to explain how to open them or such, just say a brief step by step.. Such as: 1) open terminal 2) "insert promt here" )3" next promt/ input"
    On windows i have used Windows Registry many times to edit and tweak thingsdont have to explain anything- just post which Hikey to go to, what to search and then what to edit
    Sorry that's a mouthful but i figured i can save the IT's/ DEV people out there some work by saying exactly what i want and what i know.

    You cannot delete those files.. they are OS files, and created by the OS to track changes etc.
    The Mac by default should not show hidden files. I am not sure why you are showing them unless you turned that on at some point.
    http://apple.stackexchange.com/questions/58709/how-to-view-hidden-files-in-finde r
    That includes the command to turn off show hidden files.
    As for windows, the Unix type file marking will be completely unknown to explorer.. so you would have to go through each file type to hide extension. Windows by default nowadays does hide extensions.. if that is not working then I suspect it cannot actually recognise it.

  • Write Files through return channel

    Hi,
    i'm newer in this forum. I'm working in a MHP project, and I want to comunicate STB with the server (in this case, a PC running Apache Server).
    The question is �can I write a file in the server with data obtained on the STB? I think that it is posible via return channel, but i'm not sure. The idea is to write file (on the server) with the solutions entered by TV user in an application that have some tests. �Are other ways besides return channel to do it?
    Thanks ;)
    Regards

    Hello here you an example of login in my application:
    package es.admin.servlet;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import es.admin.bd.PacienteBD;
    import es.admin.beans.Paciente;
    import es.admin.dao.PacienteDAO;
    * Servlet implementation class for Servlet: LoginPatient
    public class LoginPatient extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
       static final long serialVersionUID = 1L;
        /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#HttpServlet()
         public LoginPatient() {
              super();
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              processRequest(request,response);
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              processRequest(request,response);
         private void processRequest(HttpServletRequest request,HttpServletResponse response) throws IOException
              Paciente paciente = new Paciente();
              paciente.setDni(request.getParameter("dni"));
              paciente.setContrasenia(request.getParameter("contrasenia"));
              boolean ok = PacienteBD.compruebaPaciente(paciente.getDni(),paciente.getContrasenia());
              response.setContentType("text/plain;charset=UTF-8");
              PrintWriter p = response.getWriter();
              if (ok)
                   p.println("true");
              else
                   p.print("false");
    public class PacienteBD {
         public static boolean compruebaPaciente(String dni,String password)
              boolean correcto = false;
              Paciente aux = PacienteDAO.BuscarPaciente(dni);
              if ((aux!=null)&&(aux.getContrasenia().equals(password)))
                   correcto = true;
              return correcto;
    }then you use from the java code :
    new URL ("http://admin/login?usuario=xxx&passw=xxx")
    thats all

  • Sending attachment file through utl_smtp package in oracle 8i

    dear friends,
    i am facing one problem here. I can send mail
    from oracle8i by using utl_smtp or utl_tcp package. but I am not able to send a file
    from perticular directory as attachments.
    how it will be possible. if any one have idea
    about this pl. guide me. it is very urgent.
    thanks in advance
    sunil kant pandey

    Can you provide me a sample code which sends a mail using utl_snmp package ?
    thanks in advance,
    kalpen.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by [email protected]:
    dear friends,
    i am facing one problem here. I can send mail
    from oracle8i by using utl_smtp or utl_tcp package. but I am not able to send a file
    from perticular directory as attachments.
    how it will be possible. if any one have idea
    about this pl. guide me. it is very urgent.
    thanks in advance
    sunil kant pandey<HR></BLOCKQUOTE>
    null

  • [HELP] Send email with attachment  files from application server

    How can i send email to users with pdf/xls attachment files through job with pl/sql , but the files are on application server.
    I've tried using UTL_MAIL but it's not working, cause the file & DIRectory setting should be inside of database server. Should I copy the files from report server to database file system or any other techniques so there's no need to use the physical files?
    Please help!
    Thank you

    Hi,
    Thanks for your help, hoek & alvinder...
    I've tried the java send mail suggest by alvinder, and i got an error if i fill the Sender parameter with AutoMail :
    status:1 javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: 553 5.5.4 <AutoMail>... Domain name required
    Then i changed the Sender with valid email address :
    status:1 javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: 501 5.1.8 Domain of sender address [email protected] does not exist
    What could be wrong with this? Please help me... since i dont understand java programming :)
    I 'm still trying to find out
    Thank you very much

  • Adding disclaimer file as an attachment on outgoing mail through Conversion

    I'm using iMS 5.2 and i'm currently using the conversion channel to append a disclaimer to all outgoing messages (Internet only) but the boss would like to get the discloser in a text attachment instead of appended to the e-mail.
    has anyone played with that?

    Hello,
    Are you using the standad sap function module or using OLE objects to generate excel?
    First try creating the excel file in foreground and see if the data is being populated.
    Kind Regards,
    Niky.

  • I am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!

    i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
    When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
    Please HELP!!!!!! Getting second thoughts on Lion!!!!

    Hi b,
    Have you restarted yet?

  • Why can I no longer delete specific messages on my iphone5?  There now is only an option to Delete All i.e. the entire conversation.

    Why can I no longer delete specific messages on my iphone5?  There now is only an option to Delete All i.e. the entire conversation.  Can this be resolved.

    I don't know what to tell you if you really are running iOS 5 but on iOS 8 when you hold down a message you get the options Copy and More. When you click more you can select a specific message and click the trash can to delete just that message. Check and see if you have that as an option.

  • How to send image file through mail without   any attachment

    Plz tell  me how to send image file through mail without any attachment  ( i mean not converting  that image into pdf or any format )  i want to send that text or image  through mail .

    Hi Sandeep,
    I think you can setup the type of email in Shared office Settings in transaction S016.
    There is an option called <Preset document classes>
    You choose this pushbutton to branch to the maintenance screen for the document classes that are directly displayed to users in the Business Workplace for selection when they use the Create function. The name under which the documents are displayed can also be maintained.
    http://help.sap.com/saphelp_nw70/helpdata/en/6c/69c30f418d11d1896e0000e8322d00/content.htm
    Haven't tried it though.
    Regards,
    Siddhesh

Maybe you are looking for

  • Cl_xml_document and type RAW on Unicode systems?

    Cheers guys, I'm using a cl_xml_document for exporting data from but000 to an XML file. Works fine, except for the PARTNER_GUID which seems to be interpreted as chars (it's raw bytes), eg. the GUID "0E1E1FFCF746D14CADEF2D3EBEAEB21B" becomes "Dh4f/PdG

  • Request for Sample SAP Archive Project Plan

    Dear SAP Practitioner My firm is in the mist of planning for SAP Data archiving project. We are looking for sample SAP Data Archiving Project plan and other related documentations. We sincerely hope that you can share for the knowledge of our firm an

  • Itunes wont play my music - need help

    I just downloaded and installed the new version that has this Genius garbage on it. Ever since I did that my Itunes will not play any music off of my Ipod. I have the 30 gb classic version. Now it plays on my home computer where the Itunes is syncd a

  • After upgrade to 12.1.0.2 lots of archivelogs are created

    Hi, I upgraded my OMS & agents from 12.1.0.1 to 12.1.0.2 - one system upgrade and new I'm facing a problem, that the databse is filling up my FRA in repository database. After upgrade it writes 10G of archive logs in ~12h..which very strange.. Before

  • This website is terrible!!!!

    So after another 2 years I'm eligible for an upgrade. When I go to the upgrade section and click on a phone for one it doesn't tell me which phones require no data plan and two doesn't load anything! It just sits they with a loading bar which eventua