Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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

by Corion (Pope)
on Jan 22, 2013 at 13:55 UTC ( #1014662=note: print w/replies, xml ) Need Help??

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

The module's documentation in Net::IMAP::Simple has a code snippet that claims to do Just That. What problems did you encounter when reading the documentation and how could it be made more clear in the SYNOPSIS section of the documentation that the snippet prints out the subject's of all the messages in the INBOX?

  • Comment on Re: How to take subject in Net::Imap::simple 'get'

Replies are listed 'Best First'.
Re^2: How to take subject in Net::Imap::simple 'get'
by Matt™ (Acolyte) on Jan 22, 2013 at 14:15 UTC
    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 ?

      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014662]
[LanX]: hope you find sleep
[shmem]: LanX: which one?
[LanX]: the last
Discipulus yes a very bad day
[shmem]: grandola, vila morena
[shmem]: LanX: ah, that one. You'll get the bug reports also :P
[Discipulus]: upvote me! i'll make pm great again! ;=)
[shmem]: Discipulus reminds me of an irish saying: "I would guess a tomorrow can wait 'til this day is done" :-)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-04-29 22:49 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (534 votes). Check out past polls.