morgon has asked for the wisdom of the Perl Monks concerning the following question:
I have a few imap-accounts that I would like to process with a script.
Currently I am using Net::IMAP::Client and I can connect and login without problem.
However I seem to have a problem with the gmail-account.
If I do e.g.
I get an array-ref containing message-ids sorted by date on a "normal" imap-account.my $msg_ids = $imap->search("ALL", "DATE");
But if I try this on a gmail-account I get an undef. However $imap->search("ALL") works everwhere, even with gmail.
So it seems that gmail does not like to sort.
So my question is: How can I hack around this?
Is there a way to treat gmail just like any other imap-account or will it always be a special case?
Would another library do the trick?
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: imap problem with gmail -- RFC 5256
by Discipulus (Canon) on Nov 03, 2017 at 08:20 UTC | |
by morgon (Priest) on Nov 03, 2017 at 11:24 UTC | |
|
Re: imap problem with gmail
by RonW (Parson) on Nov 03, 2017 at 23:14 UTC | |
by morgon (Priest) on Nov 04, 2017 at 01:51 UTC |