1
0
mirror of https://github.com/alrayyes/server-dotfiles synced 2023-11-14 15:56:25 +00:00

mutt now worth with offlineimap & notmuch

This commit is contained in:
Ryan 2017-07-06 21:20:34 +02:00
parent e4f3d5d4a8
commit a1c7ab8512
4 changed files with 152 additions and 19 deletions

View File

@ -0,0 +1,49 @@
# This file is overwritten during software install.
# Persistent customizations should go in a .local file.
include /etc/firejail/mutt.local
# mutt email client profile
noblacklist ~/.muttrc
noblacklist ~/.mutt
noblacklist ~/.mutt/muttrc
noblacklist ~/.mailcap
noblacklist ~/.gnupg
noblacklist ~/.mail
noblacklist ~/.Mail
noblacklist ~/mail
noblacklist ~/Mail
noblacklist ~/sent
noblacklist ~/postponed
noblacklist ~/.cache/mutt
noblacklist ~/.w3m
noblacklist ~/.elinks
noblacklist ~/.vim
noblacklist ~/.vimrc
noblacklist ~/.viminfo
noblacklist ~/.emacs
noblacklist ~/.emacs.d
noblacklist ~/.signature
noblacklist ~/.bogofilter
noblacklist ~/.msmtprc
noblacklist ~/.cache/qutebrowser
noblacklist ~/.config/qutebrowser
include /etc/firejail/disable-common.inc
include /etc/firejail/disable-programs.inc
include /etc/firejail/disable-passwdmgr.inc
include /etc/firejail/disable-devel.inc
caps.drop all
netfilter
nogroups
nonewprivs
noroot
nosound
no3d
protocol unix,inet,inet6
seccomp
shell none
blacklist /tmp/.X11-unix
private-dev

View File

@ -1,6 +1,4 @@
folder-hook 'account.com.gmail.alrayyes' 'source ~/.mutt/account.com.gmail.alrayyes' source ~/.mutt/mailboxes
folder-hook 'account.nl.andthensome.ryan' 'source ~/.mutt/account.nl.andthensome.ryan'
source ~/.mutt/account.com.gmail.alrayyes source ~/.mutt/account.com.gmail.alrayyes
source ~/.mutt/muttcol source ~/.mutt/muttcol
@ -10,15 +8,14 @@ set imap_keepalive = 900
set date_format="%m/%d %I:%M" set date_format="%m/%d %I:%M"
set index_format="%2C %Z %d %-15.15F %s (%-4.4c)" set index_format="%2C %Z %d %-15.15F %s (%-4.4c)"
# pgp stuff # pgp stuff
set pgp_replyencrypt # now crypt_replyencrypt set pgp_replyencrypt # now crypt_replyencrypt
set pgp_replysign # now crypt_replysign set pgp_replysign # now crypt_replysign
set pgp_replysignencrypted # now crypt_replysignencrypted set pgp_replysignencrypted # now crypt_replysignencrypted
set pgp_show_unusable=no set pgp_show_unusable=no
macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.alrayyes<enter><change-folder>!<enter>' macro index <f1> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.alrayyes<enter><change-folder>!<enter>'
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/account.nl.andthensome.ryan<enter><change-folder>!<enter>' macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/account.nl.andthensome.ryan<enter><change-folder>!<enter>'
mono bold bold mono bold bold
mono underline underline mono underline underline
@ -33,17 +30,6 @@ color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
color body brightblue default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+ color body brightblue default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+
bind editor <space> noop bind editor <space> noop
macro index,pager y "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive"
macro index,pager d "<save-message>=[Gmail]/Trash<enter><enter>" "Trash"
# Gmail-style keyboard shortcuts
macro index,pager ga "<change-folder>=[Gmail]/All<tab><enter>" "Go to all mail"
macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
macro index,pager e "<enter-command>unset trash\n <delete-message>" "Gmail archive message" # different from Gmail, but wanted to keep "y" to show folders.
bind index G imap-fetch-mail
# Goobook # Goobook
set query_command="goobook query %s" set query_command="goobook query %s"

98
notmuch/.notmuch-config Normal file
View File

@ -0,0 +1,98 @@
# .notmuch-config - Configuration file for the notmuch mail system
#
# For more information about notmuch, see https://notmuchmail.org
# Database configuration
#
# The only value supported here is 'path' which should be the top-level
# directory where your mail currently exists and to where mail will be
# delivered in the future. Files should be individual email messages.
# Notmuch will store its database within a sub-directory of the path
# configured here named ".notmuch".
#
[database]
path=/home/alrayyes/mail
# User configuration
#
# Here is where you can let notmuch know how you would like to be
# addressed. Valid settings are
#
# name Your full name.
# primary_email Your primary email address.
# other_email A list (separated by ';') of other email addresses
# at which you receive email.
#
# Notmuch will use the various email addresses configured here when
# formatting replies. It will avoid including your own addresses in the
# recipient list of replies, and will set the From address based on the
# address to which the original email was addressed.
#
[user]
name=Ryan Kes
primary_email=alrayyes@gmail.com
other_email=ryan@andthensome.nl;
# Configuration for "notmuch new"
#
# The following options are supported here:
#
# tags A list (separated by ';') of the tags that will be
# added to all messages incorporated by "notmuch new".
#
# ignore A list (separated by ';') of file and directory names
# that will not be searched for messages by "notmuch new".
#
# NOTE: *Every* file/directory that goes by one of those
# names will be ignored, independent of its depth/location
# in the mail store.
#
[new]
tags=unread;inbox;
ignore=
# Search configuration
#
# The following option is supported here:
#
# exclude_tags
# A ;-separated list of tags that will be excluded from
# search results by default. Using an excluded tag in a
# query will override that exclusion.
#
[search]
exclude_tags=deleted;spam;
# Maildir compatibility configuration
#
# The following option is supported here:
#
# synchronize_flags Valid values are true and false.
#
# If true, then the following maildir flags (in message filenames)
# will be synchronized with the corresponding notmuch tags:
#
# Flag Tag
# ---- -------
# D draft
# F flagged
# P passed
# R replied
# S unread (added when 'S' flag is not present)
#
# The "notmuch new" command will notice flag changes in filenames
# and update tags, while the "notmuch tag" and "notmuch restore"
# commands will notice tag changes and update flags in filenames
#
[maildir]
synchronize_flags=true
# Cryptography related configuration
#
# The following option is supported here:
#
# gpg_path
# binary name or full path to invoke gpg.
#
[crypto]
gpg_path=gpg

View File

@ -12,7 +12,7 @@ autorefresh = 0.5
quick = 10 quick = 10
[Repository gmail-local] [Repository gmail-local]
type = GmailMaildir type = Maildir
localfolders = ~/mail/gmail localfolders = ~/mail/gmail
[Repository gmail-remote] [Repository gmail-remote]
@ -37,7 +37,7 @@ autorefresh = 0.5
quick = 10 quick = 10
[Repository andthensome-local] [Repository andthensome-local]
type = GmailMaildir type = Maildir
localfolders = ~/mail/andthensome localfolders = ~/mail/andthensome
[Repository andthensome-remote] [Repository andthensome-remote]