Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > imap and Tmail. Getting whole email with imap

Reply
Thread Tools

imap and Tmail. Getting whole email with imap

 
 
Adam Akhtar
Guest
Posts: n/a
 
      12-13-2008
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/.

 
Reply With Quote
 
 
 
 
Eric Hodel
Guest
Posts: n/a
 
      12-15-2008
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Support for IMAP IDLE in net/imap Abhishiv Saxena Ruby 4 07-04-2009 04:07 PM
net/imap - imap.search "TO" can't find email jasonnaylor Ruby 1 04-16-2008 04:05 AM
Writing IMAP->GMail proxy... Where to go for IMAP RFC help? Jon Fi Ruby 4 10-21-2006 09:00 PM
*WITHOUT* using: ValidateRequest="False" for the whole page (or my whole site).... \A_Michigan_User\ ASP .Net 2 08-21-2006 02:13 PM
Curier-IMAP and imap.create() Henrik Ormåsen Ruby 0 08-19-2006 06:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57