How can I read mail attachment for making it to the payload?

Hi everybody,
in the following my scenario:
I have an incoming message with attachment by the mail sender adapter using PayloadSwapBean (because of other messages I have to use the bean). I want to send this attachment by using the mail receiver adapter to fix E-mail-address keeping the FromMailAddress, the MailSubject and the FileName
without the metadata as additional attachment.
I have found a thread where it is explained how to handle "payload as mail attachment and dynamic filename" by java-mapping. So far so good. My question is: How can I make my attachment to be the payload? How can I read the attachment by java-mapping?
Thanks for help.
Sebastian Linke

USe payloadSwapBean for this to swap your payload and attachment
Edited by: Rajesh on Feb 5, 2009 5:29 PM

Similar Messages

  • TS3899 How can I place an attachment onto outgoing emails on the iPad ?

    How can I place an attachment onto outgoing emails on the iPad ?

    If it's a photo or video, you type out your mail then hold your finger down in the body of the mail to get the pop up to attach a photo.
    If it's another kind of file you have to open it in the app it 'lives' in....for example your word processing app for a document, then look for the little box with the arrow, tap that and you should have the option to send that file to be mailed.

  • After upgrading to ios 5 I can not read mail on my iPad, am I the only one?

    After I have upgraded my iPad 2 to ios5 I get mail but can't read it. Is any anyone experiencing the same problem?

    Try turning the account off and on : Settings > Mail, Contacts, Calendars , then tap the account on the right, slide Mail to 'off', exit settings and go back into the Mail app, and then go back to Settings and slide Mail back to 'on'
    If that doesn't work then try closing the Mail app completely : from the home screen (i.e.not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How can we read some bytes from every line of the file

    How can we read some bytes from the every line of the file moving on to the next line
    without using the read line

    Actualiy readLine() takes more execution time
    for reading a part of line if we can do so without
    readLine() we can save some time...Well, if you knew, beforehand, the length of each line, you could use RandomAccessFile and its seek method, but, since you don't, you would have to read the rest of the line character-by-character, checking to see if it is a newline, in order to place the "cursor" at the beginning of the next line in order to read the next few characters you want.
    So, as you can see, you will need to read the entire line anyway (and if you do it yourself you also have to do the checking yourself considering all three possible end-of-line sequences), so you just as well use readLine().
    Some people may suggest Scanner and it's nextLine() method, but that also needs to read the rest of line (as evidenced by the fact that it returns it), so that is no different than the readLine() (or read it yourself) solution.

  • How can I read mail that is on my hard drive?

    Whew, this is so tough that I can't even really describe what is happening.
    Yet my hunch is that the solution is very easy if you know how to use a computer. (I've been using Macs/PCs for decades but am apparently clueless about certain aspects.)
    I use Mac Mail in OS 10.4.
    I notice that in my Admin/Library/Mail that all my mail is in various folders.
    (There is no Mail folder in my name account, only in Admin. My impression is that I am the Admin and that I don't often use my name account, but I don't really know how that all works.)
    I back up those folders to a remote drive.
    I would look to look at some of that email again.
    The email I would like to look at is in the Sent Messages.mbox folder within the POP-[my email address] folder within the Mail folder.
    If I backup then delete the current "Sent Messages.mbox" folder and replace it with the folder of the same name that has old email in it that I want to look at, I have no luck.
    The program keeps pointing to the current Sent mail even though it's trashed.
    So that part of the program must be looking at mail that is not on my hard drive but which is on a remote email server.
    How can I make Mac Mail look at a folder on the hard drive instead of on the server?
    I have a vague understanding of the mail "On My Mac" vs. mail on the server, but I don't know how to control what the program is looking at. I wish I could just have it "Open" a folder that I pointed to.
    I've been searching and googling about the subject for hours with no luck. I'll will keep trying.
    (I previously had a question here on a related subject. I backed up the old mail and deleted unwanted mail and it still seemed to be in the Mac program. Some folks tried to help me but they suggested that I do things which were very difficult to me, just as download and compare files using a 3rd party program that is something like Spotlight to look at hidden files, I guess, but which doesn't work with 10.4. I forget the name of it. I think I must be missing something really obvious about mail stored on a hard drive versus mail stored on a server, but which is also opaquely handled on the Mac -- that is, a nonexpert might easily mishandle it. But I recently tried taking some of their advice and got nowhere and I see that the question is archived now.)
    Thanks. -- JP

    No, I don't think so. I think I gave all the specifics that I can imagine in my first post. I had email that I received and replied to in my SENT folder. I believe it came in from my POP server and went out that way, too. I backed it up on a remote drive. So there was a SENT folder on that remote drive. Now I'm trying to look at it again. Via the Mail program. I've copied that old SENT folder into my Library>Mail>POP folder where it came from. But I am only able to look at recent/new SENT mail. I want the Mail program to point to that old folder of SENT mail. I'm the only person who uses this computer. All my mail seems to end up in my Admin folder. I do have a Username folder but no mail goes there. It doesn't seem to be the folder/acc't that I use, but who knows. I just type on the computer and use it. I didn't set it up. A friend gave it to me years ago.

  • Hi!! how can i read mails present in the sub folder from outlook inbox

    hi every one...
    i have to read a sub folder present in the inbox from outlook.
    for that i tried as
    Session session = Session.getDefaultInstance(props, null);
    store = session.getStore("pop3");
    store.connect("URL", "USERNAME","PASSWORD");
    inbox = store.getFolder("INBOX/subFolderName");but it shows an error like Folder Not Exist...
    can any one suggest me to solve this problem to read mails present in the sub folder.
    Thank you

    thank you for support guys...
    so if i am using pop3 protocal, it cant read the sub folders present in the outlook inbox ..
    is there any alternative way to achieve this ...?

  • How can i read every"number" value and not only the 1st?

    in the vi only the first "number" value(from the data acquisition)is read in the small can i make every value to be read?every value must be compared with the "numeric" constant,and,if greater the led must turn on.afterwards,when a value which is less than the "numeric" is found the led must turn off.please answer or send mail to [email protected]
    Attachments: ‏152 KB

    The more I look at your program, the less I understand it.
    Why are you setting number = number in a case if SO2 = ""? number always equals number.
    In your sequence frames 1 and 4, you have no control over which write (date or time) happens first. Just placing one function to the left of another doesn't make it happen first if your wiring doesn't create data dependency. Review the section on Data Dependency in chapter 5 of the LabView User's Manual.
    It looks you're writing to and reading from the same file using Write File and Read Lines from Why read back data you just wrote? You have the data on your diagram. If you want to convert it from string to numeric, use a Sring/Number Conversion function from the String palette.
    On Read Lines from (which I'm not sure you even need), you should use a shift register for the start of read offset rather than a local variable for mark after read (chars.). With a shift register, you can initialize it to 0 when the VI starts. Using a local, if you restart the VI, it will try to startup from where you left off the last time, but you just opened the file for create or replace.
    In your sequence frames 2 and 3, why do you wait for the number to be less than the numeric before writing a carriage return to the file? Also, LabView has a End of Line constant which adapts to the expected value for the operating system. That's generally more flexible than a Carriage Return.
    It looks to me like you're overusing control refnums. You don't need to use a control refnum and a property node to set or read a control's value if you can wire directly to the control's terminal.
    I really don't understand what you're doing with pause and variants. I may be missing the point, but it looks like you made this much more complicated than it needs to be. Why not keep it a boolean?
    For your pause-path, you open the file but never close it. You can lose data that way. You also open it using open function 3, create new file. You'll get an error if the file already exists.
    On a general note, your diagram would be easier to read if you were more selective in how you routed your wires: you have wires on top of wires, wires running under sub-VIs, wires running in the frame of a while loop, wires running under labels.
    I think there's a temptation to overuse sequences. I don't think you need one here. As I mentioned in my earlier message, case structures and shift registers will be more useful to you.

  • How can i fix a member for a dimension in the transformation file?

    Hello everybody,
    anyone knows how can I fix a dimension member using the *mapping section of the transformation file in a data upload, I´m trying to fix the member for the Category dimension, I´ve tried an instruction like:
    but it doesnt work, any idea?

    The easiest way is to use the folloowing in the Transformation file:
    Category = *newcol(Actual)
    Hope this jelps.

  • How can I add an icon for an application into the dock?

    I just installed an application that I will using often, but I cannot add it to the dock for some reason. I tried dragging it from the applications menu but that didn't work. How can I get it on the dock? Thanks in advance

    Launch the application and then press the Control key or hold down the mouse/trackpad button while clicking on its icon in the Dock; choose Keep In Dock from the menu which appears.

  • How can I sort a colum for a part off the sheet? Not for the entire shett!

    I only want to sort a part of the sheet. If i sort the colom it always takes the hole sheet. How can i only sort a part of the sheet. Please help me!

    It is not possible to sort just one column of a table, independent of the other columns.
    The solution is to pull the column you wish to sort out of the table, sort it, and put it back into the table.
    To remove a column, Click on the column label to select the entire column. Then grab the title and pull up and away from the Table and drop it on a blank area of the Sheet. To put the column back into the table grab it by the title and hover over the main table, moving slowly until a double vertical line appears where you want to place the column, and let it drop there.

  • How can I make a report for a mistake in the Dictionary application of the iPhone?

    When you highlight something you've written and then you press on "Define"... there is a mistake in one of the entries of the dictionary....How can I make a report to Apple?

  • How can I read out metadata for captions from a Canon photo

    I have to tried to find an answer via Adobe and Google. Still not able to figure out on how to read out XMP metadata for captions out of my photos. Checking the XMP data in InDesign shows info on Camera Make, Exposure etc. But if I use metadata fields from "Caption Setup" like "Camera" the caption shows <No data from link>. Fields where the XMP field name matches (e.g. "Lens") are ok. I need following fields for the caption: Camera Make, Exposure (aperture and speed) and ISO.

    Lets keep it simple then.
    If I take my utf file generated and open and view it in notepad I can see the accented characters. But if I open it in Wordpad , the accented characetrs are corrupted.
    If I then save the file specifiying type Ascii, then the characters are written out correctly.
    What I want to do is to be able to write out the file in ascii format without having to open it in utf-mode and then having to save it in ascii.
    Ie I want the file to be opened in ascii format
    All the characters to be written in Ascii format
    But the source is still a unicode database.
    I have gone through using convert and characters get lost. In fact, at this stage, I'm not sure its possible to do What I need to do.
    Remember I am using an 8 bit character set which is why I have values above 127.
    So basically if you take the word 'Annulé'
    if I view it in wordpad it displays as
    But if I view it in notepad it displays as
    'Annulé' which is because notepad detects that the file has a utf-8 character in it.
    When I save it as type ascii I can then open it correctly in wordpad.
    So I basically want to open this file in Wordpad and have it display Annulé rather than the garbled characters,
    without having to go through the process of opening and saving the file as type ansi.

  • How can I read an input, for example: "Enter number of years: "?

    I am not really "new" to Java, but for a long time I have been using a book that comes with TerminalIO.KeyboardReader and I need to get input without using that class.
    I just need the class required really, but the actual instantiation and the line with the question would be great as well.

    One solution is to use java.util.Scanner: []

  • How can I read and write a Word document keeping the formatting properties

    Hi everybody,
    I am reading a word document and writting it into a XML document. I need to keep the text formatting. Which properties and how I
    can access them using HWPF POI?

    Note: I am already using HWPF POI with java to read the word document.

  • How can I read a crash report?  I thought the MAC "just worked"...

    Anonymous UUID:       8476E677-4539-CF39-5AB6-617525330ECE
    Thu Dec 12 14:26:52 2013
    panic(cpu 0 caller 0xffffff80056dc19e): Kernel trap at 0xffffff80056cdfa0, type 14=page fault, registers:
    CR0: 0x0000000080010033, CR2: 0xffffffffc0fe114a, CR3: 0x0000000001ebc047, CR4: 0x00000000001606e0
    RAX: 0x0000000000000001, RBX: 0x0000000000000001, RCX: 0x0000000000000000, RDX: 0x0000000000000003
    RSP: 0xffffff839412be28, RBP: 0xffffff839412be80, RSI: 0xffffff806208e600, RDI: 0x0000000000000001
    R8:  0x0000000000000001, R9:  0xffffff839412be90, R10: 0x0000000000000020, R11: 0x0000000000000206
    R12: 0x0000000000000000, R13: 0xffffff806208e600, R14: 0x0000000000000003, R15: 0xffffff8050384730
    RFL: 0x0000000000010046, RIP: 0xffffff80056cdfa0, CS:  0x0000000000000008, SS:  0x0000000000000010
    Fault CR2: 0xffffffffc0fe114a, Error code: 0x0000000000000002, Fault CPU: 0x0
    Backtrace (CPU 0), Frame : Return Address
    0xffffff839412bab0 : 0xffffff8005622f69
    0xffffff839412bb30 : 0xffffff80056dc19e
    0xffffff839412bd00 : 0xffffff80056f3606
    0xffffff839412bd20 : 0xffffff80056cdfa0
    0xffffff839412be80 : 0xffffff8005613bdd
    0xffffff839412bef0 : 0xffffff800561e003
    0xffffff839412bf70 : 0xffffff80056c921d
    0xffffff839412bfb0 : 0xffffff80056f3e26
    BSD process name corresponding to current thread: coreaudiod
    Mac OS version:
    Kernel version:
    Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
    Kernel UUID: 1D9369E3-D0A5-31B6-8D16-BFFBBB390393
    Kernel slide:     0x0000000005400000
    Kernel text base: 0xffffff8005600000
    System model name: iMac14,2 (Mac-27ADBB7B4CEE8E61)
    System uptime in nanoseconds: 7973542339463
    last loaded kext at 6101677668198:          4.2.1b2 (addr 0xffffff7f87cd9000, size 20480)
    last unloaded kext at 6188191572777:          4.2.1b2 (addr 0xffffff7f87cd9000, size 16384)
    loaded kexts:          2.0.0          1.60          1.9.5d0          80.14          2.0.9d1          100.14.11          1.0.0          3.0          4.2.0f6          124          2.5.2fc2          3.5.13          8.1.8          1.0.0d1          8.1.8          2.5.2fc2          1.0.10          7.0.0          8.1.8          2.0.4d1          1          1.7.0          4.2.0f6          170.3.5          1.1.12          1.0.0d1          1.0.0d1          35          650.4.4          404          2.4.0          800.21.45          1.4.0          3.6.9b9          2.9.5          650.4.3          2.0          2.0          1.8          2.0          2.0          1.7          153          3          2.9.3f17          170.15          170.15          4.2.0f6          245.13          1.0          10.0.7          2.5.2fc2          1.0.0          1.9.4fc11          1.14          98.7.1          8.1.8          8.1.8          91          4.2.0f6          1.2.1          1.0.0          98.7.1          3.4.12          3.1.6d1          1.0.12d1          5.5.1d27          4.2.0f6          2.5.2fc2          2.5.2fc2          1.0.4          2.3.6          1.0.11d1          2.3.6          3.6.0          2.5.0          2.5.0          2.5.0          1.4.0          650.4.0          650.4.0          650.4.4          1.9.2          2.8.5          600.34          1.0.3b3          1.0.1b4          3.2          2.6.0          650.4.4          2.0          2.0          2.0.0          1.1          278.10          1.0.0d1          7          2          371.1          1.9          21          28.30          2.0          2.8          1.4          1          1.0
    Model: iMac14,2, BootROM IM142.0118.B00, 4 processors, Intel Core i5, 3.4 GHz, 32 GB, SMC 2.15f2
    Graphics: NVIDIA GeForce GTX 775M, NVIDIA GeForce GTX 775M, PCIe, 2048 MB
    Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464444
    Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464444
    Memory Module: BANK 0/DIMM1, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464444
    Memory Module: BANK 1/DIMM1, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464444
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x111), Broadcom BCM43xx 1.0 (
    Bluetooth: Version 4.2.0f6 12982, 3 services, 23 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: APPLE HDD ST1000DM003, 1 TB
    USB Device: BRCM20702 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: FaceTime HD Camera (Built-in)
    USB Device: Scarlett 2i2 USB
    Thunderbolt Bus: iMac, Apple Inc., 23.10

    don't know if this means anything, but the memory test finished:
    Rember Test Results
    All tests passed!
    Total built-in memory: 32 GB
              This is the total amount of physical memory that the computer has installed.  If this figure is not showing the correct amount of memory there may be a problem with one or more installed DIMMS.
    Available memory: 29337 MB
              Available memory is the amount of physical memory that is currently not in use by any other processes.  All available memory will be used for testing when the "All" option is selected. To increase the amount of available memory, you can restart your computer before testing. If you are familiar with the command line (CLI), you can run memtest (the core of Rember) in single-user mode. See Rember help, or for more information.
    Requested amount: All MB
              The total amount of memory requested for testing by the Rember application. Not all requested memory can be allocated for testing. See information on "Available memory" for more information.
    Memory allocated for testing: 29337 MB
              This is the total amount of memory that memtest was able to allocate for testing.  See "Available memory" section for more information.
    Loops selected: 1
              Total loops selected by user for testing. All loops should complete when testing is successful. Test failure when the "Continue on Error" preference is selected will cancel tests before this number of loops has been completed. Users can also cancel testing before this number is reached.
    Loops completed: 1
              Total loops completed by memtest.  Note that the Rember is not always able to identify how many loops ran.  If there are discrepancies between this and the loops selected, the log should be examined to determine exactly how many loops were performed.
    Total execution time: All tests passed!  Execution time: 6911  seconds
              This is the total amount of time that it took to execute the selected tests. Execution time may vary from system to system, and is provided as a guide for determining how long users can expect tests to run based on the amount of memory installed on the system.
    Testing start time: 2013-12-13 00:59:56 +0000
    Testing end time: 2013-12-13 02:55:13 +0000
    Rember version: 0.3.7b Memtest version: 4.22

Maybe you are looking for