[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-users
Subject:    Re: folder-hook push not responding as expected.
From:       Cedric Duval <cedricduval () free ! fr>
Date:       2002-06-29 9:52:24
[Download RAW message or body]

Vikram Goyal wrote:
> But naturally there are more than one way to do something and better in
> mutt.

Yeah!  :)

> I still have to figure out how to move deleted messages form the
> folder dir to Trash on folder-exit. If possible give an ex.

Despite its name, $maildir_trash is not the more appropriate solution to
emulate a trash folder. I'd suggest one of these solutions:

* with folder-hooks and macros:

     folder-hook .     macro index d "<save-message>=Trash<enter>"
     folder-hook .     macro pager d "<save-message>=Trash<enter>"
     folder-hook Trash macro index d "<delete-message>"
     folder-hook Trash macro pager d "<delete-message>"

  This is the more straightforward approach generally used. Well, in
  fact the mails are move to the trash when you press 'd', and not at
  sync time. But this is easier to setup than all the tricks with
  $maildir_trash.

* or if you don't mind patching (and it seems to be the case), you could
  try http://cedricduval.free.fr/mutt/#trash so that your messages are
  really moved when syncing.

Hope this helps,
-- 
Cedric
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic