summaryrefslogtreecommitdiffstats
path: root/.config/neomutt/neomuttrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/neomutt/neomuttrc')
-rwxr-xr-x.config/neomutt/neomuttrc61
1 files changed, 26 insertions, 35 deletions
diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc
index d1a8634..386b7fd 100755
--- a/.config/neomutt/neomuttrc
+++ b/.config/neomutt/neomuttrc
@@ -1,38 +1,13 @@
-#set folder = "~/.mail"
-set my_password = ""
-set my_server = ""
-set my_user = ""
-source "~/.config/neomutt/personal"
+source "~/.config/neomutt/mail-personal"
-# IMAP
-set imap_user = "$my_user@$my_server"
-set imap_pass = "$my_password"
-set hostname = "imap.$my_server"
-set folder = "imaps://imap.$my_server:993"
-#set folder = "~/.mail/personal"
-
-# SMTP
-set smtp_pass = "$my_password"
-set smtp_url = "smtps://$my_user@$my_server:$my_password@smtp.$my_server"
-
-# force tls
+#force tls
set ssl_verify_host = yes
set ssl_force_tls = yes
# notmuch
-#set virtual_spoolfile = yes
-#set nm_query_type = threads
-#set nm_default_url = "notmuch:///home/qwd/.mail"
-
-# mailboxes
-mailboxes `python3 ~/.bin/get-mailbox-imap \
-imap.$MAIL_SERVER \
-$MAIL_USERNAME@$MAIL_SERVER \
-$MAIL_PASSWORD`
-
-#mailboxes `get-mailbox-local ~/.mail INBOX`
-#mailboxes `get-mailbox-local ~/.mail`
-#virtual-mailboxes "Threads" "notmuch://?query=tag:f-sent"
+set virtual_spoolfile = yes
+set nm_query_type = threads
+set nm_default_url = "notmuch:///home/qwd/.mail"
set spoolfile = "+INBOX"
set mbox = "+INBOX"
@@ -45,7 +20,7 @@ set imap_delim_chars = "aa"
# dl
set mail_check = 90
set sleep_time = 0
-set timeout = 15
+set timeout = 300
set beep = no
set edit_headers = yes
set fast_reply = yes
@@ -62,8 +37,8 @@ set sig_dashes = no
set sort_re = yes
set charset = "utf-8"
-set date_format = "%d.%m.%Y-%H:%M"
-set index_format = "%4C %Z %{$date_format} %-15.15L (%?l?%4l&%4c?) %s"
+set date_format = "%d %b %Y, %H:%M"
+set index_format = "%4C %Z %{$date_format} %-25.25L (%?l?%4l&%4c?) %s"
set quote_regex = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
set reply_regex = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
set send_charset = "utf-8:iso-8859-1:us-ascii"
@@ -72,10 +47,15 @@ set header_cache = "~/.cache/neomutt"
set message_cachedir = "$header_cache"
set mail_check_stats
+# forgotten attachment
+set abort_noattach_regex = "\\<(attach|attached|attachments?|attaché|attachés|attache|attachons|joint|jointe|joints|jointes|joins|joignons)\\>"
+set abort_noattach = ask-yes
+
# headers
ignore *
unignore from date subject to cc
-unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
+unignore organization organisation
+unignore x-mailer: x-newsreader: x-mailing-list:
unignore posted-to: list-id:
# threads
@@ -97,13 +77,15 @@ set sidebar_indent_string = "> "
# keybinds
bind editor <space> noop
bind editor "> " quote-char
-bind pager c imap-fetch-mail
+bind editor ^T complete-query
+bind editor <Tab> complete
bind index G last-entry
bind index \CR imap-fetch-mail
bind index g noop
bind index gg first-entry
bind index - collapse-thread
bind index _ collapse-all
+bind pager c imap-fetch-mail
bind pager,attach h exit
bind attach <return> view-mailcap
bind attach l view-mailcap
@@ -120,11 +102,20 @@ bind index \CL limit
bind pager,browser gg top-page
bind pager,browser G bottom-page
bind index,pager R group-reply
+bind index,pager g group-chat-reply
bind index,pager K sidebar-prev
bind index,pager J sidebar-next
bind index,pager O sidebar-open
bind index,pager,browser d half-down
bind index,pager,browser u half-up
+bind index,pager @ compose-to-sender
+
+# macro
+macro index S "<shell-escape>notmuch new<enter>" "sync email"
# colors
color hdrdefault color07 default
+
+# hooks
+account-hook . 'echo `notmuch new >/dev/null 2>&1`'
+timeout-hook 'echo "`notmuch new >/dev/null 2>&1`"'
remember that computers suck.