Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How to take subject in Net::Imap::simple 'get'

by Matt™ (Acolyte)
on Jan 22, 2013 at 14:15 UTC ( #1014668=note: print w/ replies, xml ) Need Help??


in reply to Re: How to take subject in Net::Imap::simple 'get'
in thread How to take subject in Net::Imap::simple 'get'

Thx Corion, I am using this module for the first time. Here what I am trying to do is looping an $imap->get, so I want to get the subject also(with messsges)(now only getting messages). & i dont want to print just all the subjects in Inbox. I want the other scenario. Is there a way to get the subject also witj messages when using the $imap->get ?


Comment on Re^2: How to take subject in Net::Imap::simple 'get'
Re^3: How to take subject in Net::Imap::simple 'get'
by Corion (Pope) on Jan 22, 2013 at 14:20 UTC

    Have you looked at what ->get returns? If you are not familiar with the format of (MIME formatted) emails, I suggest you either follow the example of using Email::Simple for single messages or familiarize yourself with the "wire format" of mail messages. Most likely, the first or second header line will match ^Subject:. I still recommend a module that does the heavy lifting of decoding header lines for you.

      Thx Corion, I got it now.... :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (15)
As of 2014-10-22 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (118 votes), past polls