Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Mozilla サポートの検索

サポート詐欺に注意してください。 私たちはあなたに通話やショートメッセージの送信、個人情報の共有を求めることはありません。疑わしい行為を見つけたら「迷惑行為を報告」からご報告ください。

詳しく学ぶ
Solved

Does Thunderbird have a way to manually expunge a mailbox?

John

Most other email clients I've used have had a way to manually "expunge" a mailbox, i.e. delete the messages which are marked for deletion. This includes Thunderbird on a machine at home (I'm traveling right now).

On this laptop I'm using Thunderbird 102.12.0 on macOS 26.6.2. All of my mailboxes use IMAP. Thunderbird is using Maildir for local storage on this laptop, and I believe the same is true on the machine at home (also macOS 26.6.x, not sure of the exact Thunderbird version), but I won't be able to verify this until I get home tomorrow evening.

On both machines, when I delete a message, the message list shows that message with a line through it, corresponding to the IMAP "marked for deletion" flag. The same is true on the other email clients I've used over the years.

On the machine at home , when I right-click on an account's "Inbox" folder, there is a "Compress folder" option which expunges the deleted messages from the mailbox. This option is not present in Thunderbird on this laptop.

So my questions are ...

  • Is the menu item I'm talking about, only present when the account uses MBOX for local storage, and maybe I missed a step when I created the account on the machine at home? (If so, I know how to fix that when I get home.)
  • Every email client I remember using, all the way back to the original `pine` in the mid-1990's, has had an "expunge" command of some kind. Does Thunderbird really not have a way to manually expunge a mailbox? If so, this seems like a fundamental oversight on the part of the Mozilla developers.
  • Or is there a way to do it, and my old eyes just aren't seeing it on the menus? (which is entirely possible)

Thanks.

(Side question, totally unrelated) ... why does the text entry control I'm typing this message into, have its own markup language instead of using standard Markdown? (And yes I am, at least in part, being old and gumbly here ... you kids get off my lawn!)

Most other email clients I've used have had a way to manually "expunge" a mailbox, i.e. delete the messages which are marked for deletion. This includes Thunderbird on a machine at home (I'm traveling right now). On this laptop I'm using Thunderbird 102.12.0 on macOS 26.6.2. All of my mailboxes use IMAP. Thunderbird is using Maildir for local storage on this laptop, and ''I believe'' the same is true on the machine at home (also macOS 26.6.x, not sure of the exact Thunderbird version), but I won't be able to verify this until I get home tomorrow evening. On both machines, when I delete a message, the message list shows that message with a line through it, corresponding to the IMAP "marked for deletion" flag. The same is true on the other email clients I've used over the years. On the machine at home , when I right-click on an account's "Inbox" folder, there is a "Compress folder" option which expunges the deleted messages from the mailbox. This option is not present in Thunderbird on this laptop. So my questions are ... * Is the menu item I'm talking about, only present when the account uses MBOX for local storage, and maybe I missed a step when I created the account on the machine at home? (If so, I know how to fix that when I get home.) * Every email client I remember using, all the way back to the original `pine` in the mid-1990's, has had an "expunge" command of some kind. Does Thunderbird ''really'' not have a way to ''manually'' expunge a mailbox? If so, this seems like a fundamental oversight on the part of the Mozilla developers. * Or is there a way to do it, and my old eyes just aren't seeing it on the menus? (which is entirely possible) Thanks. (Side question, totally unrelated) ... why does the text entry control I'm typing this message into, have its own markup language instead of using standard Markdown? (And yes I am, at least in part, being old and gumbly here ... you kids get off my lawn!)
この回答をすべて読む

選ばれた解決策

@Ed - the reason I'm asking the question is that the "Compact folder" option isn't there ... or at least, it wasn't there at the time. I also noticed (and probably should have mentioned this above) that the menu itself was being drawn using the native macOS style, rather than the Thunderbird style.

The machine has since been rebooted, and the "Compact folder" option IS there now.

It's very strange - it may have had something to do with the fact that I had upgraded Thunderbird to 153.0.2, but hadn't rebooted the machine after doing the upgrade. Maybe something from the previous version was still in memory? Who knows ...

この投稿は John により に変更されました

すべての返信 (6)

I admit that I may not understand what your intent is... does not one the settings found in <Account Settings | (account) | Server Settings | Server Settings | "When I delete a message..."> and/or <Account Settings | (account) | Server Settings | Message Storage | "Clean up ("Expunge") Inbox on Exit"> do what you want?

No.

  • Using "When I delete a message -> Move it to this folder" doesn't delete the messages, it just moves them to a different folder ... where they might never be deleted.
  • Using "When I delete a message -> Remove it immediately" prevents me from being able to un-delete messages that may have been deleted by mistake.
  • Using "Clean up (expunge) Inbox on Exit" has two problems: (1) it only works on "Inbox" folders - or if it works on all folders, the description doesn't say that ... and (2) it only expunges when you exit Thunderbird.

What I'm looking for is ...

  • A way to manually expunge messages ...
  • from any folder, even if that folder is not an "Inbox" ...
  • without having to quit and restart Thunderbird.

Again, every other MUA I've used for the past 20+ years includes a function like this. For example, macOS Mail.app calls this function "Erase Deleted Items".

Also, there are times when I may need to mark messages as deleted but NOT expunge them when quitting Thunderbird, especially if I'm only quitting Thunderbird to do an OS upgrade and I know I'll be picking up where I left off with Thunderbird afterward.

この投稿は John により に変更されました

Delete files in any folder > right-click the folder > Compact folder to regain space. But you also have to delete the files from Trash to expunge them.

If it's an IMAP Trash folder, most or all providers will permanently delete messages after some period of time.

You can set you own retention policy per account (see <account settings | synchronization & disk space "to recover space...") or per folder (right-click on any folder, choose &lt;properties retention policy&gt;. < p></account>

The Compact option only applies to MBOX format folders.

選ばれた解決策

@Ed - the reason I'm asking the question is that the "Compact folder" option isn't there ... or at least, it wasn't there at the time. I also noticed (and probably should have mentioned this above) that the menu itself was being drawn using the native macOS style, rather than the Thunderbird style.

The machine has since been rebooted, and the "Compact folder" option IS there now.

It's very strange - it may have had something to do with the fact that I had upgraded Thunderbird to 153.0.2, but hadn't rebooted the machine after doing the upgrade. Maybe something from the previous version was still in memory? Who knows ...

この投稿は John により に変更されました

@Lin

  • I'm not talking about a "Trash" or "Deleted Items" folder - this is primarily about the "Inbox" folders in multiple accounts, although I do sometimes delete messages from (and want to expunge) other folders as well. The command I'm asking about needs to be available for every folder, although if it's labeled something like "Empty trash" for a "Trash" folder, that's fine as well.
  • I can say with 100% certainty that there is nothing running on the server that deletes messages with the "deleted" flag, because I own the server, and am very intimately familiar with the software it's running (see qmail.jms1.net if you're curious). I made a decision 15+ years ago that clients (meaning "people who were paying me to host their mail", as opposed to "software accessing an IMAP mailbox") would be responsible for expunging their own folders, since I didn't want to accidentally delete messages from clients' mailboxes. (And even if there were a "janitor" process, it would have nothing to do with the question I was asking. I suspect you were reading more into my question than what I had actually asked.)
  • Now that I'm home, I've been able to verify that the accounts in question are all using Maildir for local storage. The "Compact Folder" option is present on the right-click menus again, so I'm curious where your statement that "The Compact option only applies to MBOX format folders" came from.

As I mentioned in my response (above), I had originally asked the question because the menu I was seeing on the screen when I right-clicked the folder, (1) didn't have the "Compact Folder" option, and (2) was being drawn using the macOS native style, rather than Mozilla's "flat" style. Rebooting the machine seems to have fixed whatever the problem was, the "Compact Folder" menu item is present again. My apologies for not investigating in more detail before asking the question.

Thanks everybody for your help.

質問する

投稿に返信するには あなたのアカウントにログイン する必要があります。まだアカウントをお持ちでなければ、新しい質問を開始 してください。