summaryrefslogtreecommitdiffstats
path: root/muttrc_imap
diff options
context:
space:
mode:
Diffstat (limited to 'muttrc_imap')
-rw-r--r--muttrc_imap93
1 files changed, 91 insertions, 2 deletions
diff --git a/muttrc_imap b/muttrc_imap
index ac9fab0..f2070e5 100644
--- a/muttrc_imap
+++ b/muttrc_imap
@@ -9,10 +9,11 @@ set imap_pass = `pass show AppPasswords/hydroxide`
set folder ="imap://localhost:1143/"
set spoolfile = "imap://localhost:1143/INBOX"
set postponed = "imap://localhost:1143/Drafts"
-#set mbox = "imap://localhost:1143/[Protonmail]/All Mail"
+set crypt_use_gpgme = yes # from https://openports.se/mail/mutt
+set mbox = "imap://localhost:1143/[Protonmail]/All Mail"
mailboxes +INBOX +Archive +Starred +Sent +Drafts +Trash +Scans +Mailing\ Lists
-set smtp_pass = ${imap_pass}"
+set smtp_pass = `pass show AppPasswords/hydroxide`
set smtp_url = "smtp://matthewlemon@protonmail.com@localhost:1025/"
## END OF IMAP STUFF
@@ -28,6 +29,13 @@ set certificate_file = ~/.mutt/certificates # where to store certs
set mailcap_path = ~/.mutt/mailcap # entries for filetypes
set tmpdir = ~/.mutt/temp # where to keep temp files
set signature = ~/.mutt/signature # my signature file
+
+# Abook ----------------------------------------------
+set query_command= "abook --mutt-query '%s'"
+macro generic,index,pager \ca "<shell-escape>abook<return>" "launch abook"
+macro index,pager A "<pipe-message>abook --add-email<return>" "Add this sender to Abook"
+bind editor <Tab> complete-query
+bind editor ^T complete
# Basic Options --------------------------------------
set wait_key = no # shut up, mutt
@@ -187,3 +195,84 @@ set ssl_starttls
#set spoolfile = "+INBOX"
set from = "matt@matthewlemon.com"
#set record = +Sent
+
+# example notmuch config:
+
+virtual-mailboxes "Joanna" "notmuch://?query=from:joanna"
+
+# --------------------------------------------------------------------------
+# VARIABLES – shown with their default values
+# --------------------------------------------------------------------------
+# This variable specifies notmuch query limit.
+set nm_db_limit = 0
+# This variable specifies the default Notmuch database in format:
+# notmuch://<absolute path>
+set nm_default_url = "notmuch:///home/lemon/Mail"
+#set nm_default_url = ""
+# The messages tagged with these tags are excluded and not loaded
+# from notmuch DB to NeoMutt unless specified explicitly.
+set nm_exclude_tags = ""
+# This option specifies timeout for Notmuch database. Default is 5 seconds.
+set nm_open_timeout = 5
+# This variable specifies notmuch query type, supported types: 'threads' and
+# 'messages'.
+set nm_query_type = messages
+# When writing a message in the NeoMutt record (see $record in the NeoMutt docs),
+# also add it to the notmuch DB. Replies inherit the tags from the original email.
+set nm_record = no
+# Tags modifications to the messages stored in the NeoMutt record.
+# example:
+# set record = "~/sent-mails"
+# set nm_record = yes
+# set nm_record_tags = "-inbox,archive,me"
+set nm_record_tags = ""
+# This variable specifies the notmuch tag used for unread messages.
+set nm_unread_tag = unread
+# This variable allows you to customize the file browser display for virtual
+# folders to your personal taste.
+# %C current folder number
+# %f folder name (description)
+# %m number of messages in the mailbox *
+# %n number of unread messages in the mailbox *
+# %N N if mailbox has new mail, blank otherwise
+# %>X right justify the rest of the string and pad with character ``X''
+# %|X pad to the end of the line with character ``X''
+# %*X soft-fill with character ``X'' as pad
+set vfolder_format = "%6n(%6N) %f"
+# When set, NeoMutt will use the first virtual mailbox (see virtual-mailboxes)
+# as a spool_file.
+set virtual_spool_file = no
+# setup time window preferences
+# first setup the duration, and then the time unit of that duration
+# when set to 0 (the default) the search window feature is disabled
+# unless explicitly enabled with nm_query_window_enable.
+set nm_query_window_enable=no
+set nm_query_window_duration=0
+set nm_query_window_timebase="year" # or "hour", "day", "week", "month", "year"
+# Extend query window to always show mail matching these terms.
+#set nm_query_window_or_terms="tag:unread and tag:flagged"
+# --------------------------------------------------------------------------
+# FUNCTIONS – shown with an example mapping
+# --------------------------------------------------------------------------
+# open a different virtual folder
+bind index,pager X change-vfolder
+# read entire thread of the current message
+bind index,pager + entire-thread
+# generate virtual folder from query
+bind index,pager \eX vfolder-from-query
+# generate virtual folder from query with time window
+bind index < vfolder-window-backward
+bind index > vfolder-window-forward
+# toggle between mailboxes and virtual mailboxes
+# bind index,pager ??? sidebar-toggle-virtual
+# --------------------------------------------------------------------------
+# COMMANDS – shown with an example
+# --------------------------------------------------------------------------
+# virtual-mailboxes description notmuch-URL { description notmuch-URL ...}
+# virtual-mailboxes "Climbing" "notmuch://?query=climbing"
+# unvirtual-mailboxes { * | mailbox ...}
+#
+# --------------------------------------------------------------------------
+
+
+