Closed Bug 299982 Opened 19 years ago Closed 19 years ago

forward message filter doesn't work if msg quarantining on download turned on.

Categories

(MailNews Core :: Filters, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Bienvenu, Assigned: Bienvenu)

References

Details

Attachments

(1 file)

If message quarantining is turned on for new pop3 mail, auto-forward message
filters won't work on download because they attempt to read the message from the
mail folder, not the quarantined temp file. We could either try to run filters
after we've un-quarantined the message (but that could involve copying the
message twice in the case of a move filter), or we could try to generate a uri
to the temp file message instead of the msg in the mail folder. But the
parsemailbox code doesn't even know about the temp download file, plus the temp
file could get written over in the middle of trying to attach the message, as we
fetch the next message, so I think that's out. We could postpone the
reply/forward filter actions until after the quarantining, perhaps with a timer.
But if there's a subsequent filter action that moves the message, we're
definitely hosed...
Attached patch proposed fixSplinter Review
for local filters, we now remember in the mailbox parser the reply/forward
actions, and after applying the rest of the filters, apply the reply/forward
actions in a second pass. We also remember the hdr we want to apply the
reply/forward actions, so if we move the message to another local folder, we'll
remember that header instead. We only have to remember one header because it's
always the same header.
Attachment #188983 - Flags: superreview?(mscott)
Attachment #188983 - Flags: superreview?(mscott) → superreview+
Attachment #188983 - Flags: approval1.8b4?
Blocks: 301808
Comment on attachment 188983 [details] [diff] [review]
proposed fix

Please get rid of the commented-out NS_ASSERTION
Attachment #188983 - Flags: approval1.8b4? → approval1.8b4+
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: