-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Movemail: Message body empty in target folder when moving message using filters before junk classification #104
Comments
We're basically developing BB on Windows. We've brought back the movemail feature for Linux by popular demand without actually testing it, just by putting back the code from TB 78 and tweaking the movemail account setup a bit. A volunteer tested it for us and confirmed that it was working, apparently they didn't try to run filters. To test this, we would have to set up Unix mailspool. How is that done, can you assist? Another question: The code we restored in the C++ backend is the code that was contained in TB 78. Was that working in TB 78, have you tested it in TB 78? Should be easy on Linux to just get a version from |
Can you run this with filter logging, see https://wiki.mozilla.org/MailNews:Logging, it's the Also enable the filter log in the "Message Filter" panel. |
So can you attach the log file? More important is the Mailnews:Logging referenced above. |
Ok, html file cannot be attached : [24/11/2022 13:52:59 UTC+1] Applied filter "PhlSys" to message from PhLinuX <phl@phlsys> - [PhlSys] Test 2 at 24/11/2022 13:52:47 UTC+1 moved message id = [email protected] to mailbox://nobody@Local%20Folders/PhlSys [24/11/2022 14:38:48 UTC+1] Applied filter "PhlSys" to message from PhLinuX <phl@phlsys> - [PhlSys] Test 3 at 24/11/2022 14:38:12 UTC+1 moved message id = [email protected] to mailbox://nobody@Local%20Folders/PhlSys ` |
I forget to tell what I used: and the result is empty |
The child logs are typically empty, but the main one isn't. You need to set |
OK, so this is the relevant bit:
The account is called "Local" an the filter "PhlSys". According to the log all when well, but the body didn't get transferred. Did you have a chance to test with TB 78? See comment #104 (comment). |
Unfortunately, I'm afraid no. I only have one box and this is my main server: all my life is in !! |
No, you can just download http://ftp.mozilla.org/pub/thunderbird/releases/78.9.1/linux-x86_64/en-US/thunderbird-78.9.1.tar.bz2, unpack it, start it with |
Ok, thanks for these precisions. |
OK, thanks for testing. Meanwhile set up movemail ourselves, just a matter of copying a mbox file to /var/spool/mail/user. One can do that repeatedly to create more (fake) incoming messages. Moving a message to another folder in the Movemail account works, and moving it to a subfolder of Local Folders works, too. What doesn't work is to move from the Movemail account to an IMAP folder. No filter action, the message remains in the Movemail inbox. So your move target is PhlSys in a local folder according to #104 (comment): Is it possible that the target folder is broken? What happens if you repair it? |
We did our testing with mbox format for the all accounts involved. Maybe you used maildir on the target folder? If you set up TB 78 on a new profile, you would have defaulted to mbox. |
#104 (comment) |
#104 (comment) |
#104 (comment) |
Thanks for testing. It's not a surprise that running the filter manually will work; the integration of running the filter into the process that incorporates the new messages into the Inbox (from /var/spool/mail/user) causes the issue. At a guess, if you run the filter after Junk classification, it will work, too, Please try this as a workaround. That said, as per comment #104 (comment), it works for us. We've asked another user to do some testing in the area. |
Please answer #104 (comment). Are you using mbox or maildir for the Movemail account? |
I'm afraid I didn't understood something (Sorry for my poor English) |
If it's a traceable lib/procedure/function/method, I can possibly compile it and trace it with GDB if that helps. But probably with your assistance (makefile, compile options...) .... it's been a while since I put my fingers in either C or gdb :-D |
Well, the issue is that we need to reproduce the problem before we can fix it. Please try running the filters after Junk classification. |
OOPS ! AFTER .... |
Please use the workaround of filtering after junk classification for now. |
This hasn't dropped off the radar. We've asked another user to test the filters and then we'll see how to reproduce the issue and fix it. It won't be quick though. |
Let's see what happens when TB bring back movemail, if they ever will. We can't reproduce the issue and neither could a person who is using movemail in production and whom we asked to test this. Likely a problem in the original TB code we re-established. You might want to test this with the last TB version that still had movemail, ie. TB 78. |
The one bug that comes closest to this issue here (and is reliably reproducible) is [TB Bug 1781792] When a filter copies multiple messages into local subfolders, the copied messages are empty!!, but since you also encounter empty bodies, when only a single message is moved, there must be an additional variable at play. Please try the workaround I found for the other bug.
|
https://bugzilla.mozilla.org/show_bug.cgi?id=1781792 is for copying from an IMAP folder. This ticket here is about Movemail. Movemail is local mail, messages already on the client, so quite a different codepath from the IMAP issue. Besides, neither myself nor another Movemail user I asked to test this can reproduce the Movemail issue. Please don't mention Betterbird on Bugzilla, they don't like that at all. |
Hello,
I installed BB yesterday to replace TDB due to the lack of movemail.
All was Ok but this morning I can notice that the body of all the local emails was empty.
They appear as arrived but there is no more message body.
I apply a filter with this box to class any email into a local directory. All was properly classified.
It seems that the message body disappear only when the message is filtered by my BB filters.
A snapshot of what I got into the local box with no filter word in the subject:
The message body is OK
A snapshot of what I got into the local directory with a filter word in the subject:
This is exactly the same message but a filter word [PhlSys] was added in the subject.
The message body is empty
A snapshot of the filter I used:
Thanks for your assistance.
The text was updated successfully, but these errors were encountered: