Closed
Bug 228512
Opened 21 years ago
Closed 20 years ago
Junk mail preference delete junk after x days doesn't work if you don't leave app up for 5 minutes
Categories
(MailNews Core :: Networking: POP, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: nerd, Assigned: Bienvenu)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031203 Firebird/0.7+
Build Identifier: Mozilla Thunderbird 0.4 (20031205)
The junk mail prefrence to delete messages form the junk folder after a number
of days is not working. The messages seem to be kept indefinitely.
Reproducible: Always
Steps to Reproduce:
1. Set prefrences to automatically delete junk messages after a number of days
2. Wait and see...
Actual Results:
Junk mail remains in junk folder
Expected Results:
Mail older than the set number of days is deleted.
Reporter | ||
Comment 1•21 years ago
|
||
Seems this was broken in Moz as bug 195047 and was fixed. Is this a regression
or did it just never get fixed in TB?
Comment 2•21 years ago
|
||
same fix is in thunderbird. We share all of this code with the suite.
Reporter | ||
Comment 3•21 years ago
|
||
This is broken in Mozilla Thunderbird 0.5a (20031219) on W2K. So it must be a
regression.
Comment 4•21 years ago
|
||
This works for me - Mozilla Thunderbird 0.5a (20031219), Windows 2000
Professional SP4.
I have delete after 1 day set on junk mail controls for local folders and all
accounts.
I'm using an old profile, perhaps it only affects new ones?
Comment 5•21 years ago
|
||
To Comment #3 From CharlesTaylor :
> So it must be a regression.
CharlesTaylor, what was the last build whose "automatic Junk deletion" worked
well in your environment?
Bug 195047 Comment #38 says :
> 1.It only works on one folder
> 2.If the e-mail in the Junk folder is not marked as junk it does not delete it.
> 3.Some e-mail that is moved to the junk folder somehow ends up
> not having the junk flag set in the junk folder.
CharlesTaylor, are all of mails in your Junk folder marked as "Junk"?
If no, what will happen when you mark them as "Junk" again?
(This was my circumvention when I experienced problem (3.) and this problem
caused problem of (2.))
Please note that Bug 187504 (Bug 195047 pointed by Comment #53) is still open if
IMAP.
Reporter | ||
Comment 6•21 years ago
|
||
They are all marked as junk, but the bit with messages making it in there
without the junk flag still happens occasionally. It is not working for any
account, not even the first one. I recently switched to TB, the last time it
worked for me was a Moz build, some 1.4+ build.
I take back that bit about a new install, forgot I copied in the mail folders
from Moz. So it's not totally clean. Could that have some impact?
This is all pop mail.
Comment 7•21 years ago
|
||
Damages on Junk control by anti-virus softwares are reported and Bug 192119 or
Bug 221415 are examples. (See Bug 213300 for detail)
(Q1) Does setting change in Tools/Junk Mail Controls work properly?
Try change setting of Tools/Junk Mail Controls, save change,
then check Junk Mail control settings again.
(Q2) Are there any mismatch in prefs.js?
Check next settings in prefs.js or about:config.
> mail.server.serverN.hostname
> mail.server.serverN.userName
> mail.server.serverN.realhostname
> mail.server.serverN.realuserName
> mail.server.serverN.spamActionTargetAccount
> mail.server.serverN.spamActionTargetFolder
If other problem, NSPR log for the junk filter with
"NSPR_LOG_MODULES=BayesianFilter:5,MAILBOX:5" probably helps your problem
determination.
See Bug 206117 Comment #14 and see also
http://www.mozilla.org/quality/mailnews/mail-troubleshoot.html#pop.
Comment 8•21 years ago
|
||
Is isn't working for me, too, using Mozilla 2003121708 on Linux.
Reporter | ||
Comment 9•21 years ago
|
||
The 20031219 build has SERIOUS problems remembering prefrences. I'm pretty sure
it blew up the prefs.js There were seveal hundred backup prefs files... One
probably a good copy. I'm thinking this may be a symptom of a bigger bug with
saving prefrences.
Reporter | ||
Comment 10•21 years ago
|
||
OK I may have a clue for the cause of this. I dug through Prefs.js and found
this weirdness:
user_pref("mail.server.server6.spamActionTargetAccount",
"mailbox://squid%40myhost.com@mail.myhost.com");
user_pref("mail.server.server6.spamActionTargetFolder",
"mailbox://nobody@Local%20Folders/Junk");
When I setup the accounts I lef the junk folder as the default, but the default
entry in prefs.js is wrong.
If I change the default location to any where else and then change it back the
pref is corrected... But the junk folder still does not seem to auto delete old
mesages. I'm guessing that it's wrong someplace else too. Is there something
special about the "junk" folder that could cause the folder to mess up? (like
the windows "fonts" folder)
New Profile, new folder every thing.
Switched back to 20031205 build, (20031219 it too flakey, but it does the same
thing)
Comment 11•21 years ago
|
||
(Test result on 2003122409-trunk/Win-Me)
When I changed to "Other:"
("Move incoming message determined to be junk mail to:" in Junk Mail Contorol)
Mozilla set mail.server.serverN.moveTargetMode=1,
and changed mail.server.serverN.spamActionTargetFolder,
but did not modify mail.server.serverN.spamActionTargetAccount.
When I changed to "Junk folder on:"
("Move incoming message determined to be junk mail to:" in Junk Mail Contorol)
Mozilla reset mail.server.serverN.moveTargetMode (delete from prefs.js),
and changed mail.server.serverN.spamActionTargetAccount,
but did not modify mail.server.serverN.spamActionTargetFolder.
(Summary of test result)
(1) When mail.server.serverN.moveTargetMode is not set(probably defaulted to 0),
"Junk" folder under mail folder path specified in
mail.server.serverN.spamActionTargetAccount is used.
(2) When mail.server.serverN.moveTargetMode=1
mail folder specified in
mail.server.serverN.spamActionTargetTargetFolder is used.
CharlesTaylor, what is your mail.server.serverN.moveTargetMode setting?
Reporter | ||
Comment 12•21 years ago
|
||
"mail.server.serverN.moveTargetMode" It is not set for any of the servers.
Comment 13•21 years ago
|
||
Your prefs.js is not corrupted since "mail.server.serverN.moveTargetMode" was
not defined.
According to my test, this means "Trash" folder under mailpath specified in
spamActionTargetAccount is used instead of spamActionTargetFolder.
(ie. "Junk folder on:" instead of "Other:")
CharlesTaylor,
(Q1) Are Junk Mail Control functions other than "delete junk after x day"
working well on you?
- Automatic moving to Junk folder for imcoming message
- Automatic moving to Junk folder on manual marking
(Q2) Common problem of all accounts or specific accoutn only problem?
(Q3) Is icon of the "Junk" folder manilla folder(same as usual folder)
or "Junk Folder" type(Trash can before folder in Modern Theme of Mozilla)?
(Q4) What will happen when you change Junk folder specification?
Choose "Other:" in "Move incoming message determined to be junk mail to:"
instead of "Junk folder on:", and choose your "Junk" folder.
- mail.server.serverN.moveTargetMode=1 is set
- mail.server.serverN.spamActionTargetFolder is changed
- mail.server.serverN.spamActionTargetAccount is not modified
Then mark a mail in other folder as Junk and force move to "Junk" folder.
Reason for last two questions.
When I set other usual folder(eg."TEST") as my "Junk" folder by setting
"Others:", Mozilla changed icon of "TEST" from usual manilla folder type to
"Junk Folder" type.
This indicates Mozilla/Thunderbird does something when begin to use a folder as
Junk folder.
Reporter | ||
Comment 14•21 years ago
|
||
A1: All other automatic mail functions are working fpr all accounts.
A2: All accounts don't work. Common problem
A3: Junk folder's icon is the trash can, if I change the folder location the
icon moves with the change.
A4: Prefs.js changes exactly as you indicated.
In addition I have tried using different folders for junk. I also turned off the
junk controls and deleted the folder. Then turned it back on and let TB create
the folder automatically.
I created a new profile and imported my mail... still broken.
Just for my curiosity, when is the mail purge supposed to triggered?
Reporter | ||
Comment 15•21 years ago
|
||
Any progress? Problem still exists in 0.5a (20040105)
Comment 16•21 years ago
|
||
> Just for my curiosity, when is the mail purge supposed to triggered?
Me too.
So I tested with Thunderbird 2004-01-05 build.
Accounts are follwing three.
(a) Normal account. Valid POP serve/user,
(b) Dummy account. Dummy POP server,
(c) Local Folders
When I tested with "Check for new messages every NNN minutes" unchecked, Junk
mails of above all accounts were not deleted even though I set "0 day" or "1
day" as automatic Junk deletion option.
Then I set and checked "Check for new messages every 10 minutes" yesterday and
left Thunderbird active, and I checked Junk mail status today.
- Junk mails of account (a) and (b) were moved to Trash.
- But Junk mails of "Local Folders" were not moved to Trash.
This test result indicates that a kind of setting for timer pop event activation
is required for automatic Junk deletion and "Check for new messages every NNN
minutes" is one of the such settings.
What is your automatic mail check setting?
Will automatic Junk deletion work when you check "Check for new messages every
NNN minutes"?
Reporter | ||
Comment 17•21 years ago
|
||
All my accounts are set to check every 10 minutes. Tried playing with those
settings a bit, doesn't seem to matter. I have mail in the junk folder 2 weeks
old and it's set to delete after 1 day. Nothing is ever automatically removed. I
wish I could just set a message filter to periodically run on that folder.
Reporter | ||
Comment 18•21 years ago
|
||
OK I have a clue for the Grand Implementors. I had my "Leave message on server"
setting on and set to 4 days. I recently changed that setting to 2 days and bam
now the junk mail is automatically deleting as it should. The good news is that
it now WFM, but there is still an sneaky bug creeping around in there someplace.
I'll fiddle with the junk mail and server settings some more to see if I can
figure out how I broke it originally.
Updated•21 years ago
|
OS: Windows 2000 → All
Reporter | ||
Comment 19•21 years ago
|
||
A few more details that will hopefully help:
After a few days automatic deletion quit working again, no settings were
changed. I went in and messed with the days that messages are left on the server
and it magically started working again. Somehow the "leave messages on server"
thing is interfering with the junk mail purge setup.
Comment 20•21 years ago
|
||
looks like the changes for pop age on server stuff is interferring with the junk
mail purging after x days.
Assignee: mscott → sspitzer
Component: Preferences → Networking: POP
Product: Thunderbird → MailNews
QA Contact: esther
Version: unspecified → 1.0 Branch
Assignee | ||
Comment 21•21 years ago
|
||
I'll look. The main thing they have in common is that I worked on both of them
:-) Other than that, they should be unrelated. Is your Junk folder currently in
the same account as your POP3 inbox, or in the local folders account? If you
click on your junk folder, do you see a little message about "rebuilding summary
file"? My one guess is that the junk db is becoming invalid, and that's
preventing the automatic purging of the junk folder.
Assignee: sspitzer → bienvenu
Reporter | ||
Comment 22•21 years ago
|
||
Junk folders are in the related accounts. No message about summary file
rebuilding that I recall.
Reporter | ||
Comment 23•21 years ago
|
||
OK, it's quit working again. Is there something I can do to help track this bug
down?
Assignee | ||
Comment 24•21 years ago
|
||
If you bring up the search messages UI, and do a search of the junk folder for
messages whose age in days > purge days and junk status is junk, do you get hits?
Reporter | ||
Comment 25•21 years ago
|
||
No, no hits... yet some of the messages are several days older than that...
Another thought. I've been having trouble with my NAV. (Blowing up MSF files by
scanning in the middle of an email transaction) Does the age in days get reset
if the MSF file is rebuilt?
Assignee | ||
Comment 26•21 years ago
|
||
No, the age comes from the date header in the mail message. Is the junk status
getting lost after the .msf file is blown away? That was a bug in earlier
versions, but I believe it's been fixed.
Comment 27•21 years ago
|
||
Just information.
I created some new accounts with dummy pop server name and tried "Automatic Junk
Mail Deletion"(with 200401xx and 20040202xx and 2004020508 trunk nightly builds).
But Junk mails were not deleted even though "1 Day" is set(I waited for 1 week).
Today, I changed the pop server name and username of a dummy account to real pop
server and real user-id, and I received a mail from pop server, then Junk mails
were moved to Trash folder automatically.
Since "Automatic Junk Deletion" did not work on "Local Folder"(my Comment #16),
successufull mail recieving seems to be required for "Automatic Junk Mail
Deletion".
(I do not know why automatic junk deletion worked well on dummy account in
Comment #16. Posiibly I received a mail by this dummy account in tha past with
valid pop server name and user name)
Reporter | ||
Comment 28•21 years ago
|
||
Wait a minute I may know what is going on. I don't have my servers set to check
when I open the program. I check each one manually. (That way I don't get
burried in the morning) But I do have them set to check every 30 minutes.
Sometimes I'm not in the program that long.
Could it be that an automatic check of the pop server must occur for the junk
purge to be done? If this is the case the junk purge should also happen when a
manual check is done.
BTW I rechecked the age in days search and it DOES produce hits. I must have
done something wrong the first time.
Assignee | ||
Comment 29•21 years ago
|
||
the junk mail purging happens on a timer, starting five minutes after you start
the app, and then every 60 minutes after that, I believe. It is independent of
whether you download mail, etc.
You can turn on protocol logging for purging by setting the following
environment variables and then running Mozilla:
set NSPR_LOG_MODULES=MsgPurge:5
set NSPR_LOG_FILE=C:\log.txt
Every time you run, a log file, c:\log.txt, will get created (i.e., the previous
log will get overwritten)
If you can generate a log, I can look at it.
Comment 30•21 years ago
|
||
I changed server name and user-id to dummy again, then "Automatic Junk Mail
Deletion" stopped.
(Junk deletion is still working very well for normal account.)
Since pop server is dummy for this dummy account, server connection fails any
time - on startup mail check and on periodical mail check and on manual receive.
David Bienvenu, will timer pop "junk mail purging" be requested or kicked even
in this case?
Reporter | ||
Comment 31•21 years ago
|
||
David Bienvenu, I think this explains why it's not working for me. Usually don't
leave TB open. Perhaps the initial junk purge run should be after 1 minute.
Assignee | ||
Comment 32•21 years ago
|
||
a better option would be to have it run as part of a general shutdown cleanup
process, where we could compact folders, empty trash, etc, if the user wants.
That would be the least intrusive time to do this. It's on my list to have a
process for doing stuff before shutdown...I'll add this to the list.
Summary: Junk mail prefrence delete junk after x days not working → Junk mail prefrence delete junk after x days doesn't work if you don't leave app up for 5 minutes
Comment 33•21 years ago
|
||
*** Bug 233439 has been marked as a duplicate of this bug. ***
Comment 34•21 years ago
|
||
David Bienvenu, I've opened separate Bug 233439, which is already re-opened, for
"Local Folders" and dummy account case.
Regards.
Comment 35•21 years ago
|
||
*** Bug 238182 has been marked as a duplicate of this bug. ***
Comment 36•21 years ago
|
||
With Mozilla Thunderbird 0.5+ (20040323) I have found that my junk mail is never
automatically deleted, despite being set to purge junk older than 5 days. I
rarely leave TB running for less than 5 minutes.
It's generally correctly identified (I've only been using TB for about a
week...it's still learning) and moved to the Junk folder, but it's not being
moved to the Trash on schedule.
I'm checking three accounts via IMAP, if that makes a difference. Junk is not
automatically deleted from any of them, nor from the local folders.
Can't program to save my life, but can happily provide diagnostic data if it'll
help.
Comment 37•21 years ago
|
||
I am seeing this to and get mail from my ISP, comcast. It is set to move after 5
mins or 60 mins then is is not going to help the on that just come on and check
then leave. They are not keeping mozilla open long enough to give it time to
move junk to trash. Maybe it can be done to cceck when you frist go into mail.
Then it can check every 60 mins if it is still up and running.
Comment 38•20 years ago
|
||
(In reply to comment #37)
> It is set to move after 5 mins or 60 mins then is is not going to help the on
> that just come on and check then leave. They are not keeping mozilla open long
> enough to give it time to move junk to trash.
That's not the case for me. I've had TB open for about 3 days now... I have it
set to delete after 1 day. If it was doing it on a time I would have some very
empty junk folders.
Frankly, I've resolved that I have to empty the junk folders manually. I'm
using TB on 3 different Windows PC's with 3 different versions of windows - same
problem on all three.
Jim
Comment 39•20 years ago
|
||
I have 2 Accounts in T'Bird under 1 Win XP login and neither are deleting junk
mail after the preset number of days.
I have 1 Account under a separate Win XP login - on the same box using the same
T'Bird binaries and that account is deleting junk mail after the same number
of preset days.
Leaving T'Bird running does not remove those junk messages - so the 5 minute
wait is not applicable in my case.
This is with 0.6 milestone build datad 5/2.
Comment 40•20 years ago
|
||
(In reply to comment #39)
> I have 2 Accounts in T'Bird under 1 Win XP login and neither are deleting junk
> mail after the preset number of days.
David Jackson, this bug is "If user terminates Mozilla or Thunderbird within 5
minutes, Junk Purge will not work", and is different form your problem.
Your problem is probably same situation I reported to Bug 242744 in order to
supply protocol log for such cases.
Gather protocl log of MsgPurge:5 and compare your log with mine.
See Comment #7 for "How to".
For Junk purge problem on multi-accounts, there are already opened bugs, I
think, but I don't know exact bug number.
Comment 41•20 years ago
|
||
(In reply to comment #40)
> Your problem is probably same situation I reported to Bug 242744 in order to
> supply protocol log for such cases.
> Gather protocl log of MsgPurge:5 and compare your log with mine.
> See Comment #7 for "How to".
>
> For Junk purge problem on multi-accounts, there are already opened bugs, I
> think, but I don't know exact bug number.
I created the logfile and email it to bienvenu
Comment 42•20 years ago
|
||
*** Bug 244248 has been marked as a duplicate of this bug. ***
Comment 43•20 years ago
|
||
What diagnostics can we provide that will allow this problem to get fixed?
Comment 44•20 years ago
|
||
*** Bug 244488 has been marked as a duplicate of this bug. ***
Comment 45•20 years ago
|
||
re: comment #32. Unless you do something to have a window come up saying that
Thunderbird is shutting down with a progress meter or something, this will just
aggravate another issue. If the junk folder is not local, but on a server, then
dial-up users need to know that Thunderbird is still running so they don't
disconnect their dial-up connection too soon and just end up getting more
folders messed up than they do now. This is also an issue for people using
Thunderbird for work e-mail when working at home knowing when to shutdown their
VPN client software
Updated•20 years ago
|
Product: MailNews → Core
Updated•20 years ago
|
Summary: Junk mail prefrence delete junk after x days doesn't work if you don't leave app up for 5 minutes → Junk mail preference delete junk after x days doesn't work if you don't leave app up for 5 minutes
Assignee | ||
Comment 46•20 years ago
|
||
marking wfm - this is probably a dup of a bug I fixed right before 1.0
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 47•20 years ago
|
||
Yeah, I think it's fixed. WFM too.
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•