Re: can not go to the message I want to undelete
On 2009-04-21, Zhengquan Zhang wrote: I accidentally used 'd' on a message and can not go back to it. I tried to use arrow keys to go back to it and use 'u' to undelete it but it just failed to do so. You could use `undelete-pattern', which, for me, is mapped to `U'. So, I would type `U.*' to undelete all messages in the current view. -- Monte
Re: can not go to the message I want to undelete
* Monte Stevens montk...@yahoo.ca [20090422 11:46]: On 2009-04-21, Zhengquan Zhang wrote: I accidentally used 'd' on a message and can not go back to it. I tried to use arrow keys to go back to it and use 'u' to undelete it but it just failed to do so. You could use `undelete-pattern', which, for me, is mapped to `U'. So, I would type `U.*' to undelete all messages in the current view. Or type the message number (usually leftmost in the message index) and when you are on the deleted message, press 'u' for undelete. -- Anders Rayner-Karlsson and...@trudheim.co.uk All-Round Linux Tinkerer, RHCE and PITA DeLuxe
Re: can not go to the message I want to undelete
* Chris Jones cjns1...@gmail.com [2009-04-21 21:26 -0500]: Nobody I know is able to hit Shift+d by accident. My cat can... wait, I'm assuming he does that on accident... hrm. ;) -- dave [ please don't CC me ]
Re: can not go to the message I want to undelete
:exec first-entry On Tue, Apr 21, 2009 at 07:55:45PM -0500, Zhengquan Zhang wrote: Dear mutt community, I accidentally used 'd' on a message and can not go back to it. I tried to use arrow keys to go back to it and use 'u' to undelete it but it just failed to do so. I have 'set delete=yes' in muttrc. So once I quit mutt, the message will be automatically deleted. I don't want this to happen. Thanks for any suggestions as to how to save this message. Regards, -- Zhengquan -- Kevin Beranek = GPG Key: 1024D/0x5E62AB46 2009-02-13 pgpnKho0YU8nx.pgp Description: PGP signature
Re: can not go to the message I want to undelete
* Zhengquan Zhang zhang.zhengq...@gmail.com [2009-04-21 19:58 -0500]: I accidentally used 'd' on a message and can not go back to it. I tried to use arrow keys to go back to it and use 'u' to undelete it but it just failed to do so. I have 'set delete=yes' in muttrc. So once I quit mutt, the message will be automatically deleted. I don't want this to happen. Perhaps you could simply select the message by typing its number, then 'C' to copy it, and select the current mailbox as the destination? That would result in a duplicate message existing if your undelete efforts succeed, but even if you lose the original message you'll have the copy. Regards, -- dave [ please don't CC me ]
Re: can not go to the message I want to undelete
On (21/04/09 21:13), David J. Weller-Fahy wrote: | To: mutt-users@mutt.org | From: David J. Weller-Fahy dave-lists-mutt-us...@weller-fahy.com | Subject: Re: can not go to the message I want to undelete | Date: Tue, 21 Apr 2009 21:13:55 -0500 | X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,RDNS_NONE | autolearn=no version=3.2.5 | | * Zhengquan Zhang zhang.zhengq...@gmail.com [2009-04-21 19:58 -0500]: | I accidentally used 'd' on a message and can not go back to it. I | tried to use arrow keys to go back to it and use 'u' to undelete it | but it just failed to do so. | | I have 'set delete=yes' in muttrc. So once I quit mutt, the message | will be automatically deleted. I don't want this to happen. | | Perhaps you could simply select the message by typing its number, then | 'C' to copy it, and select the current mailbox as the destination? That | would result in a duplicate message existing if your undelete efforts | succeed, but even if you lose the original message you'll have the copy. | Or just open another terminal, go to the right mailbox, and if you don't know the right number for the message you're worrying about, just copy them all to another directory? Once you confirm that the copy worked, close mutt, open it again, and change to whatever directory you parked the mail in? -- johnrchamp...@columbus.rr.com GPG key 1024D/99421A63 2005-01-05 EE51 79E9 F244 D734 A012 1CEC 7813 9FE9 9942 1A63 gpg --keyserver subkeys.pgp.net --recv-keys 99421A63 signature.asc Description: Digital signature
Re: can not go to the message I want to undelete
On (21/04/09 22:25), Chris Jones wrote: | To: mutt-users@mutt.org | From: Chris Jones cjns1...@gmail.com | Subject: Re: can not go to the message I want to undelete | Date: Tue, 21 Apr 2009 22:25:20 -0400 | X-Spam-Status: No, score=-6.3 required=5.0 tests=AWL,BAYES_00,RDNS_NONE | autolearn=no version=3.2.5 | | On Tue, Apr 21, 2009 at 09:08:00PM EDT, Kevin Beranek wrote: | | :exec first-entry | | And consider changing d for delete to something less accident-prone | such as D ... Shift+d. | | Nobody I know is able to hit Shift+d by accident. Or make a trash directory and add this to your .muttrc: # Dealing with trash # http://marc.info/?l=mutt-usersm=120033080807087w=2 # Keep a copy of all messages folder-hook . 'macro index,pager d save-message~/Mail/trashenter' # Except those in the trash folder-hook ~/Mail/trash 'macro index,pager d delete-message' set confirmappend=no set confirmcreate=yes You'll have to empty the trash from time to time: add this to .bashrc: alias trash='rm -f ~/Mail/trash/cur/*' (but replacing ~/Mail/trash/cur/ with your trash directory. -- johnrchamp...@columbus.rr.com GPG key 1024D/99421A63 2005-01-05 EE51 79E9 F244 D734 A012 1CEC 7813 9FE9 9942 1A63 gpg --keyserver subkeys.pgp.net --recv-keys 99421A63 signature.asc Description: Digital signature
Re: can not go to the message I want to undelete
On Wed, Apr 22, 2009 at 03:39:55AM +0200, Michael Tatge wrote: * On Tue, Apr 21, 2009 07:55PM -0500 Zhengquan Zhang (zhang.zhengq...@gmail.com) muttered: I accidentally used 'd' on a message and can not go back to it. Well there are so many ways: 1. type the message number 2. use previous-entry next-entry (bound to K/J) instead of previous-undeleted next-undeleted (arrow keys) 3. use undelte-pattern (U) 4. exit mutt instead of quit 5. use toggle-write (bound to % by default) to make the mailbox unwritable, then change to another mailbox and back. Ed signature.txt Description: Digital signature
[Solved, Thanks!] Re: can not go to the message I want to undelete
Thank you guys, Mutt community is fantastic! Regards, -- Zhengquan