summaryrefslogtreecommitdiff
path: root/mutt/.neomuttrc
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-05 15:58:12 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-05 15:58:12 +0100
commit2a04c7f786998410b0afba88094d70ba0ec8bd22 (patch)
treed5bf96dfac54f8e2c9a75d329b90030ff7767788 /mutt/.neomuttrc
parent4ef07d81ddee0887f4710a9308001133a5b029b0 (diff)
mutt: configureted for 2+ mails
Diffstat (limited to 'mutt/.neomuttrc')
-rw-r--r--mutt/.neomuttrc35
1 files changed, 9 insertions, 26 deletions
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
-