Mbox parsing detects rogue From headers in mail content.
Submitted by Kjetil Erga
Assigned to Xfce-Goodies Maintainers
Description
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071224 Firefox/2.0.0.11 Build Identifier:
While parsing a mbox file, the mailwatcher plugin does not handle From "headers" that are inside the mail content itself. What will happen is that this will be counted as an extra mail, and because there is no following "Status: " header, the plugin thinks this is a new and unread mail. This can be annoying since the "You have new mail" status will be active all the time.
I have managed to fix this problem with a patch that I will attach. The patch will make the plugin look for an additional "Return-Path: " header that has to appear right after the "From " header, or else it will not be counted as a mail. I am not sure however, if this is the best solution to the problem, or works for everyone. I do not know if a "Return-Path: " header should always come after the initial "From " header.
Reproducible: Always
Steps to Reproduce: 1.Receive mail with a string containing "From " inside the content. 2.Open the mailbox and "read" the mail. 3.Observe that mailwatcher still thinks there are "new" mails
Actual Results:
Icon shows that new mail has arrived.
Expected Results:
Icon should show that no new mail has in fact arrived.
Version: 1.1.0 or older