What is in your .muttrc?

I just started using Mutt (which started as a slow removal of GUI applications, I ended up just hiding in a terminal window), and although I managed to get my mail from my IMAP server, there are some settings that I would like to do, mainly :

  1. Bring mail today.

  2. Leave everything on the server

  3. Do not save anything to the local drive

  4. Do not ask if I want to create folder $USER/Mail. Since I also have my regular mail client, Mutt is an easy way to check mail from the terminal.

Instead of just asking a question here, I thought I'd try to find out more about some cool tricks, color schemes, and configuration settings that you guys might have that I can use in my own.

+3
source share
2 answers

Here I can think about your settings:

  • Not sure how you could achieve this, if you switch to a folder in IMAP mutt, you will get all the headers for this folder. It will receive mail only after you open it hard.
  • Since you are using IMAP, mutt should leave everything on the server by default anyway. This will only delete something if you specifically request removal. Or maybe I don’t understand what you are trying to achieve?
  • , . . . header-cache message-cachedir . . , , , , mutt .
  • muttrc , folder. $USER/Mail, . , mutt , .

mutt:

set postpone=ask-no 
set beep_new=yes
set confirmappend=no
set sort=threads
set mail_check=60
set timeout=10
set net_inc=5
set move=no
set sort_alias=alias
set reverse_alias=yes
set alias_file=~/.mail_aliases
set editor='vim + -c "set textwidth=72" -c "set wrap"'
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
auto_view text/html application/pdf application/msword
alternative_order text/plain text text/enriched text/html
mime_lookup application/octet-stream
source $alias_file
set mbox_type=maildir
set ssl_starttls=yes
set folder=imaps://host:port
set spoolfile="+inbox"
set record="+sent/`date +%Y-%m`"
set postponed="+drafts"
ignore *
unignore  Date To Cc Bcc From Subject X-Mailer Organization User-Agent X-PGP-Key List-Id
hdr_order Date From To Cc Bcc Subject X-Mailer User-Agent Organization List-Id X-PGP-Key

:

# 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      brightblue    default
color attachment brightyellow  magenta
color markers    brightred     default
color message    white         default
color search     brightwhite   magenta
color bold       brightyellow  green

# 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):"

, !

+5

I understand this is super old now, but check the offline map to sync the background of the local Maildir settings with the IMAP account.

http://offlineimap.org/

In addition, solarized color schemes are pretty nice:

http://ethanschoonover.com/solarized

+1
source

Source: https://habr.com/ru/post/1793346/


All Articles