]> git.donarmstrong.com Git - mail.git/blobdiff - .muttrc
fix hooks for mail; use new pick a quote for signature
[mail.git] / .muttrc
diff --git a/.muttrc b/.muttrc
index d45ed5f313eaef7d8a772dbb19f018d526bfcb8c..571094a589ba66153065e11eb75252efa94d83f7 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -3,75 +3,41 @@ set realname='Don Armstrong'
 source ~/.mail_aliases
 set alias_file=~/.mail_aliases
 
+set abort_nosubject=no
+set autoedit
+unset beep
+set bounce=yes
+unset bounce_delivered
+set collapse_unread
+unset confirmappend
+unset confirmcreate
+set delete=yes
+set edit_headers
+set encode_from
+set folder = "~/Mail"
+set mime_forward
+set from = "Don Armstrong <don@donarmstrong.com>"
+unset help
+set header_cache = ~/.mutt/header_cache
+set hide_limited
+set history = 20
+set ignore_list_reply_to
+set implicit_autoview
+set index_format="%4C %Z %[!%k:%M %m.%d.%y] %-15.15F (%?M?C%3M&%4c?) %?H?[%H] ?%s"
+set mailcap_path ="/etc/mailcap"
+unset maildir_trash
+unset mark_old
+set narrow_tree
+set pager_context = 2
+set pager_stop = yes
+set postpone
+set quit = ask-yes
+set record="~/Mail/outbox"
+set reverse_alias = yes
+set save_history = 5
+unset sig_dashes
+unset mark_old
 
-unset allow_8bit       # use QP or Base64 if unset.
-set allow_ansi         # allow ANSI color codes in messages.
-unset arrow_cursor     # "->" as cursor (faster on slow networks).
-unset ascii_chars       # Use ASCII chars for threading arrows.
-unset askbcc           # ask to fill out Bcc on mesg-send?
-unset askcc            # ask to fill out CC on mesg-send?
-set attach_split       # handle every single attachment instead of concat
-set autoedit           # start editor without asking for to, subject,...
-unset auto_tag         # if something is tagged, run commands on tagged msgs.
-unset beep             # beep on certain user errors and other errors
-unset beep_new         # beep on new mail
-set bounce_delivered   # unset => remove Delivered-To: when bouncing.
-set check_new          # search for new messages in maildir/MH folders.
-unset collapse_unread  # don't collapse threads with unread mails
-unset confirmappend    # prompt for confirm when appending message to ex. mbox
-set confirmcreate      # prompt for confirm when saving to non existing mbox
-set delete_untag       # untag messages when marking them for deletion
-set digest_collapse    # show digest parts in 'v' submenu
-set duplicate_threads  # thread messages with same message-id together
-set edit_headers       # put headers in editor when composing messages
-set encode_from                # use Quoted-Printable, if ^From in a mail.
-unset envelope_from    # don't set envelope from via -f option of sendmail
-set fast_reply         # do not ask for to, subject,... when replying.
-set fcc_attach         # store attachments too when doing a Fcc
-unset fcc_clear                # encrypt Fcc of PGP encrypted messages?
-unset text_flowed      # generate "text/plain; format=flowed"
-set followup_to                # Add Mail-Followup-To header.
-unset force_name       # outgoing mail to be saved in folder of "login name"
-set forward_decode     # decode messages when forwarding without MIME
-set forward_decrypt    # decrypt PGP message, when mime_forward and !mime_fw_d
-unset forward_quote    # quote forwarded message, if not $mime_forward
-set hdrs               # nohdrs implies not to write my_hdr into mail.
-unset header           # quote full header on reply
-unset help             # show help in first line of the display
-set hidden_host                # when set, skip the host name part of hostname
-unset hide_missing      # When set, mutt will not show the presence of missing messages in the thread tree.
-set ignore_list_reply_to       # ignore Reply-To pointing back to mailinglist
-unset implicit_autoview        # use autoview, if a "copiousoutput" is in mailcap.
-unset keep_flagged     # don't move flagged mail to $mbox via mbox-hook
-set mailcap_sanitize   # remove ugly chars from mailcap % expands.
-unset maildir_trash    # if set: use maildir trash flag instead of removing
-unset mark_old         # mark new articles as old, when leaving mbox
-set markers            # put a '+' at the beginning of wrapped lines.  
-unset menu_scroll      # scroll on last line of menu (set) or do a nextpage?
-unset meta_key         # Don't interpret Alt-x as ESC x
-unset metoo            # should we keep ourselves in group replies?
-set mh_purge           # remove messages marked as deleted from MH folders.
-unset mime_forward_decode      # decode messages when forwarding with MIME
-set pager_stop         # Don't jump to next message at end of message.
-unset pipe_decode      # Weed headers and PGP-decode message before piping
-unset pipe_split       # split tagged messages (or don't) when using "|"
-#set pretty_spoolfile  # print $spoolfile as "!" instead of full pathname
-set print_decode       # decode before sending to $print_command
-unset print_split      # if set, run the print command for every single mail
-set prompt_after       # display prompt after exit from pager
-unset read_only                # folders not read only
-unset reply_self       # if unset, a reply to yourself implies reply to other
-set resolve            # go to next undeleted message after modifying actual
-set reverse_alias      # use realname from reverse alias lookup
-unset reverse_name     # Set "From" to address, where replied mail was sent to
-unset reverse_realname # Do not reuse realname from original message.
-unset rfc2047_parameters       # don't encode RFC2047 parameters
-unset save_address     # Use full mail adress (with domain) as default folder.
-unset save_empty       # remove mailbox when last message is removed.
-unset save_name                # Fcc, if ~/Mail/<to> exists.
-unset sig_dashes       # Don't prepend "-- \n" to the signature
-unset sig_on_top       # place signature above text (if set).
-set smart_wrap         # wrap long lines at word boundary.
 set sort_re            # set: only put a child in a thread, if starts with Re:
 unset status_on_top    # status line at the top or button?
 unset strict_threads   # thread only by In-Reply-To/References or by Subject.
@@ -91,16 +57,6 @@ unset write_bcc              # send Bcc: line to $sendmail
 
 set header_cache = ~/.mutt/header_cache
 
-
-
-#
-# Quadoptions 
-#      set foo=yes
-#  or  set foo=ask-yes
-#  or  set foo=no
-#  or  set foo=ask-no
-#  or  reset foo (reset to compile time default)       
-
 set abort_nosubject=no # Abort, if message has no subject.
 set abort_unmodified=no        # Abort, if message wasn't edited.
 set copy=yes           # ask to save a copy of outgoing message?
@@ -175,7 +131,7 @@ set sort_alias=alias
 
 #reset dotlock_program # where to find mutt_dotlock (reset uses default)
 set display_filter=""  # pipe message through this filter before displaying
-set editor="~/bin/sane_editor +\`awk '/^$/ {print NR+1; exit}' %s\` %s"
+set editor="~/bin/sane_editor"
 set folder=~/Mail      # where are the mailboxes (+ and = are shortcuts)
 #set folder="{luv}Mail"        # where are the mailboxes (+ and = are shortcuts)
 set from=""            # From: address (see send-hook my_hdr From)
@@ -230,7 +186,6 @@ set to_chars=" +TCF "       # no to me, only to me, not only to me, Cc: to me,
 set mbox_type=Maildir
 
 
-
 #
 # RegExps:
 #
@@ -254,7 +209,7 @@ set reply_regexp="^((re(\\^[0-9])? ?:|a(nt)?w(ort)?:|wg:|\\(fwd\\))[ \t]*)*"
                        # Subject prefixes (removed on answering and threading)
 #set reply_regexp="^(re|aw):[ \t]+"    # Default
 
-set smileys="(>From )|(:[-^]?[][)(><}{|/DP])"
+set smileys="(>From )|(:[-^]?[][)(><}{|/DP])"
                        # Special chars, which are not quote regexps, but :-)
 
 
@@ -329,7 +284,7 @@ set attribution='On %{%a, %d %b %Y}, %n wrote:\n'
 # %N "N" if new mail   %s size in bytes        %t "*" if tagged
 # %u owner name                %>X right justify the rest and pad with "X"
 # %|X pad to the end of the line with character "X"
-set folder_format="%3C %t%N %F %-8.8u %-8.8g %8s %d %f"
+set folder_format="%3C %t%N %f"
                        # file browser menu
 
 
@@ -353,30 +308,6 @@ set folder_format="%3C %t%N %F %-8.8u %-8.8g %8s %d %f"
 set status_format="-%r-%v--[%?M?%M/?%m msgs%?n?, %n new?%?d?, %d del?%?F?, %F flag?%?t?, %t tag?%?p?, %p postp?%?b?, %b inc?%?l?, %l?]--(%f)--%s-%>-%P-"
 
 
-#
-# alias_format
-# (format of data displayed for the alias menu)
-# %a alias name    %n index number    %r address    %t tag-character 
-#
-set alias_format="%4n %2d %t %-12a  %r"
-
-
-#
-# attach_format
-# (controls the look of the compose and attach menu)
-# %c = Content-Type    %C = Charset
-# %d = description     %D = deleted flag
-# %e = MIME content-transfer-encoding          %f = filename   
-# %I = disposition (I=inline, A=attachment)
-# %m = major MIME type %M = MIME subtype       %n = attachment number
-# %s = size            %t = tagged flag        %T = tree
-# %u = unlink
-# %>X = right justify and pad with "X"  %|X = pad with "X" to end of line
-#
-#set attach_format="%u%D%t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
-set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
-
-
 #
 # compose_format
 # (Controls the status line of the compose menu)
@@ -772,33 +703,26 @@ hdr_order Date: From: To: Cc: X-Newsreader: X-Mailer: Organization: Organisation
 ## addresses to you in the folder index as "personal" using the flag '+'.
 #set alternates=((tom|gilbertt)@snowman.net|.*@linuxbrit.*|.*@offended.*|giblet@lunixbrat.com)
 
-# Set the defaults for folders:
-folder-hook .    set timeout=30
-folder-hook .    set sort=threads
-folder-hook .    set sort_aux=date-received
-# When I'm in the main index, check more often :)
-#folder-hook "!"  set timeout=5
-# Mail in my inbox is more date than thread sensitive...
-folder-hook "!"  set sort=date-received
-folder-hook "sent"  set sort=date-received
-
-#folder-hook .    set signature=~/.signature
-
-#folder-hook .    unmy_hdr *
 folder-hook .    my_hdr "From: Don Armstrong <don@donarmstrong.com>"
 folder-hook .    set signature="~/.signature" 
 folder-hook .    unmy_hdr "Reply-To:"
 folder-hook .    unmy_hdr "Cc:"
 
 # bug hooks
-reply-hook ~A unmy_hdr "X-Debbugs-No-Ack";
 #reply-hook "~h X-Debian-PR" my_hdr "X-Debbugs-No-Ack: yes no ack";
 send-hook ~A unmy_hdr "X-Debbugs-No-Ack";
 send-hook "(~C submit@bugs.debian.org |~C control@bugs.debian.org |~C \d+@bugs.debian.org)" my_hdr "X-Debbugs-No-Ack: yes no ack"
 
+
+set signature='~/lib/signature_stuff/pick_a_quote.pl|'
+
+send-hook '~t build ~s success' "set signature='' pgp_autosign=yes indent_string='' edit_headers=yes editor='~/bin/buildd_script' fast_reply=yes pgp_create_traditional=yes include=yes pgp_sign_as=0x9D05D0BE"
+send-hook '!(~t build ~s success)' "set pgp_autosign=yes indent_string='> ' editor='~/bin/sane_editor' fast_reply=no pgp_create_traditional=no include=yes signature='~/lib/signature_stuff/pick_a_quote.pl|' pgp_sign_as=0xD98C0FBA"
+
+
 # Fix the Mail-Followup-To for sdondley
-reply-hook . unmy_hdr "Mail-Followup-To";
-reply-hook "(~f sdondley@gmail.com|~f s@gmail.com|~f s@dondley.com)" my_hdr "Mail-Followup-To: Don Armstrong <don@donarmstrong.com>";
+send-hook . unmy_hdr "Mail-Followup-To";
+send-hook "(~f sdondley@gmail.com|~f s@gmail.com|~f s@dondley.com)" my_hdr "Mail-Followup-To: Don Armstrong <don@donarmstrong.com>";
 
 # Debian folder hooks
 folder-hook debian my_hdr "From: Don Armstrong <don@debian.org>"
@@ -815,9 +739,6 @@ folder-hook 0_ldo_role my_hdr "Cc: listmaster@lists.debian.org"
 macro generic   ,ad   my_hdr "From: Don Armstrong <don@debian.org>"
 macro generic   ,an   my_hdr "From: Don Armstrong <don@donarmstrong.com>"
 
-send-hook ~A '`/home/don/lib/signature_stuff/pick_a_quote.pl` set-signature "~/.signature"'
-
-
 open-hook   \\.gz$ "gzip -cd %f > %t" 
 close-hook  \\.gz$ "gzip -c %t > %f" 
 append-hook \\.gz$ "gzip -c %t >> %f"