myconfig

my config files
git clone https://a3nm.net/git/myconfig/
Log | Files | Refs | README

commit 47121333f5ede803b9a2f44ec7e53a893ce036ba
parent 1ec0badbc35f63cab19c9d4ba88f07db4235a779
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue,  5 Aug 2014 22:27:38 +0200

try new draft handling

Diffstat:
mutt/muttrc | 37++++++++++++++++++-------------------
1 file changed, 18 insertions(+), 19 deletions(-)

diff --git a/mutt/muttrc b/mutt/muttrc @@ -130,33 +130,32 @@ macro index z \ # == Postponed mail == +#macro index,pager R \ +#"<enter-command>set my_old_resolve=\$resolve noresolve<enter>\ +#d<resend-message>\ +#<enter-command>set resolve=\$my_old_resolve <enter>" \ +# "recall" +#set postponed="=draft_written" + +# save postponed mail in the inbox set postponed="=inbox" +# ugly hack to resume the currently highlighted mail +# may fail messily if you do not create =draft_tmp first macro index,pager R \ -"<enter-command>set my_old_resolve=\$resolve noresolve<enter>\ -d<resend-message>\ -<enter-command>set resolve=\$my_old_resolve <enter>" \ - "recall" -set noabort_unmodified # because of this use of 'R' - -# TODO: try instead to use real 'R' after having saved to a specific folder -# along the lines of: -#macro index,pager R \ -# "<enter-command>set postponed='=draft_written'<enter>\ -# s=draft_written<enter>\ -# <recall-message>\ -# c=draft_written<enter>\ -# t~a<enter>;s=inbox<enter>\ -# I\ -# <enter-command>set postponed='=inbox'<enter>" \ -# "recall" + "<enter-command>set postponed='=draft_tmp'<enter>\ + s=draft_tmp<enter>\ + <recall-message><enter-command>set postponed='=inbox'<enter>" \ + "recall current message" +# unmodified drafts should be saved back to the inbox, not discarded +set noabort_unmodified # keep old mail around to complete threads set maildir_trash # reset default limit macro index B "l~(! ~D)<enter>" - -folder-hook . push 'B=*' +# apply it on all folders by default +folder-hook . push 'B=*' # automatically view html mail using mailcap auto_view text/html