Externally deleted mail still shows up in Inbox

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Externally deleted mail still shows up in Inbox

Geert Lorang
Hi,

Not sure if a bug or feature. When I delete a mail in my Thunderbird
client and login afterwards in Squirrelmail all deleted mails are still
visible in Squirrelmail -- grayed out and with the "Deleted"-icon.

Deleting a single mail will clean up the entire list; e.g. if I removed
20 mails in Thunderbird, Squirrelmail will show 20 grayed rows, moving
just 1 mail (in Squirrelmail) to "Trash" removes all 20 lines.

I checked open bugs and did some Google-ing but can't seem to find
anything similar.

Server side I'm on SVN r14363. Running on Debian 6.0.7, Apache 2.2.16 /
PHP 5.3.3, courier-imap 4.8.0-3, postfix 2.7.1.
All installed from Debian repos.

Client side I'm on Thunderbird 17.0.7 / Chrome 28.0.1500.72 / IE 8.0.

Any help appreciated.

Cheers,
Geert

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Reply | Threaded
Open this post in threaded view
|

Re: Externally deleted mail still shows up in Inbox

Fredrik Jervfors-4
> Not sure if a bug or feature.

Feature.

> When I delete a mail in my Thunderbird
> client and login afterwards in Squirrelmail all deleted mails are still
> visible in Squirrelmail -- grayed out and with the "Deleted"-icon.

Deleting a mail on an IMAP server is a two step process: marking the mail
as deleted, and then expunge the mail marked as deleted. Apparently
Thunderbird only does the first step which is why you see the mail as gray
with an icon in SquirrelMail.

> Deleting a single mail will clean up the entire list; e.g. if I removed
> 20 mails in Thunderbird, Squirrelmail will show 20 grayed rows, moving
> just 1 mail (in Squirrelmail) to "Trash" removes all 20 lines.

Your SquirrelMail is likely to be configured to expunge automatically when
doing a delete. When you use SquirrelMail to move a mail to Trash it
really creates a copy of the mail in Trash, then marks the original as
"delete" and optionally (depending on configuration) expunges everything
marked as "delete". The expunge configuration is done by the system
administrator on the server ($auto_expunge in config/config.php or use the
configuration tool's folder configuration).

Your problem is that SquirrelMail and Thunderbird are configured
differently. If you're the SquirrelMail administrator you can choose to
reconfigure either SquirrelMail or Thunderbird, otherwise you have to
reconfigure Thunderbird (which also happens to be my recommendation).

I haven't used Thunderbird myself, but searching for "thunderbird expunge"
gave me the impression that you can set mail.imap.expunge_after_delete to
true using Thunderbird's Config Editor (Tools > Options > Advanced >
General > Config Editor) and that it would solve your problem. I suggest
you read the Thunderbird documentation for more details about this
setting.

> I checked open bugs and did some Google-ing but can't seem to find
> anything similar.
>
> Server side I'm on SVN r14363. Running on Debian 6.0.7, Apache 2.2.16 /
> PHP 5.3.3, courier-imap 4.8.0-3, postfix 2.7.1.
> All installed from Debian repos.
>
> Client side I'm on Thunderbird 17.0.7 / Chrome 28.0.1500.72 / IE 8.0.

Sincerely,
Fredrik

--
Fredrik Jervfors <http://fredrik.jervfors.se/>
The SquirrelMail Project
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donations.php


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Reply | Threaded
Open this post in threaded view
|

Re: Externally deleted mail still shows up in Inbox

Geert Lorang
On 31/07/2013 14:08, Fredrik Jervfors wrote:

> Your SquirrelMail is likely to be configured to expunge automatically when
> doing a delete. When you use SquirrelMail to move a mail to Trash it
> really creates a copy of the mail in Trash, then marks the original as
> "delete" and optionally (depending on configuration) expunges everything
> marked as "delete". The expunge configuration is done by the system
> administrator on the server ($auto_expunge in config/config.php or use the
> configuration tool's folder configuration).
>
> Your problem is that SquirrelMail and Thunderbird are configured
> differently. If you're the SquirrelMail administrator you can choose to
> reconfigure either SquirrelMail or Thunderbird, otherwise you have to
> reconfigure Thunderbird (which also happens to be my recommendation).
>
> I haven't used Thunderbird myself, but searching for "thunderbird expunge"
> gave me the impression that you can set mail.imap.expunge_after_delete to
> true using Thunderbird's Config Editor (Tools > Options > Advanced >
> General > Config Editor) and that it would solve your problem. I suggest
> you read the Thunderbird documentation for more details about this
> setting.

Great explanation, thanks for that! $auto_expunge is indeed set to true
in my SquirrelMail config and setting mail.imap.expunge_after_delete to
true fixes my issue!

Just for reference:

Mozilla states about this that it's up to the mail client to either show
or hide messages that are marked as deleted.

http://kb.mozillazine.org/Deleting_messages_in_IMAP_accounts :

 >> It is perfectly appropriate for a deleted message in a IMAP account
 >> to be visible in webmail or other email clients. Deleting a message
 >> just sets a flag, and it's up to the GUI what it should do when
 >> there is a message with that flag set.

Cheers,
Geert




------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [hidden email]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users