Changes RSS

====== Mitt mutt-oppsett ====== Har bør jeg si noe om hvor flott mutt er, og hvorfor jeg kjører source-mutt.. FIXME As most documents in the Wiki are in english, to cater to an international audience, this document needs to be translated. ===== Mutt from source ===== Uavhengig av distribusjon, starter jeg med å installere "prerequisites", hva som mangler vil variere, men dette var kompletteringskommandoen min på Ubuntu 8.04 med enlightenment-prerequisites installert. sudo apt-get install ncurses-dev libsasl2-dev libsasl2 openssl libssl0.9.8 libssl-dev libdb4.6-dev \ gnupg gpgv libgpgme11 libgpgme11-dev libgpg-error0 libgpg-error-dev \ libslang2 libslang2-dev GnuPG-linjene er selvfølgelig kun nødvendig dersom du ikke har GnuPG installert fra før, eller ikke planlegger å bruke GnuPG/PGP... Deretter lastes mine favoritt-patcher ned, og dekomprimeres: wget http://mutt.org.ua/download/mutt-1.5.19/patch-1.5.19.rr.compressed.gz wget http://mutt.org.ua/download/mutt-1.5.19/patch-1.5.19.vvv.quote.gz wget http://mutt.org.ua/download/mutt-1.5.19/patch-1.5.19.vvv.nntp.gz wget http://tobbe.nu/media/attachments/20080404/mutt-inform-screen.patch for i in `ls patch*gz`; do gunzip $i; done På tide å skaffe selve mutt-pakken. ATOW, så er mutt-1.5.19 siste devel-utgave wget ftp://ftp.mutt.org/mutt/devel/mutt-1.5.19.tar.gz tar zxvf mutt-1.5.19.tar.gz cd mutt-1.5.19 Pathcher opp patch -p1 < ../patch-1.5.19.vvv.nntp patch -p1 < ../patch-1.5.19.vvv.quote patch -p1 < ../patch-1.5.19.rr.compressed patch -p1 < ../mutt-inform-screen.patch auto-tools mekking: aclocal -I m4 autoheader automake --foreign autoconf Konfigurasjonen min er som følger: ./configure --enable-pop --enable-imap --enable-smtp \ --enable-nntp --enable-nfs-fix --enable-exact-address \ --with-slang --with-ssl --with-sasl --enable-compressed \ --enable-hcache --enable-gpgme --enable-pgp Deretter kompileres det hele opp og installeres under /usr/local make sudo make install ===== Mutt konfigurasjon (muttrc) ===== ... her kommer jeg til å snakke om oppsettet mitt :D # jonl - muttrc - v2.5 # # ### Mailboxes # Automatically log in to this mailbox at startup set spoolfile = "imaps://user@imapserver.example.com/INBOX" set folder = "imaps://user@imapserver.example.com/INBOX" set record = "imaps://user@imapserver.example.com/Sent Items" set postponed = "imaps://user@imapserver.example.com/Drafts" # # ### IMAP Settings # Don't wait to enter mailbox manually unset imap_passive # Automatically poll subscribed mailboxes for new mail (new in 1.5.11) set imap_check_subscribed # And poll the current mailbox more often (not needed with IDLE in post 1.5.11) set timeout = 10 # keep a cache of headers for faster loading (1.5.9+) set header_cache = ~/.hcache # Reduce polling frequency to a sane level (1.5.x) set mail_check = 60 # Display download progress every 5K set net_inc = 5 set mark_old = no # # ### Sender address set from = "Real Name <real.name@example.com>" set realname = "Real Name" set reverse_name = yes set reverse_realname = no set envelope_from_address = "Real Name <real.name@example.com>" set use_envelope_from set smtp_url = smtp://smtpserver.example.com/ # # ### GPG/PGP ### set pgp_decode_command = "gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f" set pgp_verify_command = "gpg --no-verbose --batch --output - --verify %s %f" set pgp_decrypt_command = "gpg --passphrase-fd 0 --no-verbose --batch --output - %f" set pgp_sign_command = "gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" set pgp_clearsign_command = "gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" set pgp_encrypt_only_command= "pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" set pgp_encrypt_sign_command= "pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" set pgp_import_command = "gpg --no-verbose --import -v %f" set pgp_export_command = "gpg --no-verbose --export --armor %r" set pgp_verify_key_command = "gpg --no-verbose --batch --fingerprint --check-sigs %r" set pgp_list_pubring_command= "gpg --no-verbose --batch --with-colons --list-keys %r" set pgp_list_secring_command= "gpg --no-verbose --batch --with-colons --list-secret-keys %r" # set pgp_sign_as = 0x580CA477 set pgp_timeout = 1800 set pgp_good_sign = "^gpg: Good signature from" set pgp_auto_decode = yes # set pgp_autosign = no set pgp_autoencrypt = no set pgp_replyencrypt = yes set pgp_replysign = yes set pgp_replysignencrypted = yes # set crypt_verify_sig = yes set crypt_autosign = no set crypt_replysign = yes set crypt_replyencrypt = yes set crypt_replysignencrypted= yes # # ### Editor settings set editor = "vim -c \"set tw=72\"" set signature = "~/.signature" set sig_dashes = yes # # ### Message display set smart_wrap # Do not move read messages out of inbox.. or something like that.. set nomove # Don't jump to next message at end of message. set pager_stop # Internal Pager: ~~~~ at and of message? set tilde ignore * unignore from: subject to cc reply-to: date unignore x-mailing-list: x-mailer hdr_order date from to cc reply-to: subject x-mailing-list # alternative_order text/plain text/enriched text/html # # ### Actions on send unset force_name # should we keep ourselves in group replies? unset metoo # do not ask for to, subject,... when replying. set fast_reply # Mail-Followup-To header is honored? set honor_followup_to # quote message, when replying set include=yes my_hdr From: Jon Langseth <jon.langseth@hig.no> # set charset = iso-8859-1 # set ascii_chars = yes # # ### Index display set sort = threads set sort_aux = date set pager_index_lines = 12 set index_format = " %M %C %Z [%d] | %-18.18L | %s" set date_format = "%Y-%m-%d %H:%M" set folder_format = "%N %f" # Do not use "->" as cursor (tho it is faster on slow networks). unset arrow_cursor # Use Line-draw, not ASCII chars for threading arrows. unset ascii_chars # beep on new mail set beep_new set quit = ask-yes # # ### Colors color normal default default color error red default # global # # Index settings.. Start with white on whatever, # then override the rest :P color index white default ".*" color indicator brightwhite green # index color status white blue # index status bar white: default white color tree green default # Make NEW messages stand out color index brightwhite default "~N" # Highlight messages tagget important (!) color index brightred default "~F" # # Set up colors for headers and pager display,, color header green default ".*" color header yellow default "^(From|Date|To).*" color header brightyellow default "^(Subject).*" color signature magenta default color attachment green default # .. color tilde blue default # pager body # Four levels of quotes.. #color quoted green default # pager body color quoted0 yellow default color quoted1 cyan default color quoted3 green default color quoted4 blue default # colorise smileys color body yellow default "[;:]-[)/(|]" color body yellow default "[;:][)/(|]" # URLs (General Internet addresses): color body brightblue default "(finger|ftp|http|news|telnet)://[^ >]*" color body brightblue default "<URL:[^ ]*>" # web address without "http": color body brightblue default "www\\.[-.a-z0-9]+\\.[a-z][a-z][a-z]?([-_./~a-z0-9]+)?" # HTTPS addresses: color body brightblue default "https://[^ >]*" # FTP addresses: color body brightblue default "ftp://[^ ]*" # Mailto links with a optional subject line: # Example: mailto:testonline@michael-prokop.at?subject=mutt color body brightblue default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]" color body brightblue default "mailto: *[^ ]+\(\\?subject=[^ ]+\)?" # *Emphasized*, /emphasized/, and _emphasized_ words: color body brightwhite default " [*][-[:alnum:]]+[*] " color body brightwhite default " /[-[:alnum:]]+/ " color body brightwhite default " _[-[:alnum:]]+_ "