XI: Mail - XI - File, all attachments in folder

Hello Group!
I am working on the following scenario: Mail -> XI -> File (XI NW2004 SP19)
The mail adapter picks up the mails form the mail server and the file adapter should save the files to an existing folder. Basically the adapter works fine, but I have problems with attachments. The file adapter only save one file (the mail) to the folder. The attachments won´t be saved to the destination.
Then I found the Module PayloadZipBean (http://help.sap.com/saphelp_nw04/helpdata/de/45/da9358a1772e97e10000000a155369/frameset.htm). In the monitoring I can see all attachments in the payload. So I tried this module to zip all payload contents (as described in: /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework).
But it doesn´t work. No zip file will be created. Do I have to install the PayloadZipBean?
My settings:
Reg. Parameter:
Transport Protocoll: NFS
Message Protocoll: File
Adapter Engine: Integration Server
File name scheme: example.zip  (it just works with .dat - but then only the mail)
File construction mode: Add Counter
Write mode: Directly
File Type: binary
Reg. Module:
Nr____Module Name________________Type___________________Module Key
1 - - - - AF_Modules/PayloadZipBean - - Local Enterprise Bean - - - - 1
2 - - - - CallSapAdapter - - - - - - - - - - - - Local Enterprise Bean - - - - 0
Module Key__Parameter Name__Parameter Value
1 - - - - - - - - - zip.filenameKey - - contentType
1 - - - - - - - - - zip.mode - - - - - - - zipAll
Can anyone help me?
Thanks in advance.
Kind regards,
Martin

Hi Stefan!
Hi Group!
Now the PayloadZipBean works. The reason was, that I try to use variable substition. Without this, it works.
But unfortunatelly, I need the variable substition. The name of the zip or of the target folder should have the name of the mail subject.
In your great blog
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
you use no variable substitution. Do you know how to handle it?
When I use the variable substitution, the following error appears:
com.sap.aii.af.ra.ms.api.DeliveryException: Error during variable substitution:
com.sap.aii.adapter.file.varsubst.VariableDataSourceException:
Caught SAXException while parsing XML payload: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser:
No data allowed here: (hex) 50, 4b, 3(:main:, row:1, col:3)</
Settings of variable substituion:
File name scheme: %subject%.zip
Variable substitution: subject = payload:Mail,1,Subject,1
(this works without the PayloadZipBean)
In my opinion, the reason is the order of module and adapter.
At first, the module PayloadZipBean starts to zip all payloads in one zip. Then the file adapter starts and tries to use the variable substitution. But then there is no access to the first payload anymore --> error.
Does you or somebody else know, how to handle this?
Maybe there is a better solution without the PayloadZipBean. I just want to save all mail attachments to a file system with the name of the mail subject. Unfortunately with the file adapter only the first payload will be saved to the file system - maybe there is a better solution.
Thanks,
Martin

Similar Messages

  • Mail mysteriously duplicated all account and folder info

    Booted machine this a.m. and mail application has duplicated account and folders and .mac has virtually nothing remaining. Any server issues?
    What is the safest way to delete the duplicated acounts and folders without risking losing everything since the .mac account is now for the most part empty.
    iMac 800   Mac OS X (10.4.7)  

    Could you please elaborate? I'm having a hard time understanding (and believing) what you're saying.
    How many accounts do you have and what type are they (POP, IMAP, .Mac)?
    In the Finder, go to ~/Library/Mail/. With that folder open, do Edit > Select All (⌘A), then Edit > Copy (⌘C), and paste it in your reply to this post, to let me see the names of the files and folders present at the root level of the Mail folder.
    Before actually posting that information, you may edit it so that the file/folder names do not reveal any details you wish to keep private, e.g. you may replace any real username with "username" if you wish; similarly, you may disguise any domain names you don't want to be revealed. Try to be consistent in how you disguise those details, though, as we may need to refer to them in subsequent posts.

  • After deleting my mail plist file all of my mailboxes are gone. How do I get them back?

    I followed instructions to fix a preference file in mail and now my mailboxes are gone. How do I get them to show back up in mail?
    I can see them in my ~/Library/Mail/V2 folder, but I don't know how to get them back into mail.
    -Bryan

    Re-enter your accounts exactly as they were before and everything should re-appear.

  • E-mailing AppleWorks files as attachments to non-Mac PCs

    What is the best way or ways to send AppleWorks file attachments to non-Macs in a form in which the poor devils can open them?

    What is the best way or ways to send AppleWorks file
    attachments to non-Macs in a form in which the poor
    devils can open them?
    Assuming the poor devils are (a) using windows and (b) do not have access to AW for Windows, there are a number of ways to do this.
    Firstly if the recipient needs to be able to edit the information in the file you will need to save your AW file in a format they can read AND edit, often RTF or Word for Windows for word processing, Excel or CSV for spreadsheets, JPEG for Draw or Paint and ascii text for Database (although here you will only send the data not the layouts). Use File / Save as to do any of these.
    Secondly if they only need to read or print the information you can save it as a pdf file (via print preview).

  • How to organise Mail contacts & preview all attachments as icon?

    Hi,
    2 quick questions,
    1) When i attach photos or pdfs or whatever to the mail, they show up as previews in the text body...I can right click and select view as icon, but this is a pain when many are attached together. Any shortcut or settings change that can take care of this?
    2) Can I delete some names from the pop up autocomplete contact list? Old email ids, one-time-never-again contacts etc. Basically want to organise the contacts list, preferaby a-la Facebook friends list so I can send mail in one click to FAMILY, college friends, sports gang etc..?
    Thank you.

    Dhruv, Not sure about question 1 but for #2 here's what you can do.
    Go to Mail>Windows>Previous Recipients. In the pop up you can remove the any previous recipients and add others to your address book.
    Once you have these in the address book, you can then create a smart group that points to the groups you want.
    Hope this helps

  • Force Mail (Yosemite) to display all attachments as icons all the time?

    In Yosemite, I need to get rid of Mail's previews of attachments that appear in outgoing email as the previews seem to cause problems for some of my mail recipients. How can I force Mail to display all attachments as icons? Currently the only way is to right click each attachment every time - it's a waste of time to do this all day long.

    Mail only previews single-page documents. They should be simply an attachment to the recipient. If they are problematic, then be sure you select the Edit menu, Attachments > Always send Windows friendly .... If there is still a problem then compress the attachment before sending it - CTRL- or RIGHT-click and select Compress from the context menu.

  • Can Apple Mail store all attachments in one folder

    I have been trying Apple Mail out, and one behavior that I find horribly inefficient is Mail's storing attachments with messages.  In the past I have used applications such as Eudora that had an attachments folder where all attachments were placed.  As long as you left them there or moved them somewhere on the same hard drive, you could click on the attachment in a message and open it.  However, the way I store files is that I usually file the attachments in other folders with other related files.  That way all of my files about a project or topic are all together.  Mail's way would have some files in project folders and other files in Mail's storage folder. So is there a way to have Mail put all of the attachments that come in into a single attachement folder (or even an attachment folder per email account)?  Thanks.

    bruce,thanks for your help. I don't have an advanced button under the storage tab. the message storage is below the advanced button, and when I click the advanced button, it doesn't give me any options for message storage. do you think I am missing an ad on that I should have ? thanks and happy thansgiving

  • I have an iPad 1. Using e-mail why do all my received attachments end up as winmail.dat files?

    I have an iPad 1. Using e-mail why do all my received attachments end up as winmail.dat files?

    http://support.apple.com/kb/TS1506
     Cheers, Tom

  • What is the recommended tool to convert all of my email and their attachments in one stroke to pdf files in the same folder structure that emails are stored in

    I have thousands of emails creatively stored in a host of sub folders. I would like to see if anyone knows of a tool that I can point at TB and convert all of my files into a similar file structure with the attachments embedded into the emails. I don't want much I realize. I bet there is a tool out there that will get me close.

    I don't know of a way to produce pdfs in a simple way (probably with a pdf printer driver), but if you export or save messages as eml files, the attachments are embedded in the emls, and emls can be read by most email programs. Besides saving through Ctrl-S, exporting complex folders to eml format is probably best done with [https://addons.mozilla.org/en-us/thunderbird/addon/importexporttools/ ImportExportTools].

  • All mail is being downloaded to Junk Folder

    Since I upgraded to Snow Leopard, every time I do "Get Mail", all the newly downloaded mail goes into the Junk Mail folder, but none of it is marked junk! I am using the same Junk preferences I used in Leopard. If I uncheck "enable junk mail filtering", the Junk Folder disappears and so does my mail. But when I re-enable junk mail filtering, the mail reappears. I have tried rebuilding both the inbox and the junk folder, no joy. At this point, I have to move all downloaded mail from the junk folder to the inbox, then mark all junk mail as junk. What might be the solution to this problem? Should I delete the Mail preferences file?

    Problem solved. Ken Gani on the Tidbits said it sounded like a mail rules problem. When I deleted the Mail-tags rules, which were left over from a demo version which I had installed many months ago on Leopard (Mail 3.6) the problem went away.

  • Problems with Adobe pdf files as attachments in Mail

    I have 4 Adobe pdf files that I can open and view without a problem.
    The minute I try to attach them to an email to send to someone else, they show in the email as blank pages with the message that in order to be viewed, a more recent version of Adobe needs to be downloaded. It doesn't make sense - if my Adobe is up to date enough to open them normally, why can't Mail open them as attachments?
    Flummoxed!

    I have sent you an email reply with the following text:
    I would not say things are exactly OK, but here is what I found out:
    The two documents were produced by the program described at the link below:
    http://www.adobe.com/products/livecycle/designer/
    The forms, which would open in Adobe Reader 9, are filled out -- typically forms that you file out on such agency sites are only printable, and cannot be Saved in a filled out form -- yours are filled out with data -- data that could be sensitive. I will delete them very quickly, as soon as we have concluded any discussions.
    Neither file could be opened with Adobe Photoshop CS3, except to show the same error message, which is pretty unusual, nor could they be opened with Graphic Converter any differently, which is equally unusual.
    The file header, when observed in Raw Source, says the application that produced it is unknown -- a good reason Mail nor Preview could open. I am pasting in one of the file headers from Raw Source view:
    --------------090301040801050804080205
    Content-Type: application/x-unknown;
    name="09.02.06 FKR IT34 Assessment 2008.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: inline;
    filename="09.02.06 FKR IT34 Assessment 2008.pdf"
    All-in-all I would say these are very unusual files.
    Ernie

  • How can one send email-sized photo files as attachments in Mail, without the photos appearing within the email?s

    How can one send email-sized photo files as attachments in Apple Mail, without the photos appearing in the body of the email?  If it can be done, it's not at all obvious, at least not to me.  Thanks for any help you can provide.

    The "View as icon" option shrinks the photo to an icon in the sender's Apple Mail, but how it appears to the recipient varies dependingy on what e-mail client he/she uses.
    Using Apple Mail 5.0 (the Lion version) at both ends, the sender can use the "View as icon" option to shrink his view of the photo to an icon, but the recipient also using Apple Mail 5.0 still sees the full photo in line with the message text. The recipient can then use the "View as icon" option to shrink it to an icon, but I don't think that's not what jackofarabia is looking for.
    As far as I know there is no way in the current Apple Mail to do what jackofarabia wants. There should be, but there isn't.

  • Where are all Mail Pref files ?

    Hello,
    my hd crash last week, i bought e new one and install a new OS.
    Today my apple reseller succeded in recovering all my files of my old disk.
    Now i would like to copy all Mail Pref files into the right place so i can recover my Mail like one week ago. I know that somes of the files are in Users>Me>Library>Mail but it's not enought my accounts are not set up !
    I've also .emlx files in .mbox folders that i want to add to my Mail software, but i didn't succeed
    Somebody can guide me in the dark area of Mail
    Thx a lot

    Hello Anterak.
    The other participants have already answered the ~/Library/Preferences/com.apple.mail.plist part.
    I've also .emlx files in .mbox folders that i want
    to add to my Mail software, but i didn't succeed
    Could you please be more precise about this? You should be able to import these into Mail by doing File > Import Mailboxes, choosing Mail for Mac OS X, and following the instructions. Note that Mail wants you to select the folder that contains the *.mbox folders, rather than the *.mbox folders themselves.

  • My 5 year old MacBook Air is telling me it "cannot save information about your mailboxes because there isn't enough space in your home folder.  Quit mail, delete files you don't need, then reopen mail."  What is "home folder," and which files to delete?

    My 5 year old MacBook Air is telling me it "cannot save information about your mailboxes because there isn't enough space in your home folder.  Quit mail, delete files you don't need, then reopen mail."  What is "home folder," and which files to delete? Thanks.

    The home folder is where all of your personal files are kept.
    Best candidates to delete are movies, videos, music and photos since they generally take the most space.
    Don't forget to empry the Trash after you delete the file because the space is not returned until the Trash is emptied.
    Allan

  • How can I open all attachments in mail at once?

    I use Mail to collect messages from the IMAP server rather than logging in through my university's webmail interface.  I often get mail messages with many attachments that all need to be opened at once (example: an admissions application that has 7 or 8 components for me to review).  Clicking on each of them separately is a pain, particularly since I have repetitive strain issues, and the various applications needed to open the attachments (Word and Adobe Reader for example) want to grab focus after every click, forcing me to keep switching programs.
    Is there any way I can tell Mail to just open all attachments to a message at once?

    Try:
    Select the attachments you want to open. (Use click, shift click, command click, as usual.)  Control-click on (one of) the selected attachments. Then select "Open Selected Attachments".
    charlie

Maybe you are looking for

  • Firing off a report from a dashboard.

    Hello everyone- my first post! I hope you guys can help me... As far as I know, you cannot export a table into an excel spreadsheet when that table is in a dashboard. So I created a link in the dashboard soi that when you click on the account name it

  • Calling servlet problem in iPlanet web server.

    Hello, friends. I have installed iPlanet web server 6.0. After installation I am using the default virtual server only. Thus, for all testing pages also, I use the default Document Root only (C:\iplanet\servers\docs\testsite) (I think, here "docs" is

  • Finding base table for a field in a structure !! urgent

    i need to find out where is BUDAT field being populated in the 2lis_04_p_arbpl extractor. When i see where this field is coming from it shows MCAFVG which is a structure. i need to use this field in user exit and need to know which table is it coming

  • Hi third party subcontracting

    Hi Can any body can help me in configuration of third party sub-contracting scenario. With regards GNK

  • Want to get Run By from CI_INFOOBJECTS

    Developed a Java SDK web application. In report details page have three columns SI_KIND , SI_CREATION_TIME ,  SI_NAME want to add one more column Run By. How to get it. Thanks in Advance