Hi all,

I believe the author's name is Jeff Dubrule.  I use the patch too, and
it works great!  I've included Jeff's text that went along with the
patch:


> Ok, a long time ago I griped about the lack of a "trash" mailbox to which
> deleted messages would get moved.  I was directed to:
> 
> unset confirmappend
> folder-hook . "macro index d 's=trash\n'"
> folder-hook . "macro pager d 's=trash\n'"
> folder-hook trash "bind index d delete-message"
> folder-hook trash "bind pager d delete-message"
> 
> This annoyed me because it was slow, didn't handle ^D (delete-thread), and
> could cause me to make >1 copy of something if I hit 'd' on it more than
> once.  Finally, this is distinctly non-obvious to the casual user.  As a
> solution, I present this patch, which saves deleted messages to a designated
> mail-folder.
> 
> While this feature is not traditionally included with Unix MUAs, I find it
> invaluable: I get too much mail to pay great attention to each one I delete.
> If I make a mistake, I'll never be able to recover that message.  This way,
> I can move 'em all to a 'trash' folder, have a cron-job clean up the old
> messages, so I have a week to realize that I screwed up.
> 
> OK, the details:
> 
> Include "set trash = +trash" (or whatever) in your .muttrc, and when the
> mailbox syncs, it'll copy all the deleted messages to the trash mailbox
> before zapping it.  This behaviour does not occur, however, if the trash
> mailbox itself is selected.
> 
> This patch works with all mailbox types.
> 
> -igor


-- 
Mun

Reply via email to