in reply to Re: Read and manage IMAP mails for me
in thread Read and manage IMAP mails for me

Hm, IMAP provides a stable view of a mailbox (so that you can delete or move things by numeric index) until the next time you select a folder. In order to see changes to an inbox, you typically need to re-select it. I'm suspicious that the code above doesn't show signs of doing that.

I believe there's also a way to get push-notifications from the server, but I don't know the technical details there, just that Thunderbird+Dovecot make that work.

  • Comment on Re^2: Read and manage IMAP mails for me

Replies are listed 'Best First'.
Re^3: Read and manage IMAP mails for me
by adamsj (Hermit) on Jul 03, 2025 at 17:48 UTC
    Good thought! I tried putting $imap->select( $imap_folder ) or die "IMAP Select Error for imap folder [$imap_folder]: $@"; inside the while loop, and still got no joy.
    They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen