Open Bug 383792 Opened 18 years ago Updated 3 years ago

Message Filters that forward and then delete a message fail to forward.

Categories

(MailNews Core :: Filters, defect)

PowerPC
macOS
defect

Tracking

(Not tracked)

People

(Reporter: bryan, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 Build Identifier: version 2.0.0.0 (20070326) When I have a message filter that forwards a message and then deletes it, it fails to forward the message. This feature works on the PC version, but fails for a Mac. The new message appears in the Trash, but not in my sent folder, and since I am admin on the smtp server that my client uses, I can verify that it never goes out. This bug occurs regardless of whether you select delete message or move message to -> trash. Reproducible: Always Steps to Reproduce: 1. Setup a message filter to forward a message. 2. Setup the filter to delete the message as the second action. 3. Receive a message that matches the filter. Actual Results: The message appears in the trash, but is never forwarded. Expected Results: The message should first be forwarded, and then deleted. It seems to work fine on the PC version, so I expect this bug only occurs in the Mac version, but I haven't tested to see if solaris or similar versions also see this error.
Jay, Gary do you see this on mac trunk?
CONFIRMED in "version 3.0a2pre (2008052403)" ... works (er, doesn't work) as originally reported. A little more info: 1) Only happens for messages that filter applies to On Arrival into folder. If the message exists already in the folder/Inbox and you Run Filters on that folder, then the message gets forwarded as expected and then deleted as expected. 2) Message Filter Logs show a "Forwarded" log message and a separate "Deleted" log message. Perhaps that logging should not happen unless Tb is really sure than an Action really did happen. Logs look the same both for On Arrival messages and pre-existing messages. I've included example Filter Log messages for failure scenario. ----- Applied filter "Test Forward Delete" to message from Jay Moran <xxx@xx.xxx> - Testing Forward and Delete at 5/25/08 7:41:27 AM forwarded Applied filter "Test Forward Delete" to message from Jay Moran <xxx@xx.xxx> - Testing Forward and Delete at 5/25/08 7:41:27 AM deleted -----
Product: Core → MailNews Core
Status: UNCONFIRMED → NEW
Component: General → MailNews: Filters
Ever confirmed: true
Product: Thunderbird → Core
QA Contact: general → filters
Version: unspecified → Trunk
Similar enough experience that it's probably the same bug: Version: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.4pre) Gecko/20090909 Shredder/3.0b4pre When I set up a filter to forward a message, it fails to forward the message if the message has been retrieved "automatically" (i.e., as a result of "Check for new messages every XXX minutes"). If I manually force a check for new messages (i.e., command-T), then the forwarding succeeds. This is part of a "tag, move, forward" filter sequence. In the failed case, the filter log (erroneously) reports that the message was forwarded, same as Comment #2. I agree with Jay that a huge problem is that the log reports success, even when the forwarding failed. One wrinkle: I am sending/forwarding through port 587, not port 25. Some other bug reports claim that makes a difference. Other related proposed procedural fixes: Moving the "forward" filter to the beginning of the filter sequence does not bypass the bug. Setting up an account-specific Inbox does not bypass the bug.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100217 Lightning/1.0b1 Shredder/3.0.3pre Filter fails to forward a message. Create filter somename Apply filter when (any from dropdown) Match any of the following. Criteria: Tags contains sometag Actions: forward message to somename@somedomain.tld Delete message Manually tag message with sometag. Manually run filters on message. Error: Sending of message failed. Please verify that your Mail & Newsgroups account settings are correct and try again.
Severity: normal → S3

Random fact which may or may not be related:

(In reply to :aceman from bug 891874 comment #1)

TB does reorder some actions in the filter, see this function:
http://mxr.mozilla.org/comm-central/source/mailnews/base/search/src/
nsMsgFilter.cpp#274 . Fortunately this will be conveyed to the user in newer
TB versions (see bug 747284).

You need to log in before you can comment on or make changes to this bug.