bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

Get Mail fails after mail server is restarted



MailNews Core
Networking: POP
10 years ago
8 years ago


(Reporter: Marc Chamberlin, Unassigned)



Firefox Tracking Flags

(Not tracked)




10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20080404 Firefox/
Build Identifier: version (20080421)

Since I run my own mail server I am probably one of a few to notice this but it could affect others and lead to frustrations....

If my mail server is down, and I try to connect to it with "Get Mail" Thunderbird will properly report the failure. However, if I subsequently restart the mail server, there seems to be some sort of state information that Thunderbird remembers and it will continue to fail to connect an retrieve email. The only way to get around this is to also restart Thunderbird. This strongly indicated that the "Get Mail" process is not properly reinitialized and is "remembering" the state of the mail server in an invalid persistent sense.

Reproducible: Always

Steps to Reproduce:
1.Shut down mail server
2.Try to connect to it and retrieve email from it. Thunderbird fails as to be expected.
3.Restart mail server
4. Again try to connect to it and retrieve email from it. Thunderbird continues to fail which is no longer the expected behavior.
Actual Results:  
Thunderbird continues to report a mail server problem even after the mail server problem has been resolved. A restart of Thunderbird is necessary to get a valid reconnection to the mail server.

Expected Results:  
Should not have to restart Thunderbird. It should automatically attempt a "clean" reconnection when the "Get Mail" process is initiated, or at the least automatically retry starting from a "clean" point if a failure is detected and the user reattempts to connect.

Comment 2

10 years ago
Moving to Core -> Networking: POP, although I suspect that this problem may be shared among all protocols, in which case MailNews: Networking would be better.
Component: General → Networking: POP
Keywords: qawanted
Product: Thunderbird → Core
QA Contact: general → networking.pop

Comment 4

9 years ago
Marc, can you attach a pop log file?

 SET    NSPR_LOG_MODULES=nsHostResolver:5,nsSocketTransport:5,pop3:5
 setenv  NSPR_LOG_MODULES=nsHostResolver:5,nsSocketTransport:5,pop3:5
 set NSPR_LOG_FILE=c:\zip\tbirdlog.txt
 start "C:\Program Files\Mozilla Thunderbird\thunderbird.exe"

Comment 5

9 years ago
Hmmmm been a little while since I reported this bug and I have since gotten Thunderbird updated to version I attempted to recreate this bug and it now works as I expect, i.e. if I stop my mail server, attempt to get mail via Thunderbird it reports that it cannot. I then restart my mail server and Thunderbird did fetch the mail so I suspect this bug has been fixed?

Anywise I also attempted to generate a pop log file as Wayne had suggested, on a Windows Vista machine. The setenv command does not work under Vista, but the set commands did work, or at least did not report any errors. However when I executed the start command, it simply popped up another Windows command shell window and did not actually launch Thunderbird. I am not all that familiar with Windows scripts so I dunno what was expected or what the problem was if any. I also noted that the zip directory did not get created with the target file of tbirdlog.txt....


9 years ago
Product: Core → MailNews Core
WFM per comment #5.

Marc feel free to reopen it if this issue reappear.
Last Resolved: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.