# Agorda dosiero de la retposxtilo mutt <www.mutt.org>
# La retposxtilo, kiu malpli malrokas.
#
# Dominique Pelle <dominique.pelle@gmail.com>
#
set realname = "Dominique Pelle"
set from = "dominique.pelle@gmail.com"
alternates "dominique.pelle@free.fr"

set use_from = yes
set envelope_from = "yes"

# Agordoj por uzi gmail per IMAP
set imap_user = 'dominique.pelle@gmail.com'
set spoolfile = imaps://imap.gmail.com:993/INBOX
set smtp_url ="smtp://dominique.pelle@smtp.gmail.com:587/"
set folder = "imaps://imap.gmail.com:993"
set record = "+[Gmail]/Sent Mail"
set postponed = "+[Gmail]/Drafts"
mailboxes ! = [Gmail]/Drafts "=[Gmail]/All Mail"

# Aliaj agordoj
set move = no
set nobeep
set mark_old = no

set sort = date
folder-hook .     set sort=threads
folder-hook inbox set sort=date

# Ordo de la mesagxkapoj
hdr_order Date: From: User-Agent: X-Mailer \
          To: Cc: Reply-To: Subject:

# Kontroli retposxtojn cxiuj x sekundoj
set mail_check = 20

my_hdr From: Dominique Pelle <dominique.pelle@gmail.com>

# Se vi uzas gpg, tiam vi scias kio estas tio
my_hdr X-GPG-Key: http://dominique.pelle.free.fr/gpg_key.txt
my_hdr X-GPG-Fingerprint: EFE2 A144 49AF 370D 4FD9  3CF6 EAE0 1D5D F971 93DE

# Parolataj lingvoj, reklamu la internacian lingvon
my_hdr X-Accept-Language: en,eo,fr,it

# Reklamu mian plej sxatatan mastrumsistemon
my_hdr X-Operating-System: Ubuntu-7.10 GNU/Linux

# Ne vidigi tiujn mesagxkapojn
# Premu 'h' por baskuli cxu vi volas vidi ilin aux ne
ignore Received Message-Id X-Sender X-Priority Status Lines Content-Lenght
ignore Precedence In-Reply-To Mail-Followup-To Delivered-To X-Ack Errors-To
ignore List-Help List-Post List-Subscribe List-Id List-Unsubscribe
ignore List-Archive X-BeenThere X-Mailman-Version X-Original-Date
ignore X-No-Archive Cache-Post-Path X-Cache X-Complaints-To X-Trace
ignore X-Operating-System X-Face KRecCount X-Exploding-Dog X-Uptime
ignore X-Pointless-Random-Number X-Silly-Header X-Phase-Of-Moon X-Cookie
ignore X-EM-Registration X-EM-Version X-MSMail-Priority X-MimeOLE
ignore X-OriginalArrivalTime X-MIME-Autoconverted X-MTQS X-Hops
ignore Authentication-Results

set quit = ask-yes

# Ve, iuj gehomoj ne komprenas, ke teksto bonas,
# kaj sendas HTML-retposxtojn
auto_view text/html
alternative_order text/enriched text/plain text/html

unset markers

# Ne movu al la sekvanta mesagxo, kiam atingas la lastan mesagxon
set pager_stop

set pager_index_lines = 9

# Kiel indekso aspektas
set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s"

set attribution="%n skirbis:"

# Por uzi la tekstoredaktilo vim per mutt.  Eku vim
# post la unua malplena linio (tio estas malantaux ...)
set editor="vim +'/^$/+1' -c 'set nohlsearch'"
set edit_headers

set forward_format="Fwd: %s"

# Koloroj
color header     yellow black ^
color quoted     green  black
color attachment red    black
color signature  red    black
color search     brightwhite blue
color indicator  brightwhite blue

# Koloroj de indeksanoj
color index green  black ~N   # novaj nelegitaj retposxtoj
color index red    black ~D   # forvisxitaj retposxtoj
color index yellow black ~F   # gravaj mesagxoj

# Koloroj en mesagxoj
color body  blue   black "(ftp|http|file)://[^ ]+"
color body  blue   black [-a-z_0-9.]+@[-a-z_0-9.]+
color body  brightwhite black " [;:]-*[)>(<|]" # :-) ktp.
 
bind pager <down> next-line
bind pager <up> previous-line
bind pager <left> previous-entry
bind pager <right> next-entry
bind generic <pageup> previous-page
bind generic <pagedown> next-page

# Agordoj de gpg
set pgp_create_traditional=yes
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 -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 -v --batch --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_getkeys_command=""

# Dissendlistoj
subscribe vim_use@googlegroups.com vim_dev@googlegroups.com