Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
1. MailhandlerParser's parse function is not purging messages which are authenticated. The $class->purge_message
call is missing.
2. MailhandlerPhpImapRetrieve's purge_message function also has a small bug.
- imap_delete($result, $i, FT_UID);
+ imap_delete($result, $message['imap_uid'], FT_UID);
Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#2 | mailhandler-1363372-2.patch | 2.21 KB | pereljon |
#1 | mailhandler-1363372-1.patch | 1.62 KB | pereljon |
Comments
Comment #1
pereljon CreditAttribution: pereljon commentedPatch attached.
Comment #2
pereljon CreditAttribution: pereljon commentedHere's patch with git meta-data. Still new to git!
Comment #3
pereljon CreditAttribution: pereljon commentedThink the patch needs a little work still. If multiple emails are submitted at once it looks like only one is processed. Will confirm.Comment #4
pereljon CreditAttribution: pereljon commentedNever mind. Looks like the patch works after all.
Comment #5
Dane Powell CreditAttribution: Dane Powell commentedThanks for the catch and patch, fixed in both branches:
http://drupalcode.org/project/mailhandler.git/commit/ddadf95
http://drupalcode.org/project/mailhandler.git/commit/161646f
Sorry for all of the critical bugs in these releases. I'll try to add a test to make sure the purge function gets called.