Connecting to Outlook server via IMAP, lost Junk Email folder
I use Thunderbird 128.2.0esr (64-bit) to read mail from the Outlook server; these are the folder mappings:
imap://<email>@outlook.office365.com/INBOX imap://<email>@outlook.office365.com/Sent imap://<email>@outlook.office365.com/Drafts imap://<email>@outlook.office365.com/Trash
I used to also be able to read the Junk Email folder from the Ourlook server the same way, but the folder disappeared from my Thunderbird a couple of months ago. I tried re-adding it as a sub-folder, which is how I created it in the first place, but it won't appear on the list.
I'm not sure what else to do here. I don't know where the Thunderbird directories are stored locally any more, I'm using Ubintu 24.04.
ყველა პასუხი (14)
Hmmmm.... I created a subfolder "Junk-Email", then re-named it to "Junk Email", then it worked, at least for now.
The "Junk Email" folder disappears every time i start Thunderbird, so I have to apply the re-naming hack to make it come back. A little pane comes up saying
Thunderbird The current command did not succeed. The mail server with the account ... mail responded: Target folder already exists.
I don't see this message in the Error Console anywhere, which is frustrating.
Also, I always sort my mail-messages with the newest at the top. When I re-name the "Junk-Email" folder, and the restored "Junk Email" folder reloads the messages, it still comes up with the default ordering of the newest at the bottom. I'm not complaining about the ordering, just noting that my setting for the folder doesn't persist, its like all the information about it gets erased every time. Do any of you know what's happening here?
ჩასწორების თარიღი:
The server locations of the various folders are
imap://<myname>%ABC.com@outlook.office365.com/INBOX imap://<myname>%ABC.com@outlook.office365.com/Junk-Email imap://<myname>%ABC.com@outlook.office365.com/Junk%20Email
where "ABC" is my company name. So the mapping of folder names is consistent in the paths, though Thunderbird lists the first one as "Inbox" rather than "INBOX".
When I start up I do see the "Junk Email" folder listed initially and then it disappears.
I do know that Thunderbird does some authentication with the IMAP server, and likely it's doing it incorrectly when it maps the "Junk Email" folder or maybe it's just timing out.
ჩასწორების თარიღი:
These are the path mappings of the folders:
imap://cponder%40my-company.com@outlook.office365.com/INBOX imap://cponder%40my-company.com@outlook.office365.com/Junk%20Email imap://cponder%40my-company.com@outlook.office365.com/Junk-Email
So thunderbird re-establishes the path when I re-name the folder from "Junk-Email" to "Junk Email", though the re-naming doesn't happen, the above error pane shows up and the "Junk-Email" is preserved. What I don't get is why the path fails (and the folder disappears) when thunderbird starts up.
re :I tried re-adding it as a sub-folder, which is how I created it in the first place,
Certain folders, by default, are created by the server and those folders cannot be altered. They are not folders that you create nor rename. All default folders are not subfolders. Typically they are called Inbox, Drafts, Templates, Sent, Archives, Spam, Trash - although there are a few variants eg: 'Sent' might be called 'Sent Mail'
It would help if you could logon to the outlook.com webmail account via a browser and get a screenshot which shows all the various folders that are displayed on the server. This will help to show us what you see as default server folders and additional folders you have created.
I'm somewhat perplexed as to why you are creating a folder which should be, by default, a folder already created by the server. Whilst logged on to the webmail account - if you mark an email is spam which folder does the server automatically use?
ჩასწორების თარიღი:
According to this: https://support.microsoft.com/en-gb/office/working-with-message-folders-in-outlook-com-6bb0723a-f39f-4a8d-bb3f-fab5dcc2510a
Default folders By default, your account starts with these folders:
- Inbox
- Junk Email
- Drafts
- Sent Items
- Deleted Items
- Archive
If you have created other folders eg: 'Junk-Email' or 'Junk Items' etc then delete them. If you can delete them then they were not server default folders.
You are using an IMAP mail account so that means to see server folders you have to subscribe to see them:
- Right click on the mail account name folder in Folder Pane and select 'Subscribe'
- click on 'Refresh'
- Select folders
- Click on 'Subscribe'
- Click on 'OK'
You also could do with checking that you have the following settings b ecause they can effect which folders you have selected to see in the Folder Pane whether you have subscribed to see them or not - check you do not have any folder filters operating.
- View > Folders > 'All folders'
- View > Threads > 'All'
Once you have removed any 'junk/spam' folder you created and subscribed to see the correct junk folder on server, you then need to make sure your Account Settings are pointing to use the correct folder.
- In Account Settings
- Select 'Junk Settings' for the account
- At the bottom where it says 'Destination and Retention'
- Select 'Move new junk mesasges to'
- Select 'Other' and choose the correct server named folder which I suspect is 'Junk Email on account name'
ჩასწორების თარიღი:
Going through the web interface, the server has these two folders
Junk Email Junk
The "Junk Email" contains what I'd expect. The "Junk" is empty but the server won't allow me to delete it for some reason. I deleted the Junk* folders form the account in Thunderbird, and shut it down. Then I deleted all the files of the form
~/snap/thunderbird/common/.thunderbird/4szjti50.default/ImapMail/outlook.office365.com/Junk
from my laptop. Restarted Thunderbird, and the "Junk Email" folder is there and working.
ჩასწორების თარიღი:
My Office 365 account shows "Junk" and "Junk Email" also.
(Just my guess, but I think that "Junk" appears when an Office 365 account is used as an IMAP account.)
As long as the standard "Junk Email" account is "subscribed", everything should be fine.
I deleted the folders
Junk Junk-Email Junk Email
from Thunderbird, then shut it down. Then I deleted these folders from my laptop:
~/snap/thunderbird/common/.thunderbird/4szjti50.default/ImapMail/outlook.office365.com/Junk*
which likely caused the collision. When I re-started, then the "Junk Email" folder appeared automatically, and works normally.
Well, no, now it reverted to where the "Junk Email" no longer shows up automatically, and the empty "Junk" folder came back.
Carl said
Well, no, now it reverted to where the "Junk Email" no longer shows up automatically, and the empty "Junk" folder came back.
You can probably ignore the "Junk" folder or unsubscribe from it.
Is the "Junk Email" folder subscribed?
Yes I can ignore it, but it seems to be symptomatic of Thunderbird not mapping the folders correctly. What do you mean by "unsubscribe"? The "Inbox" and "Junk" folders are sub-folders of the IMAP account shown in Thunderbird. Can I select which folders I inherit from the mail server?
Carl said
Yes I can ignore it, but it seems to be symptomatic of Thunderbird not mapping the folders correctly. What do you mean by "unsubscribe"? The "Inbox" and "Junk" folders are sub-folders of the IMAP account shown in Thunderbird. Can I select which folders I inherit from the mail server?
"Junk" may appear because an Exchange account is being used as an IMAP account, but that is just a guess. The same thing happens with "Sent" / "Sent Items" and "Trash" / "Deleted Items". Thunderbird can handle the mappings fine.
If you use more than one e-mail client (program, app), you want to make sure that the mappings are the same everywhere. It's best to use the standard Exchange folders and mappings: Junk Email, Sent Items, Deleted Items. I ignore "Junk", Sent", and "Trash". All folders are visible in the "All Folders" section of my folder pane, but not in "Favorite Folders".
It really is OK to ignore the "Junk" folder. You are probably ignoring other server folders already, e.g., conversation history.
Yes, subscribing means selecting the server folders that you want to see in Thunderbird. If you don't want to see the "Junk" folder, you can unsubscribe from it. There are two relevant settings:
Account settings - Server settings - Advanced: You can choose to see all folders or only subscribed folders.
If you choose to see only subscribed folders, then right click on the account name in the folder pane, select "Subscribe", and pick the folders that you want to subscribe to.
Toad-Hall shared helpful information above too.
Rick
Rick