Imap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kathiresan
    New Member
    • Aug 2008
    • 2

    #1

    Imap

    Hi I'm trying a windows service that fetches the contents of the mails from my inbox and saves them in a database using IMAP protocol. I've fetched the contents of the mail body using the IMAP command "1 UID FETCH 756 BODY[1]\r\n", where 756 is message UID.

    How can I fetch the attachments so that i can save the attachments in a specific location and i can use them later.

    I've tried a lot to find this but i couldn't get. Few articles gave me an idea to fetch the attachments as an encoded file(Encoded in Base64 format), which i couldn't use.

    further,

    How does the attachments getting stored in the exchange server. Does it have a URL to access.

    If so, is there a way to find the URL of the attachment being stored in the exchange server? So that I can fetch or download them to save it.

    Thanks in advance,
    Kathir
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I think when you say BODY you only get part of the message?
    I didn't think IMAP distinguished between "email body" and "attachment " though, since there's really not a difference at that level, it should be up to the client application to decipher out the attachments?
    Have checked the RFCs on IMAP?

    Comment

    Working...