feat(mail): add archlinux config
This commit is contained in:
parent
f4023ec9a1
commit
76c927597b
8 changed files with 97 additions and 2 deletions
27
mail/.config/neomutt/accounts/archlinux
Normal file
27
mail/.config/neomutt/accounts/archlinux
Normal file
|
@ -0,0 +1,27 @@
|
|||
# clear previously defined mailboxes
|
||||
#unmailboxes *
|
||||
|
||||
# clear previously defined headers
|
||||
unmy_hdr *
|
||||
|
||||
set mbox = "+archlinux/Archive"
|
||||
set postponed = "+archlinux/Drafts"
|
||||
set trash = "+archlinux/Trash"
|
||||
set record = "+archlinux/Sent"
|
||||
|
||||
set realname = "George Rawlinson"
|
||||
set from = "grawlinson@archlinux.org"
|
||||
set signature = "~/.config/neomutt/signature"
|
||||
|
||||
# smtp settings
|
||||
set smtp_pass = `pass mail/grawlinson@archlinux.org`
|
||||
set smtp_url = smtps://$from@mail.archlinux.org
|
||||
|
||||
# archlinux specific macros
|
||||
macro index A "<save-message>+archlinux/Archive<enter>" "move message to the archive"
|
||||
macro index S "<save-message>+archlinux/Junk<enter>" "mark message as spam"
|
||||
macro index D "<save-message>+archlinux/Trash<enter>" "move message to the trash"
|
||||
# tag macros
|
||||
macro index \Ca "<tag-prefix-cond><save-message>+archlinux/Archive<enter>" "move tagged messages to archive"
|
||||
macro index \Cs "<tag-prefix-cond><save-message>+archlinux/Junk<enter>" "move tagged messages to spam"
|
||||
macro index \Cd "<tag-prefix-cond><save-message>+archlinux/Trash<enter>" "move tagged messages to trash"
|
|
@ -11,6 +11,7 @@ set record = "+rawlinson/Sent"
|
|||
|
||||
set realname = "George Rawlinson"
|
||||
set from = "george@rawlinson.net.nz"
|
||||
set signature = "~/.config/neomutt/signature"
|
||||
|
||||
# smtp settings
|
||||
set smtp_pass = `pass mail/george@rawlinson.net.nz`
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# folder hooks for different accounts
|
||||
folder-hook rawlinson/* source ~/.config/neomutt/accounts/rawlinson
|
||||
folder-hook archlinux/* source ~/.config/neomutt/accounts/archlinux
|
||||
#folder-hook accountname/* source ~/.config/neomutt/accounts/accountname
|
||||
|
||||
source ~/.config/neomutt/accounts/rawlinson # default account
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
named-mailboxes ":: rawlinson" "+rawlinson/INBOX"
|
||||
mailboxes `find ~/.mail/rawlinson -type d -name cur | sort | sed -e 's:/cur/*$::' -e 's/ /\\ /g' | tr '\n' ' '`
|
||||
named-mailboxes ":: archlinux" "+archlinux/INBOX"
|
||||
mailboxes `find ~/.mail/archlinux -type d -name cur | sort | sed -e 's:/cur/*$::' -e 's/ /\\ /g' | tr '\n' ' '`
|
||||
#mailboxes `find ~/.mail/accountname -type d -name cur | sort | sed -e 's:/cur/*$::' -e 's/ /\\ /g' | tr '\n' ' '`
|
||||
|
||||
# vim: syntax=muttrc
|
||||
|
|
1
mail/.config/neomutt/signature
Normal file
1
mail/.config/neomutt/signature
Normal file
|
@ -0,0 +1 @@
|
|||
George Rawlinson
|
|
@ -3,7 +3,9 @@ Create Both
|
|||
Expunge Both
|
||||
SyncState *
|
||||
|
||||
# rawlinson
|
||||
#
|
||||
# george@rawlinson.net.nz
|
||||
#
|
||||
IMAPAccount rawlinson
|
||||
Host imap.little.kiwi
|
||||
User george@rawlinson.net.nz
|
||||
|
@ -60,3 +62,63 @@ Group rawlinson
|
|||
Channel rawlinson-junk
|
||||
Channel rawlinson-sent
|
||||
Channel rawlinson-folders
|
||||
|
||||
#
|
||||
# grawlinson@archlinux.org
|
||||
#
|
||||
IMAPAccount archlinux
|
||||
Host mail.archlinux.org
|
||||
User grawlinson
|
||||
PassCmd "pass mail/grawlinson@archlinux.org" # get password from pass
|
||||
AuthMechs LOGIN
|
||||
SSLType IMAPS
|
||||
|
||||
# remote storage
|
||||
IMAPStore archlinux-remote
|
||||
Account archlinux
|
||||
|
||||
# local storage
|
||||
MaildirStore archlinux-local
|
||||
Path ~/.mail/archlinux/ # must append slash to specify directory
|
||||
Inbox ~/.mail/archlinux/INBOX # place inbox inside mail dir
|
||||
|
||||
# folders
|
||||
Channel archlinux-inbox
|
||||
Far :archlinux-remote:INBOX
|
||||
Near :archlinux-local:INBOX
|
||||
|
||||
Channel archlinux-archive
|
||||
Far :archlinux-remote:Archive
|
||||
Near :archlinux-local:Archive
|
||||
|
||||
Channel archlinux-drafts
|
||||
Far :archlinux-remote:Drafts
|
||||
Near :archlinux-local:Drafts
|
||||
|
||||
Channel archlinux-junk
|
||||
Far :archlinux-remote:Junk
|
||||
Near :archlinux-local:Junk
|
||||
|
||||
Channel archlinux-sent
|
||||
Far :archlinux-remote:Sent
|
||||
Near :archlinux-local:Sent
|
||||
|
||||
Channel archlinux-trash
|
||||
Far :archlinux-remote:Trash
|
||||
Near :archlinux-local:Trash
|
||||
|
||||
# all folders except above
|
||||
Channel archlinux-folders
|
||||
Far :archlinux-remote:
|
||||
Near :archlinux-local:
|
||||
Patterns * !INBOX !Archive !Drafts !Junk !Sent !Trash
|
||||
|
||||
# group all channels, so they can be sync'd with one command `mbsync archlinux`
|
||||
Group archlinux
|
||||
Channel archlinux-trash
|
||||
Channel archlinux-inbox
|
||||
Channel archlinux-archive
|
||||
Channel archlinux-drafts
|
||||
Channel archlinux-junk
|
||||
Channel archlinux-sent
|
||||
Channel archlinux-folders
|
||||
|
|
|
@ -31,7 +31,7 @@ path=.mail
|
|||
[user]
|
||||
name=George Rawlinson
|
||||
primary_email=george@rawlinson.net.nz
|
||||
other_email=george@nullpointer.io;
|
||||
other_email=george@nullpointer.io;grawlinson@archlinux.org
|
||||
|
||||
# Configuration for "notmuch new"
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue