# Juego de caracteres de los mensajes que enviamos: set send_charset = "utf-8" set assumed_charset = "iso-8859-1" # Editor. Si no se declara se usa $EDITOR. set editor = "vim -c 'set syntax=mail ft=mail enc=utf-8'" set menu_scroll = "yes" # Remitente de los mails: set from = "XXXX@gmail.com" set realname = "XXXX" # Configuraciones servidor IMAP: set imap_user = "XXXX@gmail.com" set smtp_url = "smtp://XXXXX@gmail.com@smtp.gmail.com:587/" # Opcional (no lo recomiendo porque queda almacenada la contraseña en texto plano): set imap_pass = "XXXXXXXX" set smtp_pass = "XXXXXXXX" # En caso de no introducir los dos valores anteriores, se nos pedirá ingresar la contraseña al enviar o recibir mails. set folder = "imaps://XXXX@gmail.com@imap.gmail.com:993" # Coonfiguramos el Inbox set spoolfile = "+INBOX" # Configuramos la carpeta de borradores (Debe llamarse igual que en el webmail): set postponed = "+[Gmail]/Borradores" # Guardamos los mails en Enviados: set record ="+[Gmail]/Enviados" # Ajustes para la conexión IMAP: set mail_check=60 set imap_keepalive=300 # Buzones extra que queremos comprobar (si tenemos carpetas extra en Gmail): #mailboxes "+[Gmail]/Spam" #mailboxes "+[Gmail]/Papelera" #### Refrescar con la G bind index G imap-fetch-mail # Muy útil cuando estamos suscritos a una lista de correos, nos ordena los mensajes por threads: set sort=threads set strict_threads=yes set sort_aux=reverse-last-date-received set sort_re # Crear los directorios para no obtener errores, # 'mkdir -p ~/.mutt/cache/{bodies,headers}': set message_cachedir = "~/.mutt/cache/bodies" set header_cache = "~/.mutt/cache/headers" # El siguiente archivo debe existir y contiene la firma, que va al pie de cada mail que escribamos, naturalmente: set signature = ".mutt/.firma" set pager_format = " %C - %[%H:%M] %.20v, %s%* %?H? [%H] ?" set index_format="%3C %4Z %4[!%d.%m %H:%M] %-40.40F (%5c) %s" #set pager_format="%S %C/%T?%n: %-50.50n %s" # No mostrar todos los campos de la cabecera del mensaje, solo algunos: ignore * unignore From To Cc Bcc Date Subject # y en este orden: unhdr_order * hdr_order From: To: Cc: Bcc: Date: Subject: ##################################################### Color settings for mutt. # Default color definitions color normal white default color hdrdefault green default color quoted green default color quoted1 yellow default color quoted2 red default color signature cyan default color indicator brightyellow red color error brightred default color status brightwhite blue color tree brightmagenta default color tilde blue default color attachment brightyellow default color markers brightred default color message white default color search brightwhite magenta color bold brightyellow default # Color definitions when on a mono screen mono bold bold mono underline underline mono indicator reverse mono error bold # Colors for items in the reader color header brightyellow default "^(From|Subject):" color header brightcyan default ^To: color header brightcyan default ^Cc: mono header bold "^(From|Subject):" # Many of these formulas were stolen from Jeremy Blosser # These would be much simpler if colors were additive. # regular new messages color index black white "~N !~T !~F !~p !~P" # regular tagged messages color index black cyan "~T !~F !~p !~P" # regular flagged messages color index black red "~F !~p !~P" # messages to me color index yellow default "~p !~N !~T !~F !~P" color index brightyellow white "~p ~N !~T !~F !~P" color index yellow cyan "~p ~T !~F !~P" color index yellow red "~p ~F !~P" # messages from me color index green default "~P !~N !~T !~F" color index green white "~P ~N !~T !~F" color index green cyan "~P ~T !~F" color index green red "~P ~F" # big messages color index brightred default "!~N ~z 102400-" color index brightred cyan "~T !~F !~p !~P ~z 102400-" color index brightred white "~N ~z 102400-" # deleted messages color index red default "!~N ~D" color index red white "~N ~D" # Highlights inside the body of a message. # Attribution lines color body magenta default "\\* [^<]+ <[^>]+> \\[[^]]+\\]:" color body magenta default "(^|[^[:alnum:]])on [a-z0-9 ,]+( at [a-z0-9:,. +-]+)? wrote:" # URLs color body brightyellow default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" # email addresses color body brightmagenta default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])" # PGP messages color body brightyellow default "^gpg: Good signature .*" color body white default "^gpg: " color body brightwhite red "^gpg: BAD signature from.*" mono body bold "^gpg: Good signature" mono body bold "^gpg: BAD signature from.*" # Various smilies and the like color body brightwhite default "<[Gg]>" # color body brightwhite default "<[Bb][Gg]>" # color body brightwhite default " [;:]-*[})>{(<|]" # :-) etc... # *bold* color body brightblue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)" # _underline_ color body brightblue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)" # /italic/ (Sometimes gets directory names) #color body brightblue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" #mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)" # Border lines. color body blue default "( *[-+=#*~_]){6,}" ######### source ~/.muttrc_gpg ######### macro index \Cs " =[Gmail]/Enviados" "go to Sent Items" ######## Los ficheros no leídos nuevos no los marque como Old al salir de mutt. set mark_old=no ######## Alias set alias_file = "~/.mutt/aliases.txt" set sort_alias = alias set reverse_alias = yes source $alias_file set display_filter = '$HOME/.mutt/aliases.sh' ######## w3c set mailcap_path = ~/.mutt/mailcap auto_view text/html # Si hay versión en modo texto del correo (Depende del emisor) es mejor evitar que mutt lo renderice como HTML, para eso se debe usar la siguiente opción. alternative_order text/plain text/html