Closed Bug 1584861 Opened 1 year ago Closed 1 year ago

Automatic download of emails fails with Thunderbird 68.x, but manual download still works (pop) - Fix in comment #15

Categories

(MailNews Core :: Networking, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: rvj_43, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: regression, Whiteboard: [regression:68.0])

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

Opened Thunderbird 68.1.1 on Win7 64 bit

Actual results:

New emails did not load automatically. After downloading manually it goes back to normal operation. Servers on all accounts set to Check for new messages on startup

Expected results:

Messages should automatically download as they did before upgrade to 68.1.1

Duplicate of bug 1584833 which is a duplicate of bug 1584060.

Please follow bug 1584060.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1584833
Duplicate of bug: 1584060

Do you see failures in the error console similar to the following?

NS_ERROR_FAILURE: Couldn't decrypt string ---> crypto-SDR.js:203

Are the failing accounts POP or IMAP ?

Flags: needinfo?(rvj_43)
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Summary: thunderbird not downloading new mails automatically → Automatic download of emails fails with Thunderbird 68.x, but manual download still works
Duplicate of this bug: 1584599
Duplicate of this bug: 1583458
Duplicate of this bug: 1584833

So the idea is to have this bug here for "automatic download at startup doesn't work, manual download works", and bug 1584060 for the permanent failures (perhaps due to crypto issues).

See Also: → 1584060
Duplicate of this bug: 1577150

Note that I also have a possibly related problem filed as a separate bug #1584952 (Thunderbird Does Not Open in InBox )

Flags: needinfo?(rvj_43)

I have reverted to 60.8.0 (which upgraded automatically to 60.9.0. The Thunderbird not downloading new mails automatically problem went away so I'll use that version until Mozilla fixes the problem in a new version. However the starting in the wrong folder problem (bug #1584952) remains.

Component: Untriaged → Networking
Product: Thunderbird → MailNews Core
Summary: Automatic download of emails fails with Thunderbird 68.x, but manual download still works → Automatic download of emails fails with Thunderbird 68.x, but manual download still works (pop)
Whiteboard: [regression:68.1.1?]

See bug 1577150 for a report on TB 68.0.

Whiteboard: [regression:68.1.1?] → [regression:68.0]

Additional note: automatic time triggered download of emails works as well. Only the download at startup fails.

Duplicate of this bug: 1584060
See Also: 1584060

We found that this was caused by having "Local Folders" selected as default account in the Account Manager, something that should be possible. So select a valid default account.

We'll see whether we can automatically detect and rectify this situation in bug 1585469.

Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → WORKSFORME
Summary: Automatic download of emails fails with Thunderbird 68.x, but manual download still works (pop) → Automatic download of emails fails with Thunderbird 68.x, but manual download still works (pop) - Fix in comment #14

Did everyone who reported this bug (including duplicates) configure TB to use "Local Folders" as their default account?

I don't know, we'll find out. You can't "configure" that, the UI disallows it. Perhaps some add-on, like "Manually sort folders" caused this.

Reporters of the duplicates will be notified, so hopefully one turns up to confirm.

(In reply to Kai Engert (:kaie:) from comment #16)

Did everyone who reported this bug (including duplicates) configure TB to use "Local Folders" as their default account?

No, one of my accounts is the default. I can't set Local Folders as the default.

No, one of my accounts is the default.

How can you tell? Did you check this preference? mail.accountmanager.defaultaccount

I set it to account2, which is my account for Local Folders, just like for most people, and downloading of e-mail at start-up stopped. I selected my first account in the AM and downloading worked again at startup.

(In reply to rvj_43 from comment #18)

No, one of my accounts is the default. I can't set Local Folders as the default.

I never set my Local Folder as default either, but it was set that way in my profile's prefs.js file.

Open your prefs.js file and search for "mail.accountmanager.defaultaccount". If it's set to "account2", change it to "account1" and that will solve your issue.

Please note two things:

The "Local Folders" account is usually account2, but not always. In the config editor (or the prefs.js file) look for mail.server.server. Typically mail.server.server2.hostname will be "Local Folders". Then you need to find the account which belongs to server2, in most cases mail.account.account2.server will be server2.

It's not recommended to edit prefs.js, you can select a real account as default account in the account manager.

Yes, I use local folders as default, and I used to use the add-on Manually Sort Folders.

Changing the default account from "Local Folders" to a real account solved the problem for me.

I noticed this morning following a reboot that RSS feeds updated but mail fetching did not. So I looked at the settings suggested here and find that they do not resemble those suggested as causing an issue.

mail.accountmanager.defaultaccount;account4
mail.server.server4.hostname;pop.gmail.com
mail.server.server1.hostname;Local Folders

Any suggestions/ ideas Jorg?

Flags: needinfo?(jorgk)

Additionally Safe mode made no changes. But I just noticed after restarting the request for a certificate. I did not see that this morning either so the chat account at freenode did not log in either. So it is mail fetch, including IMAP and auto connection to the chat servers at freenode that are not functional as part of start up.

Hi Matt, so the default account is account4, but you didn't show me mail.account.account4.server which could still be server1 ;-) - Unlikely but possible. But in the end, it seems like some certificate issue?

Flags: needinfo?(jorgk)

(In reply to Jorg K (GMT+2) from comment #26)

Hi Matt, so the default account is account4, but you didn't show me mail.account.account4.server which could still be server1 ;-) - Unlikely but possible. But in the end, it seems like some certificate issue?

It is not
mail.server.server4.hostname;pop.gmail.com

mail.account.account4.server ?

mail.account.account4.server;server4
For completeness the only other thing under that key
mail.account.account4.identities;id3,id23,id24

mail.server.server4.login_at_startup;true
mail.server.server4.type;pop3

I had a chance to play with settings a little this morning. Normally I startup offline and once the UI is loaded click the blue icons to go online. In previous versions this kicked off the downloads. Now it does not. If I change the startup to online automatic download occurs. Is this another bug? or another manifestation of what you are looking at.

Yes, not downloading immediately after switching from offline to online is another bug.

Summary: Automatic download of emails fails with Thunderbird 68.x, but manual download still works (pop) - Fix in comment #14 → Automatic download of emails fails with Thunderbird 68.x, but manual download still works (pop) - Fix in comment #15

Starting with 68.0, both "Check for new messages at startup" and the "Get Messages" button and its "Get all new messages" pulldown stopped working. Manual download of individual mail accounts and timed download both still work.

Unselecting/reselecting the relevant Server Settings does not help. Safe Mode does not help.

Converted from TB 32-bit to 64-bit, same result. Currently on 68.2.2.

Windows 7. Two mail accounts, both POP: Gmail (set as default, account2) and AT&T Yahoo (account1).

I have Global Inbox set up to receive all mail. It has worked fine for years. All Server Settings are unchecked on Global Inbox, which I assume is correct.

Depends on: 1585469
No longer depends on: 1585469
Duplicate of this bug: 1585469
Duplicate of this bug: 1605846

(In reply to brucej4 from comment #31)

Starting with 68.0, both "Check for new messages at startup" and the "Get Messages" button and its "Get all new messages" pulldown stopped working. Manual download of individual mail accounts and timed download both still work.

Unselecting/reselecting the relevant Server Settings does not help. Safe Mode does not help.

Converted from TB 32-bit to 64-bit, same result. Currently on 68.2.2.

Windows 7. Two mail accounts, both POP: Gmail (set as default, account2) and AT&T Yahoo (account1).

I have Global Inbox set up to receive all mail. It has worked fine for years. All Server Settings are unchecked on Global Inbox, which I assume is correct.

I finally discovered that the advanced option "Include this server when getting new mail" had somehow become unchecked in both accounts. Selecting that fixed the problem. Thanks!

(In reply to Jorg K (GMT+1) from comment #15)

We found that this was caused by having "Local Folders" selected as default account in the Account Manager, something that should be possible. So select a valid default account.

We'll see whether we can automatically detect and rectify this situation in bug 1585469.

Having the same issue as OP.
After updating to 68.4.2, Thunderbird no longer collects mail on startup (using one POP client, Win7 OS).

Looked at all options where this could be hidden, all checks out (pictures below)

https://i.imgur.com/fXXbJxN.jpg
https://i.imgur.com/tH1RfZ1.jpg

Could you please put pictures of ""Local Folders" selected as default account in the Account Manager", as I have no idea what to search for

(In reply to pantagana23 from comment #35)

After updating to 68.4.2, Thunderbird no longer collects mail on startup (using one POP client, Win7 OS).

What was the last version that worked for you?

In the account manager, accounts are shown on the left, the default is underlined. Just select any account and use "Set as default" from the "Account Actions" below.

(In reply to Kai Engert (:KaiE:) from comment #36)

(In reply to pantagana23 from comment #35)

After updating to 68.4.2, Thunderbird no longer collects mail on startup (using one POP client, Win7 OS).

What was the last version that worked for you?

To tell you the truth, haven't been paying attention.
But basically, the last update or perhaps the one before

Here's the update history: https://i.imgur.com/1UhWECS.jpg

(In reply to Kai Engert (:KaiE:) from comment #37)

In the account manager, accounts are shown on the left, the default is underlined. Just select any account and use "Set as default" from the "Account Actions" below.

Could you please go step by step for Account Manager, I'm nowhere close to a power user, I use Thunderbird because it is the only program that did not crash with 25k emails.

I suppose Tools->Account Settings and find it somewhere there?

Yes, "Tools > Account Settings" opens the account manager. In the panel on the left, you have a list of accounts with the default account underlined.

(In reply to Jorg K (GMT+1) from comment #39)

Yes, "Tools > Account Settings" opens the account manager. In the panel on the left, you have a list of accounts with the default account underlined.

Found it, problem with no automatic download at startup solved. It seems that in 68.x version, default account gets unchecked.

For anyone having the same issue (one POP account, no extensions):

Go to Tools->Account Settings
This opens a window, which, in this thread, is called Account Manager.
In Account Manager you can see your mail accounts in left section, which are in bold font.
So if your mail account looks like i.e. Mail account 1, it is not default.
It should be in bold font, and underlined also.
You click on your email account, and then on bottom left part of Account Settings window you click a drop-down menu icon Account Actions.
When this opens, among other options, you will see option Set as Default, and click on it.
Now your Mail account 1 should also be underlined (don't know how to put underline on text here, but you get the picture).
You then click OK on Account Settings window, which should save changes.
Restart Thunderbird and that's it.

If the Set as Default is in grey, and not black font (not available option), you either didn't click on your account name previously, or your problem lies somewhere else.

Hope I helped someone.

(In reply to pantagana23 from comment #40)

(In reply to Jorg K (GMT+1) from comment #39)

Yes, "Tools > Account Settings" opens the account manager. In the panel on the left, you have a list of accounts with the default account underlined.

Found it, problem with no automatic download at startup solved. It seems that in 68.x version, default account gets unchecked.

For anyone having the same issue (one POP account, no extensions):

Go to Tools->Account Settings
This opens a window, which, in this thread, is called Account Manager.
In Account Manager you can see your mail accounts in left section, which are in bold font.
So if your mail account looks like i.e. Mail account 1, it is not default.
It should be in bold font, and underlined also.
You click on your email account, and then on bottom left part of Account Settings window you click a drop-down menu icon Account Actions.
When this opens, among other options, you will see option Set as Default, and click on it.
Now your Mail account 1 should also be underlined (don't know how to put underline on text here, but you get the picture).
You then click OK on Account Settings window, which should save changes.
Restart Thunderbird and that's it.

If the Set as Default is in grey, and not black font (not available option), you either didn't click on your account name previously, or your problem lies somewhere else.

Hope I helped someone.

Pantagana23 - YOU ROCK!!!! Thank you, thank you, thank you!

YES, your response did help someone............. me, thank you VERY MUCH!
My Thunderbird just updated to 68.4.2 the other day, and my auto check for new messages quit working. I spent hours trying to diagnose the problem without any success - actually created more problems while trying to fix this one (but have slowly been fixing them one by one). The fix you posted is very simple, and it works!!!!! (only took a few seconds by the way).

This update of TB is a bit of a mess, I lost my text highlighter add-on, and a few others no longer function. One more bad update like this and this kind might search out a new email program (NOT cloud based of course).

Many thanks, and all the best to you!

Regards,

TBGuy

Duplicate of this bug: 1606258
Duplicate of this bug: 1645004

This bug is not fixed in Thunderbird 68.10.0 (32-bit). I have changed my default account to different accounts (yes, each are underlined as I select them) - none of which are "local folders". I have checked the entry "Check for new mail at startup" which is checked for all 10 accounts from which I download email. All the accounts go to the local folders inbox.

The bug persists. For me it has only started recently but since Thunderbird is on automatic updates, I do not know which version worked. I have done nothing unusual, not added any accounts in the last 6months or moved any of the thunderbird files.

The symptoms are that, although it shows "online" in the bottom left hand corner of the screen, it makes no attempt to download mail at startup on Windows 10 2004. Windows updated recently to 2004 but I don't think that corresponds to the start of the problem. If I then do "check mail" it asks for my master password and will thereafter check mail all day.

I turned on the developer tools. In the log was a single error:
NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMessenger.msgHdrFromURI]

I also tried using a .bat file to set evironment variables to get a log. viz:
set MOZ_LOG=POP3:5,timestamp
set MOZ_LOG_FILE=%USERPROFILE%\Desktop\thunderbird.log
"C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe"

If I start up thunderbird then shut it down a minute or two later, nothing appears in the log i.e. it is not reporting failure or trying to download mail. If I manually download a pop account, I get a log of the details.

I am not au fait with the source code of Thunderbird or indeed the technologies used therein, however, I am well versed in programming in general so if you wish me to carry out further debugging, I may be able to help. I cannot find out how to get Thunderbird to log details of decisions it makes. I tried starting thunderbird as above but with the switch "--with-debug" It did not complain but still gave no output in the log.

You need to log in before you can comment on or make changes to this bug.