commit 926b990b6e408fca730c04b9c81c04fee2a0e669 parent ff99c62981050b11e21a0ae69bf305d01188488a Author: Antoine Amarilli <a3nm@a3nm.net> Date: Mon, 1 Sep 2014 20:53:25 +0200 better draft handling Diffstat:
mutt/muttrc | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/mutt/muttrc b/mutt/muttrc @@ -33,11 +33,11 @@ set sleep_time=0 set nomarkers set nowait_key set pager_stop +set pager_index_lines=5 # check mail frequently set timeout=10 set mail_check=5 -set pager_index_lines=5 # sorting and threading set sort=threads @@ -137,10 +137,11 @@ macro index z \ set postponed="=inbox" # ugly hack to resume the currently highlighted mail # may fail messily if you do not create =draft_tmp first +# save two copies to force it to be non-empty +# we resume the last one as maildir_trash means we are never empty macro index,pager R \ - "<enter-command>set postponed='=draft_tmp'<enter>\ - s=draft_tmp<enter>\ - <recall-message><enter-command>set postponed='=inbox'<enter>" \ + "<enter-command>set postponed='=draft_tmp' my_old_maildir_trash=\$maildir_trash nomaildir_trash<enter>\ + s=draft_tmp<enter><recall-message><enter-command>set postponed='=inbox' maildir_trash=\$my_old_maildir_trash<enter>" \ "recall current message" # unmodified drafts should be saved back to the inbox, not discarded set noabort_unmodified