funkymonky has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (mail and news)
the following method selects a folder
$imap->select($folder)
When I trace the response from the server, it looks like this:
%map_status=%{$imap->select("INBOX")};
This command works perfectly, but the PROBLEM is it does not contain the server response.
QUESTION: How do I extract the server response?
Now I want to use this in my program. The function returns a hash reference so I do the following:000E SELECT "INBOX" * FLAGS (\Answered \Flagged \Draft \Deleted \Seen) * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] * 3 EXISTS * 0 RECENT * OK [UIDVALIDITY 1030359672] * OK [UIDNEXT 191] 000E OK [READ-WRITE] Completed
%map_status=%{$imap->select("INBOX")};
This command works perfectly, but the PROBLEM is it does not contain the server response.
QUESTION: How do I extract the server response?
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom