How to access Mail-Attachments in XI 3.0?

Hello everyone,
We have a scenario, where a Mail with attached Files (text, pdf) is sent to the XI. I would like to write a module which accesses the Mail-Attachments, retrieves their content and appends the Base64-encoded content to the payload. I've tried several things, took inspiration from existing Module-Beans, but i never really came to the point that i have the attachment-name and content to do the Encoding.
Could anyone give me a hint what is a proper way to achieve this?
Or is there probably a more elegant method to access Mail attachments within XI (3.0)?
Thank you,
Magnus

This is an example for getting the file name of the attachment:
http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
To read the attachment, you just use replace getDocument by getAttachment or getAttchmentIterator
https://help.sap.com/javadocs/pi/SP3/xpi/com/sap/engine/interfaces/messaging/api/Message.html
Check the source of the sample module to see how it works.

Similar Messages

  • How to send mail attachments using java mail

    can any one help how to create mails attachments using java mail

    you can do it like this:
    Message msg = new MimeMessage(session);
    String fileAttachment = "c:/test.txt";
    Multipart mp = new MimeMultipart();
    BodyPart bp = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(fileAttachment);
    bp.setDataHandler(new DataHandler(fds));
    bp.setFileName(fds.getName());
    mp.addBodyPart(bp);
    msg.setContent(mp);
    ...

  • How to access mail remotely

    How can I access my mac.com or me.com email from a different computer, such as in a hotel lobby?  Other posts have suggested simply logging onto me.com or icloud.com and then "sign in to mail."  Whenever I log onto me.com or icloud.com, I get taken to an icloud welcome page that gives me several options for installing an icloud account.  there is no option for signing into mail.  Obviously, I don't want to install anything on a hotel computer, even if I could!  Any ideas for how to access mail?

    If you go to www.icloud.com you should get this screen
    Once you sign in using your Apple ID you should have access to your iCloud data including mail sent to you iCloud email address.
    Is this not what you see?

  • How to Print Mail Attachments????

    nother dumb newbie Mac question from GBH:
    I get lots of e mails with attachments. How can I select the Print option and have it automatically also print all attachments as in Windows, rather than having to print the email, then open up each attachment and print then each individually as I am having to do now

    Hello,
    In Mail, only those attachments that View in Place will print with the message, in my experience. Those that must be opened with another application (such as Word docs or multi-page PDF) will not.
    What attachments did you find to print in this fashion with Windows?
    Ernie

  • How to access Mail after I had to totally reload OSX10.8 on my iMac

    Recently I had a total crash on my iMac i3 (8GB memory, 3.2GHz and a WD MyBook Studio 1TB external hard-drive) and which as a result I have had to completely reload everything. So far OK till I came to restoring from my hard-drive. This had my total backup but I have been unable to unlock the drive as it won't respond to my password. Now I have managed to load the essential software but for some unknown reason I can't open my "Mail" I can't even open a new account so have had to access email through my browser.
    Has anyone any suggestions as to how I can reopen my Mail app and if  at all possible to somehow unlock my hard-drive?
    Hoping someone can answer my help call!

    Which drive or folder is locked? In Finder do Get Infos...

  • How to access gmail attachments shown (paperclip) ? cursor hovering shows title/quantity will not open.

    firefox browser of choice. unable to open attachments. with text embedded photos it is hit/miss; some open, some will not. no problem opening either in chrome or i.e.. tried the "network.http.spdy.enabled" toggle (three listed: .v2 & .v3). tried one, then all three without success. with no success, i reset all to "true". equipment: vista stand-alone with comcast cable

    Hi there,
    Sorry about your issues with gmail attachments. Is this a recent problem in Firefox for you? I'm guessing you're a long-time Firefox user and that this is a fairly recent problem for you. If so, this could be due to problems with your local cache for gmail.com. What you could try is to clear the cache to see if that takes care of the problem: [[How to clear the Firefox cache]]
    Please let me know if this solves the problem so I can tick this off of my todo list - or please let me know if you need more help and I'll get on this again to sort it out for you!
    Thanks,
    David

  • How to access mail in a second email address

    I have hotmail and yahoo. I can access all of my folders in hotmail but only inbox and trash in yahoo. How can I correct this problem?

    Set your Yahoo account up in Thunderbird again, but this time using IMAP, if possible. It's been so long since I looked at yahoo that I can't remember if they support IMAP.

  • How to keep mail attachments synced across iPhone and Mac?

    Hardware: iPhone 4 with iOS 5.0.1, MacBook Pro 10.7.2.
    Software: Mail
    Services: Yahoo mail
    Issue: If I view an email on my phone without opening the attachment, the same email then appears on my Mac but without the attachment. The attachment is still present if I log on to Yahoo webmail.
    This issue is causing me a lot of hassle and I risk missing important work related attachments when these are not flagged in the email message.
    Is there a fix?

    Hi there,
    I have the similar problem and I was hoping that a solution has been derived by now.
    Actually, already using iPhone, recently switched from PC to iMac and have a small issue with Mail that whenever I open any emails on my iPhone it marks the same email on iMac as "Read" and vice versa.
    I need to keep emails on both devices as "UNREAD" until I open the email on that particular device. I do not want to automatically mark (sync) the email on iMac which I open on iPhone and vice versa.
    Any help appreciated!
    Cheers!

  • How to access mail on new iPhone

    Just got a new iPhone, how do I access my email. It was working on my old iPhone.
    Thanks

    Just open mailbox and setup your email account to access yor emails..

  • How to access mail if different users use same email - sent, trash, etc, are not the same in both user's thunderbird. How do I fix that?

    I have different users on my computer, me, spouse, etc. We share the same email. I have thunderbird loaded correctly in one account. In the other account it only grabs the inbox messages, not the sent messages. How do I get it so both thunderbirds work in both accounts on the same computer? Right now I need to switch user to view the sent emails that are sent from the other account.

    IMAP will sync messages, but if your sharing on a single computer you would probably be better off sharing the same profile. It is not as if you will both be using it at the same time. The information in this link should help with that.
    http://kb.mozillazine.org/Moving_your_profile_folder_-_Thunderbird

  • How to retrieve mail attachments from deleted messages?

    I've erased by accident some emails with attachments. I can recover the messages without any problem, but the attachments appear to be only empty files 0 kb.
    Anyone can help?

    nevermind.

  • Please help! is there a (easy) way to remove/copy files to ext HD without changing ANY date? An d how about e-mail attachments, they also change all dates

    Dear forum readers
    All I want is to copy my pics to another disk without MAC OS change the date on wich I shot them. Pics, sent to me by e-mail also loose there original date. I understand the difference between making a new file by copying, but I don't understand why it change when I remove them.

    There are two kinds of metadata involved when you consider  jpeg or other image file.
    One is the file data. This is what the Finder shows. This tells you nothing about the contents of the file, just the File itself.
    The problem with File metadata is that it can easily change as the file is moved from place to place or exported, e-mailed, uploaded etc.
    Photographs have also got both Exif and IPTC metadata. The date and time that your camera snapped the Photograph is recorded in the Exif metadata. Regardless if what the file date says, this is the actual time recorded by the camera.
    Photo applications like iPhoto, Aperture, Lightroom, Picasa, Photoshop etc get their date and time from the Exif metadata.
    The problem is that the Finder doesn't work with Exif. You need to use an app that understands Exif.
    Regards
    TD

  • How to open mail attachments sent in wrong format

    when I attempt to open email attachments it states; wrong fomat-may be corupt in text edit.  In file I try open but am not allowed to open/save to a new format and attchment is blank.  Do I need to install word or any other software?
    Thanks for helping

    What kinds of attachments are these? You must have an application that can open the attachments.

  • How to access answer in crowdsupport

    dont know how to access mail in crowd support

    At the top right side of the page, click on the mail envelope next to your name, as per the picture below 

  • Where are Mail attachments (IMAP)

    can i access mail attachments in "Local Mail" or IMAP based email?
    i have a series of 3-ring binders with resumes and portfolios in them and i am trying to move this "database" to a digital database. since i am not sure that i have sorted all the EMAILS from which these resumes and portfolios came, i don't want to have to find every email sent with these printed documents and it would be much easier to scroll through the attachments in coverflow and grab the ones i need digitally while trashing the corresponding paper version...
    ideas?
    thanks.

    Mail attachments are stored on the server. You need to tap on the attachment to down load them to the iPad. The same holds true for a desktop or laptop computer.
    If your need to view an attachment where you don't have an Internet connection it is best to open the attachment before hand when you an internet connection.
    Message was edited by: David M Brewer

Maybe you are looking for

  • How to pass multiple values from workbook to planning function ?

    Hi, I have created Planning function in Modeler and it has one parameter(Variable represents = Multiple single values). When executing the planning function by create planning seq. in the web template : I see value of variable store data like ...    

  • LV 8.6 will Not Compile in LV 2010 - Labview 10.0 Development System Has Encountered a Problem and Needs to Close

    I submitted this support request to NI on 8/12/2010. When I compile my LV 8.6 app in LV2010 I get this error: "LabVIEW 10.0 Development System has encountered a problem and needs to close.  We are sorry for the inconvenience." I was told to do a "Mas

  • How do I make one corner rounded?

    Hey, Firstly, I'm using Illustrator CS6. I'd like to round a specific corner of a shape (a rectangle to be specific). I've seen in other posts that the CornerEffects.jsx script should work. But every time I select my rectangle, go to File > Scripts >

  • Merchandise category & hierarchy upload using LSMW???

    Hi I am trying to upload Merchandise category and hierarcy using LSMW (BAPI/IDOC method only). For merhcandise category I used message type W_WGRP and it is helping me in changing or reclassification of articles. But I am not able to create new merch

  • Why can't I get onto icloud drive

    I Keep getting asked to enter my birthday. When I go to change my birthday to the correct one I get a message asking me to update my security questions.  When I try to update my security questions I get a flag saying wrong date. After that I have no