]> git.madduck.net Git - etc/mutt.git/blobdiff - .mutt/hooks

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

undelete deleted messages on mailbox entry
[etc/mutt.git] / .mutt / hooks
index 2a5c1fc20e531d723cf055a2754f9267da0f48fe..ef4d92abf774a58bc979e73107f733049f3885f2 100644 (file)
@@ -1,6 +1,6 @@
 save-hook . =store
 
 save-hook . =store
 
-send-hook '~C @bugs\.debian\.org' 'my_hdr X-Debbugs-No-Ack: please spare me'
+#send-hook '~C @bugs\.debian\.org' 'my_hdr X-Debbugs-No-Ack: please spare me'
 send-hook '~C @packages\.qa\.debian\.org' 'my_hdr X-PTS-Approved: please'
 #send-hook '~C -request@' 'my_hdr X-Record: discard'
 
 send-hook '~C @packages\.qa\.debian\.org' 'my_hdr X-PTS-Approved: please'
 #send-hook '~C -request@' 'my_hdr X-Record: discard'
 
@@ -23,7 +23,17 @@ send-hook '~C git@vger\.kernel\.org' 'unset followup_to'
 
 folder-hook spam push '<tag-pattern>~O<enter><tag-prefix><set-flag>n<tag-prefix><clear-flag>*<limit>~N<enter><sort-mailbox>p<first-entry>'
 
 
 folder-hook spam push '<tag-pattern>~O<enter><tag-prefix><set-flag>n<tag-prefix><clear-flag>*<limit>~N<enter><sort-mailbox>p<first-entry>'
 
-folder-hook . 'set pager_index_lines=5'
-folder-hook feeds|mass 'set pager_index_lines=10'
+#folder-hook . 'set pager_index_lines=5'
+#folder-hook feeds|mass 'set pager_index_lines=10'
+
+folder-hook store push '<tag-pattern>~O|~N<enter><tag-prefix><clear-flag>n<tag-prefix><clear-flag>*<last-entry>'
+
+# since I have delete=yes, messages marked for trashing on mailbox entry must
+# be due to IMAP clients or the like not purging them. I found that some
+# clients automatically trash read mail from the INBOX, for *whatever* reason.
+# I have not found the authors of those clients yet. In the mean time, since
+# messages are not expected to be marked for deletion on mailbox entry, the
+# following ensures that I lose no more mail.
+folder-hook . push '<undelete-pattern>~D<enter>'
 
 # vim:ft=muttrc
 
 # vim:ft=muttrc