viewmail-info
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [VM] Make vm-save-and-expunge-folder use a trash can?


From: Daniel Barrett
Subject: Re: [VM] Make vm-save-and-expunge-folder use a trash can?
Date: Wed, 11 Jun 2014 10:03:53 -0400

Thank you very much for this suggestion.

This solution is almost (but not quite) complete because you can't
delete anything in the trash folder. :-) Each time you press "D" in
the trash, another copy of the message gets appended. How do you
obtain the path to the current folder, so I can add if/then/else logic
to the function, e.g.,

if not viewing the trash folder
then
  bind "D" to vm-save-message-to-trash
else
  let "D" remain as an ordinary delete operation
end if

Thanks!
Dan

On June 6, 2014, Uday Reddy wrote:
>Rebind the delete key (`d') to the `vm-save-message-to-trash' function
>defined here:
>
>http://comments.gmane.org/gmane.emacs.viewmail/106
>
>Cheers,
>Uday
>
>Daniel Barrett writes:
>
>> 
>> Hi - I just joined the viewmail-info list today. Been using VM for
>> maybe 20 years...?
>> 
>> Anyway, I have a question. The most common mistake I make with VM is
>> hitting "S" (vm-save-and-expunge-folder) too soon, deleting a message
>> that I didn't mean to delete. Is there some way to make
>> vm-save-and-expunge-folder move messages into a "trash" folder, rather
>> than permanently deleting them, so I can undo my mistake the next time
>> it happens?
>> 
>> It would be fine if this worked only for the inbox folder. (My other
>> folders I can presumably retrieve from backups. Inbox changes too
>> frequently for that.)
>> 
>> Thanks very much.
>> 
>> --
>> Dan Barrett
>> address@hidden
>> 
>> 
>> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]