Mail filter doesn't work (message "Unable to write the email to the mailbox")

NEW
Unassigned

Status

7 years ago
7 years ago

People

(Reporter: JasnaPaka, Unassigned)

Tracking

({regression})

All
Windows 7
regression

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
I use POP3 and mail filters. Thunderbird Aurora works fine for me but on the trunk after bug 402392 (and relevant fixes) I still have a problem with mail filters. 

Example:
* I receive 11 mails from Bugzilla.
* One my mail filter try to move first mail into Bugzilla folder (subfolder in Inbox).
* Error message is showed.

I see message:
"Unable to write the email to the mailbox. Make sure the file system allows you write privileges, and you have enough disk space to copy the mailbox."

As I have said no problem in Aurora, just on the trunk. I have enough space and Bugzilla folder is small (37 MB).
What is the filter matching on?
Keywords: regression
(Reporter)

Comment 2

7 years ago
(In reply to Magnus Melin from comment #1)
> What is the filter matching on?

My report is just a example. I have the same problem with all filters.

Comment 3

7 years ago
What about repairing the folder? (right click->properties->repair)
(Reporter)

Comment 4

7 years ago
(In reply to :aceman from comment #3)
> What about repairing the folder? (right click->properties->repair)

It doesn't help.
I hit the same problems various times lately (had to make new profiles), repairing each single folder doesn't seem to help, as well. Disabling all the filters doesn't help, the first mail is stored, the second one fires the error, this happens for each single account. Not sure what else to try.

Comment 6

7 years ago
Marco, is that on current trunk?
Component: Backend → Database
QA Contact: backend → database

Comment 7

7 years ago
Pavel, Marco. Does moving of messages manually work fine? Is this only when moving automatically by a filter?
hm, no, I'm on Earlybird, so it's possible my issue is unrelated to Pavel's. Moving messages works fine. I deleted each single filter, no change. Recreated a bunch of subfolders throwing away old ones, no change.
Component: Database → Backend
Component: Backend → Database

Comment 9

7 years ago
In the time Pavel reported this, his problematic trunk was TB12. Now Earlybird is TB12. It may be the same. Therefore we need to know if it is still happening on TB13 (Daily trunk).

Comment 10

7 years ago
(In reply to Marco Bonardo [:mak] from comment #8)
> hm, no, I'm on Earlybird, so it's possible my issue is unrelated to Pavel's.
> Moving messages works fine. I deleted each single filter, no change.
> Recreated a bunch of subfolders throwing away old ones, no change.

Marco, so you're getting the error without any filters? Do you have a virus checker/anti-spam program that might be locking the folder? Do you have multiple pop3 servers? Are you sharing inboxes between them (e.g., the global inbox)?

Comment 11

7 years ago
> Do you have
> multiple pop3 servers? Are you sharing inboxes between them (e.g., the
> global inbox)?
Or even worse, do you have the Local Directory path shared in multiple accounts?
(In reply to David :Bienvenu from comment #10)
> (In reply to Marco Bonardo [:mak] from comment #8)
> > hm, no, I'm on Earlybird, so it's possible my issue is unrelated to Pavel's.
> > Moving messages works fine. I deleted each single filter, no change.
> > Recreated a bunch of subfolders throwing away old ones, no change.
> 
> Marco, so you're getting the error without any filters?

yes

> Do you have a virus
> checker/anti-spam program that might be locking the folder?

Security essentials, though disabling it didn't make a difference

> Do you have
> multiple pop3 servers?

yes

> Are you sharing inboxes between them (e.g., the global inbox)?

yes

(In reply to :aceman from comment #11)
> Or even worse, do you have the Local Directory path shared in multiple
> accounts?

Not sure what you mean, please clarify?

Comment 13

7 years ago
> (In reply to :aceman from comment #11)
> > Or even worse, do you have the Local Directory path shared in multiple
> > accounts?
> 
> Not sure what you mean, please clarify?

Account Settings -> account -> Server settings -> Local Directory. If you have several accounts set to store messages into the same local folder on your system.
(In reply to :aceman from comment #13)
> > (In reply to :aceman from comment #11)
> > > Or even worse, do you have the Local Directory path shared in multiple
> > > accounts?
> > 
> > Not sure what you mean, please clarify?
> 
> Account Settings -> account -> Server settings -> Local Directory. If you
> have several accounts set to store messages into the same local folder on
> your system.

ah, no, each one has a different folder.

Comment 15

7 years ago
(In reply to Marco Bonardo [:mak] from comment #14)

> ah, no, each one has a different folder.

What did you mean when you answered yes to the question of whether the accounts were sharing an inbox?
(In reply to David :Bienvenu from comment #15)
> (In reply to Marco Bonardo [:mak] from comment #14)
> 
> > ah, no, each one has a different folder.
> 
> What did you mean when you answered yes to the question of whether the
> accounts were sharing an inbox?

that I use the global inbox feature, but each account has a different Local Directory value.

Comment 17

7 years ago
ah, ok, so you are using the global inbox.  I'll try switching to that for my pop3 accounts and see if I can reproduce that error
I figured out that disabling the antivirus in its own panel didn't solve the problem, while disabling the option in Options/Security solved the issue.
How does Thunderbird use the av software? Last week I changed from Avast to Security Essentials, though everything worked fine till a couple days ago, so I'm a bit puzzled on the reason (And worried, since I switched other 2 computers to SE, that so far with Thunderbird 10 have no issues).
I also wonder if this is related to the recent mail corruptions I saw (though I think those are bug 730947).
And after re-enabling the antivirus option, everything works fine again :/

Comment 20

7 years ago
(In reply to Marco Bonardo [:mak] from comment #19)
> And after re-enabling the antivirus option, everything works fine again :/

Did you reboot after changing the Security Essentials setting, or restart TB?

All the anti-virus setting in TB does is make Thunderbird write the message to a temporary file before adding it to the mail folder, and making sure that writing and reading from the temporary file works, w/o interference from the anti-virus program. If not, it puts up an error message for the user.

Comment 21

7 years ago
(In reply to David :Bienvenu from comment #20)
> All the anti-virus setting in TB does is make Thunderbird write the message
> to a temporary file before adding it to the mail folder, and making sure
> that writing and reading from the temporary file works, w/o interference
> from the anti-virus program. If not, it puts up an error message for the
> user.

The assumption here is, that when the temp file is created, AV will scan it and potentially remove/quarantine. So if after that Thunderbird does not find the file in place, it is assumed it had a virus and can inform the user.

Comment 22

7 years ago
(In reply to :aceman from comment #21)

> The assumption here is, that when the temp file is created, AV will scan it
> and potentially remove/quarantine. So if after that Thunderbird does not
> find the file in place, it is assumed it had a virus and can inform the user.

And the AV won't delete the whole INBOX file or filter target folder. This doesn't help if the AV scans the files later, but it does help in some situations.
(In reply to David :Bienvenu from comment #20)
> Did you reboot after changing the Security Essentials setting, or restart TB?

Surely I didn't reboot. I don't remember if I restarted TB, honestly.
You need to log in before you can comment on or make changes to this bug.