imap and Tmail. Getting whole email with imap

Discussion in 'Ruby' started by Adam Akhtar, Dec 13, 2008.

  1. Adam Akhtar

    Adam Akhtar Guest

    Hi Im finding the imap docs to be a bit hard to understand. Ive also
    searched on these forums but cant find the answer i need.

    I can access my gmail account via imap fine and i can use "fetch" to
    pull various parts of my emails out using parameters "ENVELOPE" or
    "BODY[TEXT]".

    I want to use Tmail and it requires a complete email in its "raw" (as it
    says on its site) state but how do i use imap to do this. So far i can
    only grab parts of the messge using those parameters above e.g.
    Envelope.attr[:subject] etc and i cant find a parameter in the docs that
    just gives you the email in full.

    anyone help me on this one?
    --
    Posted via http://www.ruby-forum.com/.
     
    Adam Akhtar, Dec 13, 2008
    #1
    1. Advertising

  2. Adam Akhtar

    Eric Hodel Guest

    On Dec 12, 2008, at 21:48 PM, Adam Akhtar wrote:

    > Hi Im finding the imap docs to be a bit hard to understand. Ive also
    > searched on these forums but cant find the answer i need.
    >
    > I can access my gmail account via imap fine and i can use "fetch" to
    > pull various parts of my emails out using parameters "ENVELOPE" or
    > "BODY[TEXT]".
    >
    > I want to use Tmail and it requires a complete email in its
    > "raw" (as it
    > says on its site) state but how do i use imap to do this. So far i can
    > only grab parts of the messge using those parameters above e.g.
    > Envelope.attr[:subject] etc and i cant find a parameter in the docs
    > that
    > just gives you the email in full.
    >
    > anyone help me on this one?


    Read:

    http://www.rfc-editor.org/rfc/rfc3501.txt Section 6.4.5 (page 53)

    You can probably get away with ALL. Otherwise ENVELOPE BODY will get
    what you want. If you don't want to mark the message as read, use
    BODY.PEEK
     
    Eric Hodel, Dec 15, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    213
    Poornima Dhanasekar
    Feb 19, 2009
  2. Henrik Ormåsen

    Curier-IMAP and imap.create()

    Henrik Ormåsen, Aug 19, 2006, in forum: Ruby
    Replies:
    0
    Views:
    188
    Henrik Ormåsen
    Aug 19, 2006
  3. jasonnaylor
    Replies:
    1
    Views:
    268
    jasonnaylor
    Apr 16, 2008
  4. George Cooper

    Extract data from email - Tmail, Hpricot

    George Cooper, Sep 4, 2008, in forum: Ruby
    Replies:
    2
    Views:
    113
    Geo _C
    Sep 11, 2008
  5. Dustin Webber

    Tmail + IMAP + Attachments

    Dustin Webber, Nov 5, 2008, in forum: Ruby
    Replies:
    3
    Views:
    136
    Dustin Webber
    Nov 6, 2008
Loading...

Share This Page