Closed (fixed)
Project:
Mailhandler
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
3 Sep 2004 at 01:42 UTC
Updated:
18 Nov 2004 at 03:15 UTC
Jump to comment: Most recent file
Really, this would be two options that go together:
1. Do not delete emails after processing.
2. Only process unread emails.
I have implemented this on my test box, and it is invaluable for testing and debugging. You can keep user emails in the mailbox and easily browse it via another client and selectively "mark as unread" specific emails to be reprocessed. I'll send a patch soon.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mailhandler_optional_delete.patch | 3.71 KB | javanaut |
Comments
Comment #1
javanaut commentedJust thought of another possibility:
moving read messages to another folder.
This would only be useful for IMAP mailboxes, but it would add to mailhandler's flexibility.
Comment #2
javanaut commentedThis patch adds a checkbox to the mailbox edit page to specify whether or not to delete read messages. If read messages are not deleted, then only unread messages are processed.
Comment #3
moshe weitzman commentedlooks good to me. please commit.
-moshe
Comment #4
moshe weitzman commentedapplied. thanks.
Comment #5
joshuajabbour commentedThis patch that was applied was big-time incomplete. It creates a default value for the delete function of '1' (to delete), but upon creation or edit, the value never gets changed.
In mailhandler_save_mailbox(), the value isn't updated in the DB.
This is critical because if you are going to have the checkbox on the settings page, it needs to do something. An admin who unchecks it thinking mail won't be deleted, and doesn't look back to see it's been checked again, will have their mail deleted.
I'll try to make a patch, but for now in my install I've just changed the DB value to 0...
Comment #6
javanaut commentedOk, for some reason, the mailhandler_save_mailbox changes didn't make the last patch. Sorry about that.
Here's a patch against 4.5.0 that fixes those two lines.
Comment #7
javanaut commentedOk, and now try it without debugging enabled..Sorry*2
Comment #8
moshe weitzman commentedfix comitted to HEAD and 4.5
Comment #9
(not verified) commented