Cannot delete IMAP Mail-Folder in Trash
Hello,
I've noticed an annoying problem. Trying to delete a folder that has been deleted on IMAP and is moved to trash has problems being deleted. Thunderbird reports: "Folder contains children" and stops there. Folder at first disappears. But after restarting Thunderbird they are still there and on Dovecot-Mailbox folder on the server the folders are also still present.
I'm using Dovecot 2.2.18 + Thunderbird + FS-Layout.
I already tried this workaround-mode:
/protocol imap { //imap_client_workarounds = tb-extra-mailbox-sep //}/
best regards
Gabriel Kaufmann
_____________________________
TYPOWORX ΝΞШ.ΜΞDIΑ
Gabriel Kaufmann
Siegfriedstraße 38 | 38106 Braunschweig
USt.Id Nr. DE-268606152
*T*elefon:0531-2521800*F*ax:0531-2326411
+ Internetseiten | Web-Entwicklung | PHP | CMS | TYPO3 | Microsites*
+* Webhosting | Linux-Systemadministration
www.typoworx.de <http://www.typoworx.de/> Facebook
<http://www.facebook.com/pages/Typoworx-New-Media/134047336639842>
XING <https://www.xing.com/profile/Gabriel_Kaufmann>
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
in error) please notify the sender immediately and destroy this
e-mail. Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
Doesn't anyone have an idea?
It looks like Dovecot and/or Thunderbird simply "ignore" sub-folders of IMAP-Folder in Trash/ as they are also not shown in Trash-Folder. Sub-Folder for INBOX and other IMAP-Folders work perfect (using layout=fs Mailbox).
Why doesn't this work for Trash?
Best regards
Gabriel Kaufmann
On February 5, 2018 at 6:16 PM Gabriel Kaufmann mailings@typoworx.com wrote:
Doesn't anyone have an idea?
It looks like Dovecot and/or Thunderbird simply "ignore" sub-folders of IMAP-Folder in Trash/ as they are also not shown in Trash-Folder. Sub-Folder for INBOX and other IMAP-Folders work perfect (using layout=fs Mailbox).
Why doesn't this work for Trash?
Best regards
Gabriel Kaufmann
Can you try running this as root and provide output?
doveadm -Dv -o mail_debug=yes mailbox delete -u username Trash/Somefolder
Aki
On 5 Feb 2018, at 17:32, Aki Tuomi
mailto:aki.tuomi@dovecot.fi> wrote: On February 5, 2018 at 6:16 PM Gabriel Kaufmann
mailto:mailings@typoworx.com> wrote: Doesn't anyone have an idea?
It looks like Dovecot and/or Thunderbird simply "ignore" sub-folders of IMAP-Folder in Trash/ as they are also not shown in Trash-Folder. Sub-Folder for INBOX and other IMAP-Folders work perfect (using layout=fs Mailbox).
Why doesn't this work for Trash?
Best regards
Gabriel Kaufmann
Can you try running this as root and provide output?
doveadm -Dv -o mail_debug=yes mailbox delete -u username Trash/Somefolder
Aki
I had the same with Mac Mail.app. I decided to rm -rf the sdbox file on the master and replica and I won. It was persistant though and I think it had to do with the following:
I let my mail deliver in yearboxes, which have many many subfolders, some are just “placeholders”. They appear different in the view. Regular mailboxes are “dark” in colors, placeholder boxes are “white” in colors (see attachment), where winkels is the “placeholder” folder and “action” is the regular mailbox in which mail gets delivered.
I could not get rid of those “winkels” kind of folders”. Only by force removing them from the filesystem hierarchie.
Hope this helps a bit :)
Cheers Remko
We have the same problem, with a twist. When Thunderbird deletes a folder, it is still shown by the GUI. Dovecot deleted the folder correctly, and the sunscriptions file is also correct. Some other times, on shared folders, Thunderbird refuses to delete; in this case, apple mail on iphone can delete successfully. This suggests that the problem is in Thunderbird's code.
R
On Mon, Feb 5, 2018 at 21:55, Remko Lodder remko@FreeBSD.org wrote:
On 5 Feb 2018, at 17:32, Aki Tuomi aki.tuomi@dovecot.fi wrote:
On February 5, 2018 at 6:16 PM Gabriel Kaufmann mailings@typoworx.com wrote:
Doesn't anyone have an idea?
It looks like Dovecot and/or Thunderbird simply "ignore" sub-folders of IMAP-Folder in Trash/ as they are also not shown in Trash-Folder. Sub-Folder for INBOX and other IMAP-Folders work perfect (using layout=fs Mailbox).
Why doesn't this work for Trash?
Best regards
Gabriel Kaufmann
Can you try running this as root and provide output?
doveadm -Dv -o mail_debug=yes mailbox delete -u username Trash/Somefolder
Aki
I had the same with Mac Mail.app. I decided to rm -rf the sdbox file on the master and replica and I won. It was persistant though and I think it had to do with the following:
I let my mail deliver in yearboxes, which have many many subfolders, some are just "placeholders". They appear different in the view. Regular mailboxes are "dark" in colors, placeholder boxes are "white" in colors (see attachment), where winkels is the "placeholder" folder and "action" is the regular mailbox in which mail gets delivered.
I could not get rid of those "winkels" kind of folders". Only by force removing them from the filesystem hierarchie.
Hope this helps a bit :)
Cheers Remko
I have the same Problem with thunderbird on Linux.
It looks like thunderbirds imap-implementation is a little bit broken. Even if thunderbird tried once to get a mailbox, it persists in the profile.
I have FS-Layout in dovecot. Thunderbird somtimes try to get a submailbox with INBOX/firstlevel^secondlevel^thirdlevel
Then it doesn't find this mailbox on the server (for sure, it's INBOX/firstlevel/secondlevel/thirdlevel) tb tries to get next
INBOX/firstlevel^^secondlevel^^thirdlevel
and then INBOX/firstlevel^^^^secondlevel^^^^thirdlevel and so on. And on each first login, tb tries to get all of them again and again...
Go to $TB-profilefolder/ImapMail/ and delete all of the *.msf files and search for the wrong mailboxes, described above... you will finde them.
And they are probably also in some config-files in the profile. user.prefs i think, and panacea.dat i could find them.
Delete all of the entries (be careful). Close and restart firefox. Good look, the phantom-folders are gone.
jakob
Am 06.02.2018 um 07:15 schrieb Rupert Gallagher:
We have the same problem, with a twist. When Thunderbird deletes a folder, it is still shown by the GUI. Dovecot deleted the folder correctly, and the sunscriptions file is also correct. Some other times, on shared folders, Thunderbird refuses to delete; in this case, apple mail on iphone can delete successfully. This suggests that the problem is in Thunderbird's code.
R
On Mon, Feb 5, 2018 at 21:55, Remko Lodder
mailto:remko@FreeBSD.org> wrote: On 5 Feb 2018, at 17:32, Aki Tuomi
mailto:aki.tuomi@dovecot.fi> wrote: On February 5, 2018 at 6:16 PM Gabriel Kaufmann
mailto:mailings@typoworx.com> wrote: Doesn't anyone have an idea?
It looks like Dovecot and/or Thunderbird simply "ignore" sub-folders of IMAP-Folder in Trash/ as they are also not shown in Trash-Folder. Sub-Folder for INBOX and other IMAP-Folders work perfect (using layout=fs Mailbox).
Why doesn't this work for Trash?
Best regards
Gabriel Kaufmann
Can you try running this as root and provide output?
doveadm -Dv -o mail_debug=yes mailbox delete -u username Trash/Somefolder
Aki
I had the same with Mac Mail.app. I decided to rm -rf the sdbox file on the master and replica and I won. It was persistant though and I think it had to do with the following:
I let my mail deliver in yearboxes, which have many many subfolders, some are just "placeholders". They appear different in the view. Regular mailboxes are "dark" in colors, placeholder boxes are "white" in colors (see attachment), where winkels is the "placeholder" folder and "action" is the regular mailbox in which mail gets delivered.
I could not get rid of those "winkels" kind of folders". Only by force removing them from the filesystem hierarchie.
Hope this helps a bit :)
Cheers Remko
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 1 Feb 2018, Gabriel Kaufmann wrote:
I've noticed an annoying problem. Trying to delete a folder that has been deleted on IMAP and is moved to trash has problems being deleted. Thunderbird
does you have subscribed a probably non-existant subfolder of that folder? Check out the subscription file.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
??
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBWnqiYcQnQQNheMxiAQIMGQf/VBzyNrx9VPMKdiYa78iQSE4WMJ6PVj+H ZkMITFxvVP+3MRIfWM3I7QSkCXimgUm9aYeYIGtQNJuuvP3Zo+PGmOrsstXXGaUo 9xe0af3ETo8zo/2k1ec8Hg5QYQZAecsAyJWuTR6J9bEDfRZcU1Kw28pIKevL6HGd 9Wg1ITD5z/8+8zRPTfzhZvBAE8agUZnuI5NeqSz5F+9uCFzkDeC5iQBahUP8AojP maSNrjg2okU8l5mc2qz4sZEvOWgsLe+iEJJ0qOqxpS+nMC68SIjWph9tLpxRxKhX VIDZ1zlegULVI1Ji7ZR/9xaltvN0UdlZ2aSiYNbXNR3h2jhT/AH5bw== =wJBG -----END PGP SIGNATURE-----
Hello,
the folders exist physically in vmail-storage on filesystem for the given Mailbox\MailDir\Trash. I already tried to refresh subscription using IMAP on Thunderbird. Is there any other way using CLI and dovecot to (re-)check subscriptions or do some kind of rescan?
Trying to delete the physically (in file-system on server) existing folders using IMAP always complains that the folder is not empty. In fact some of these folders also had sub-folders in IMAP before being deleted into Trash. In Filesystem these sub-folders also exist physically! But in trash they are not shown anymore - only their parent-folder without those children.
I'm using "layout=fs" option (physical folder/sub-folder and not MBOX like "folder.sub-folder.sub-sub-folder". It feels like Trash is ignoring this layout. I didn't figure out there is any option that is required to configure trash (separately from Mailbox-Namespace in dovecot) to recognise this.
Best regards
Gabriel Kaufmann
Finally I was able to resolve the issue. I had to do close Thunderbird. Delete the misbehaving folders on imap-server Maildir/Trash. Start Thunderbird, did "Repair" on Trash folder after that and the files were gone!
There's only one waisted "ghost" folder shown for renew subscription (grayed out) that does not exist on imap-server. But it's not shown in my Trash-Folder anymore! So that's a good success.
I hope deleting folders in future won't make the problem reappear.
Best regards
Gabriel Kaufmann
participants (6)
-
Aki Tuomi
-
Gabriel Kaufmann
-
Jakobus Schürz
-
Remko Lodder
-
Rupert Gallagher
-
Steffen Kaiser