File Manager
# Example Mutt config file for the compress feature.
# This feature adds three hooks to Mutt which allow it to
# work with compressed, or encrypted, mailboxes.
# The hooks are of the form:
# open-hook regexp "shell-command"
# close-hook regexp "shell-command"
# append-hook regexp "shell-command"
# The 'append-hook' is optional.
# Handler for gzip compressed mailboxes
open-hook '\.gz$' "gzip -cd '%f' > '%t'"
close-hook '\.gz$' "gzip -c '%t' > '%f'"
append-hook '\.gz$' "gzip -c '%t' >> '%f'"
# Handler for bzip2 compressed mailboxes
open-hook '\.bz2$' "bzip2 -cd '%f' > '%t'"
close-hook '\.bz2$' "bzip2 -c '%t' > '%f'"
append-hook '\.bz2$' "bzip2 -c '%t' >> '%f'"
# Handler for xz compressed mailboxes
open-hook '\.xz$' "xz -cd '%f' > '%t'"
close-hook '\.xz$' "xz -c '%t' > '%f'"
append-hook '\.xz$' "xz -c '%t' >> '%f'"
# Handler for pgp encrypted mailboxes
# PGP does not support appending to an encrypted file
open-hook '\.pgp$' "pgp -f < '%f' > '%t'"
close-hook '\.pgp$' "pgp -fe YourPgpUserIdOrKeyId < '%t' > '%f'"
# Handler for gpg encrypted mailboxes
# gpg does not support appending to an encrypted file
open-hook '\.gpg$' "gpg --decrypt < '%f' > '%t'"
close-hook '\.gpg$' "gpg --encrypt --recipient YourGpgUserIdOrKeyId < '%t' > '%f'"
# vim: syntax=muttrc
File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com