diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-05 15:58:12 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-03-05 15:58:12 +0100 |
commit | 2a04c7f786998410b0afba88094d70ba0ec8bd22 (patch) | |
tree | d5bf96dfac54f8e2c9a75d329b90030ff7767788 | |
parent | 4ef07d81ddee0887f4710a9308001133a5b029b0 (diff) |
mutt: configureted for 2+ mails
-rw-r--r-- | mutt/.mbsyncrc | 6 | ||||
-rw-r--r-- | mutt/.neomutt/first.email | 26 | ||||
-rw-r--r-- | mutt/.neomuttrc | 35 |
3 files changed, 40 insertions, 27 deletions
diff --git a/mutt/.mbsyncrc b/mutt/.mbsyncrc index 26aee4c..cb2ed55 100644 --- a/mutt/.mbsyncrc +++ b/mutt/.mbsyncrc @@ -1,4 +1,8 @@ -IMAPStore santo@dcariotti.me-remote +# ================== # +# <first_email> # +# ================== # + +IMAPStore <email>-remote # Address to connect to Host <host> Port <port> diff --git a/mutt/.neomutt/first.email b/mutt/.neomutt/first.email new file mode 100644 index 0000000..c394da9 --- /dev/null +++ b/mutt/.neomutt/first.email @@ -0,0 +1,26 @@ +set realname = "Santo Cariotti" +set from = "<email>" +set use_from = yes +set envelope_from = yes + +set smtp_url = "smtp://<email>@<host>:<port>/" +set smtp_pass = "<password>" + +set imap_user = "<email>" +set imap_pass = "<password>" + +set folder = "~/.mail/<email>" + +set ssl_force_tls = yes +set sendmail = "msmtp -a <email>" +set mbox_type = Maildir +set spoolfile = +INBOX +set record = +Sent +set postponed = +Drafts +set trash = +Trash +mailboxes =INBOX =Sent =Drafts =Trash + +# synchronization settings ['S' to sync] +macro index S "<shell-escape>mbsync -V <email><enter>" "sync email" + +color indicator black color214 diff --git a/mutt/.neomuttrc b/mutt/.neomuttrc index d28af36..7ca9cde 100644 --- a/mutt/.neomuttrc +++ b/mutt/.neomuttrc @@ -1,24 +1,11 @@ -set realname = "Santo Cariotti" -set from = "<email>" -set use_from = yes -set envelope_from = yes +# Folder hooks +folder-hook '<fisrt_email>' 'source ~/.neomutt/<fisrt_email>' -set smtp_url = "smtp://<email>@<host>:<port>/" -set smtp_pass = "<pass>" +# Default account +source ~/.neomutt/<fisrt_email> -set imap_user = "<email>" -set imap_pass = "<pass>" - -set folder = "~/.mail/<email>" - -set ssl_force_tls = yes -set sendmail = "msmtp -a <email>" -set mbox_type = Maildir -set spoolfile = +INBOX -set record = +Sent -set postponed = +Drafts -set trash = +Trash -mailboxes =INBOX =Sent =Drafts =Trash +# Macros for switching accounts +macro index <f2> '<sync-mailbox><enter-command>source ~/.neomutt/<fisrt_email><enter><change-folder>!<enter>' set editor = "vim" set charset = "utf-8" @@ -51,8 +38,9 @@ bind index,pager J sidebar-next bind index,pager L sidebar-open bind index,pager B sidebar-toggle-visible -# synchronization settings ['s' to sync] -macro index S "<shell-escape>mbsync -V <email><enter>" "sync email" +source ~/.neomutt/colors.muttrc +bind index j next-entry +bind index k previous-entry bind pager j next-line bind pager k previous-line @@ -79,8 +67,3 @@ set fcc_attach # save attachments with the body set forward_format = "Fwd: %s" # format of subject when forwarding set mailcap_path = ~/.neomutt/mailcap - -color indicator black yellow - -source ~/.neomutt/colors.muttrc - |