[imp] Deleted messages not moved to trash from client

LALOT Dominique dom.lalot at gmail.com
Thu Apr 9 14:30:17 UTC 2009


I'm not sure to understand your question, but Thunderbird clients leaves the
original mail  in flag Deleted state and copy it to a trash folder. And
under dimp, even if you use move to trash, you get those deleted mail in the
mail list and no way to get rid of them.
And the prefs delhide has a strange behaviour

So I wrote a patch which is working for me. I have to admit that I didn't
understand the full logic of hideDeletedMsgs() . But from my point of view,
hide deleted should work all the time..

--- horde/imp/lib/IMP.php.org 2009-03-24 11:49:09.000000000 +0100
+++ horde/imp/lib/IMP.php  2009-03-26 08:25:32.000000000 +0100
@@ -1419,6 +1419,7 @@ class IMP {
             if ($GLOBALS['prefs']->getValue('use_vtrash')) {
                 $delhide = !$GLOBALS['imp_search']->isVTrashFolder();
             } else {
+               if ($GLOBALS['prefs']->getValue('use_trash')) return true; #
patch DOM comprend pas les lignes qui suivent..logique tordue
                 $sortpref = IMP::getSort();
                 $delhide = ($GLOBALS['prefs']->getValue('delhide') &&
                             *!$GLOBALS['prefs']->getValue('use_trash') &&*

why should'nt we hide deleted when  in move to trash?

Dom

2009/4/8 E. John Messersmith III <ejm at ejm3.net>

> Well, I don't know what Gmail is doing either but the iPhone gets it right
> in all cases and all clients get it right when using Gmail. I'm
> not being angry here just very frustrated. I don't know how I can be any
> clearer. It is either a configuration parameter of IMAP or Horde or both.
>
> Webmail - which I think is also part of the Horde project - gets it right
> too! So what is it doing? I go to Mail Options->Deleting and Moving
> Messages and I simply check the option "When deleting messages, move them to
> your Trash folder instead of marking them as deleted?" I select a message
> and click the Delete link. No marking for deletion; no counting; no nothing
> - just a simple move from one folder to another - everything is still in one
> Mailbox. So the "delete" command simply gets translated (or is made
> equivalent to) a "move" to the trash folder command. The client doesn't have
> to do anything. As long as the server moves the message to the trash folder
> the new state is simply reflected (updated) in the client. Why is this so
> difficult to understand? Is there something obvious I'm missing?
>
> So my question remains: given that I have selected the correct Webmail
> option (and set the corresponding option in all my clients), why is it when
> a remote IMAP client (Outlook, Outlook Express, Windows Mail) executes a
> "delete" command and that command is received by the IMAP server is it not
> translated into a "move" to the trash folder command?
>
>
>


-- 
Dominique LALOT
Ingénieur Systèmes et Réseaux
http://annuaire.univmed.fr/showuser.php?uid=lalot


More information about the imp mailing list