mutt stable branch with some hacks
at master 38 lines 1.3 kB view raw
1# Example Mutt config file for the compress feature. 2 3# This feature adds three hooks to Mutt which allow it to 4# work with compressed, or encrypted, mailboxes. 5 6# The hooks are of the form: 7# open-hook regexp "shell-command" 8# close-hook regexp "shell-command" 9# append-hook regexp "shell-command" 10 11# The 'append-hook' is optional. 12 13# Handler for gzip compressed mailboxes 14open-hook '\.gz$' "gzip -cd '%f' > '%t'" 15close-hook '\.gz$' "gzip -c '%t' > '%f'" 16append-hook '\.gz$' "gzip -c '%t' >> '%f'" 17 18# Handler for bzip2 compressed mailboxes 19open-hook '\.bz2$' "bzip2 -cd '%f' > '%t'" 20close-hook '\.bz2$' "bzip2 -c '%t' > '%f'" 21append-hook '\.bz2$' "bzip2 -c '%t' >> '%f'" 22 23# Handler for xz compressed mailboxes 24open-hook '\.xz$' "xz -cd '%f' > '%t'" 25close-hook '\.xz$' "xz -c '%t' > '%f'" 26append-hook '\.xz$' "xz -c '%t' >> '%f'" 27 28# Handler for pgp encrypted mailboxes 29# PGP does not support appending to an encrypted file 30open-hook '\.pgp$' "pgp -f < '%f' > '%t'" 31close-hook '\.pgp$' "pgp -fe YourPgpUserIdOrKeyId < '%t' > '%f'" 32 33# Handler for gpg encrypted mailboxes 34# gpg does not support appending to an encrypted file 35open-hook '\.gpg$' "gpg --decrypt < '%f' > '%t'" 36close-hook '\.gpg$' "gpg --encrypt --recipient YourGpgUserIdOrKeyId < '%t' > '%f'" 37 38# vim: syntax=muttrc