OdiReadMail - How to remove prefix in saved attachement file names ?

Hi everybody
ODI keeps adding 'MSG0' as a prefix in extracted attachments. How to get rid of the prefix and keep the original file name as it is in the e-mail ?
Here is the code
OdiReadMail "-MAILHOST=server" "-USER=user" "-PASS=password" "-FOLDER=<%=snpRef.getSchemaName( ""FILE"" , ""D"" )%>" "-PROTOCOL=pop3" "-FOLDER_OPT=NONE" "-KEEP=NO" "-EXTRACT_MSG=NO" "-EXTRACT_ATT=YES" "-USE_UCASE=NO" "-NOMAIL_ERROR=YES" "-TIMEOUT=300" "-POLLINT=1000" "-MAX_MSG=1" "-SUBJECT=Journal des transactions"
Thanks very much !
Edited by: user7372586 on Mar 28, 2013 4:53 PM

Hi / Bonjour,
According to the doc posted on Nicolas Gerard's website, it shouldn't be prefixed by default : http://gerardnico.com/doc/odi/webhelp/en/index.htm#ref_tools/snpsreadmail.html
But the article was posted in 2008 so it might have changed.
You can try to add
"-ATT_PRF="Regards,
Jerome

Similar Messages

  • Mail adapter - how to dinamically change attachment file name in sending

    How can I dynamically change the attachment filename when preparig email to be sent? The attachment is an invoice in XML format and I have to put the invoice number into the attachment file name.
    Thanks in advance.
    Giuseppe.

    Hi,
    Go through this docs.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    Hope these bloga are useful..
    /people/community.user/blog/2006/09/07/email-reporting
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Thanks,
    Satya

  • Mail to File - how to read the attachment file name from the subject.

    I need to use the SHeaderSUBJECT's value in the receiver file adapter's variable substitution.
    This is a Mail to File scenario without design part where the attachment file name comes in the subject of the mail.
    I see the below in the dynamicconfiguration section. How can i retrive the value from dynamicconfiguration section to the filename.
    <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderSUBJECT">PlainAttachment.txt</SAP:Record>
    </SAP:DynamicConfiguration>
    Points will be rewarded.

    Try to use sthg like this in a UDF :
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().getStreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(“http://sap.com/xi/XI/System/Mail”,“SHeaderSUBJECT”);
    String value = conf.get(key);
    or in a JAVA mapping :
    DynamicConfiguration dynConf = (DynamicConfiguration) param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey dynKey = DynamicConfigurationKey.create((“http://sap.com/xi/XI/System/Mail”,“SHeaderSUBJECT”);
    String keyValue = dynConf.get(dynKey);
    param is the map object from the execute() method of your mapping ...
    Hope this helps
    Chris
    Edited by: Christophe PFERTZEL on Apr 23, 2008 11:34 AM

  • How to remove existing password in PDF file?

    I am using Acrobat 6.0, and would like to know on how to remove existing password in PDF file.
    When I try to open the PDF and saveas file using another name, it would not work.
    Does anyone have any suggestions?
    Thanks in advance for any suggestions

    File > Properties. Then under Security change Security method to None; enter the Control password when prompted. Then Save As.

  • How to remove a folder from claud files

    how to remove a folder from claud files?

    Folder (and file) deletion is a two-part process. First you Archive the file from the Files page at https://creative.adobe.com/files, or by deleting it from the Creative Cloud Files folder on your computer. Then you Permanently Delete the folder from the Archive at https://creative.adobe.com/archive.
    Help article: Creative Cloud Help | Manage and Sync files

  • How to remove a roll back segment file in 8.1.7

    Hi,
    How to remove a roll back segment file in 8.1.7 ?
    My RBS tablespace has two datafiles, how can I delete one of them ?
    Thank you.

    You would
    a. Create a new tablespace to hold rollback segments
    b. Create rollback segments in the new tablespace
    c. Bring the new rollback segments online and the old rollback segments offline
    d. Wait for all the old rollback segments to go offline (they'd be in PENDING OFFLINE if there are active transactions)
    d. Drop the old rollback segments
    e. Drop the old rollback tablespace -- after confirming that it has NO active rollback segments and NO OTHER segments at all
    f. Modify your init.ora to specify the new rollback segments in the "rollback_segments=" parameter
    If you want to switch back to the old tablespace name and segment names, you'd do steps a to e and then run them again to recreate the old tablespace name (with 1 datafile, excluding the one you want to drop) and segment names.

  • How to remove a character in a file??

    I'm not getting how to remove a character from a file.Could anyone post a method to do this?Any help would be appreciable.

    Ohhh... and one more thing... unless you're really unlucky, a few "extranious trailing nulls" won't make a jot of difference to the size of the file on disk, each each file "fills" whole blocks anyway, which is 1K (I think) on both fister and *nix... unless of course we're talking "lots" of trailing-nulls, or lots-and-lots of files.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to set specific value of attached file in CRM 2013

    Hi,
    I have a requirement when I attach a file in notes it should has some value in currency. how to assign value for each attachment file?

    Hello,
    That's not possible.
    In case you want to implement it I would suggest to create additional entity, store value in currency inside, add reference to your initial record and store that data in this way.
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • How to remove clear button on message file upload bean item?

    Dear Guru's.
                    How to remove clear button on message file upload bean item .
    Regards,
    Srinivas

    Hi Raghu,
    This is srinivas i am also facing this issue how u achieve this can u share me this is urgent for me .
    Regards,
    Srinivas

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • How can i get message id as file name in Receiver Mail Adapter

    Hi All,
               We are working on file to mail scenario. Client requirement is " Attached file name should be the message id" How can we achieve this.
    Thanks & Regards,
    Purshothamm

    Hi,
    To have the file name as message id, I think the below blogs can help you…
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    Regards,
    Vijay N

  • Set Attached File name to Table Cell

    Hello All,
    I have a scenario where:
    1. I have a dynamic table.
    2.Every Row has a Button for attaching the new File.
    3. When we add new Row to the Table, I want to get the attached file name in the corresponding cell. i.e Cell2 in following example.
    I have tried doing it this way
    The script which I'm using on Add button is
    app.execMenuItem(&quot;AddFileAttachment&quot;);
    var o = event.target.dataObjects;
    var n = &quot;&quot;;
    DataNode.Table1.Row1.Cell2.rawValue = &quot;&quot;;
    if (o !== null) {
              for (var i = 0; i < o.length; i += 1) {
                        n = o[this.parent.index].name;
    var countVal = (DataNode.Table1.Row1.instanceManager.count-1);
    xfa.resolveNode(&quot;DataNode.Table1.Row1[&quot;+countVal+&quot;].Cell2&quot;).rawValue = n;
      But I'm not able to display the attached file name in Cell2 of the Table.
    How can we do it?
    Thanks and Regards,
    Nikhil

    Hello All,
    I even tried doing the same using  http://eslifeline.wordpress.com/2009/04/06/adding-attachments-to-pdf-form/
    But I'm not able to add the file name to the table cell.
    Can anyone please guide me through this?
    Thanks and Regards,
    Nikhil Joshi

  • Decode attachment file name RFC 2231

    Hello,
    according to the [RFC 2231|http://tools.ietf.org/html/rfc2231] , the headers are encoded to something like
    From: =?US-ASCII*EN?Q?Keith_Moore?= <[email protected]>
    How can decode such a string, in Java ? I've found only [this implementation|http://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-javamail_1.4_spec-1.5/src/main/java/org/apache/geronimo/mail/util/RFC2231Encoder.java] from Apache Geronimo. Are there other implementations ?
    Thanks,
    T.

    Your subject talks about attachment file names, but your example uses the From header.
    For attachment file names and other parameters, set the property mail.mime.decodeparameters
    to "true". See the javadocs for the javax.mail.internet package for the list of properties you can set.
    Unfortunately, JavaMail doesn't support the specification of a language ("EN") in addition to a charset
    ("US-ASCII") as in your example. That's a bug that I'll need to fix.

  • Globally removing an illegal symbol from file names in the finder

    I recently discovered that my method of dating files makes use of the illegal symbol, '/'. Now I have thousands of files with that symbol in them and am having trouble transferring them to my new hard drive. Is there a was that I can globally remove that symbol from the file names via the finder?

    Hi
    download filelist.dmg
    Double click on it to open it. Drag the Filelist app' into your Application Folder, a good a place as anywhere to keep it.
    Open the FileList application, it should show as a window.
    Drag a file or a group of files onto that open window- the left hand side pane.
    ... and there you can manipulate the prefix and suffix of the files to give them new file names.
    Create a file in text edit, type something in it, save is as test.rtf, and then drag it into the FileList app and experiment with changing its name.
    When you get the hang of it, do a group of files as a batch.
    I tried to do what you wanted to do in your initial post and was successful, so just have a play around with it.
    regards roam

  • To test how can we use the opt  'logical file name' to name the file based

    Hi Sir/Madam,
               to test how can we use the opt  'logical file name' to name the file based on the selection made in the dtp run for extracting data as flat file.

    Hi Vishali,
    In the DTP select the file location as application server and give the logical file path. The actual file and logical path can be created using transaction "FILE" and "AL11".
    Rest of the process is same as that of extraction from local file.
    Regards,
    Durgesh.

Maybe you are looking for