Compare commits
3 Commits
45e44797b5
...
dcee2ccddf
Author | SHA1 | Date | |
---|---|---|---|
dcee2ccddf | |||
329e15cff7 | |||
e6a7e3026e |
@ -15,6 +15,7 @@ end
|
|||||||
# Neomutt configs
|
# Neomutt configs
|
||||||
function neomutt.local; neomutt -F .config/neomutt/neomuttrc.local; end
|
function neomutt.local; neomutt -F .config/neomutt/neomuttrc.local; end
|
||||||
function neomutt.disroot; neomutt -F .config/neomutt/neomuttrc.disroot; end
|
function neomutt.disroot; neomutt -F .config/neomutt/neomuttrc.disroot; end
|
||||||
|
function neomutt.work; neomutt -F .config/neomutt/neomuttrc.work; end
|
||||||
|
|
||||||
# Specific to my Gentoo system
|
# Specific to my Gentoo system
|
||||||
function genlop; doas -u portage /usr/bin/genlop; end
|
function genlop; doas -u portage /usr/bin/genlop; end
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
IMAPStore disroot-remote
|
|
||||||
Host disroot.org
|
|
||||||
User dogeystamp@disroot.org
|
|
||||||
PassCmd "keepassxc-cli show -sa password dox/sec/pass.kdbx msg/disroot"
|
|
||||||
SSLType IMAPS
|
|
||||||
|
|
||||||
MaildirStore disroot-local
|
|
||||||
SubFolders Verbatim
|
|
||||||
Path ~/dox/mail/disroot/
|
|
||||||
Inbox ~/dox/mail/disroot/Inbox
|
|
||||||
|
|
||||||
Channel disroot
|
|
||||||
Far :disroot-remote:
|
|
||||||
Near :disroot-local:
|
|
||||||
Patterns *
|
|
||||||
Create Both
|
|
||||||
Expunge Both
|
|
||||||
SyncState *
|
|
19
src/.config/neomutt/gmail-common.muttrc
Normal file
19
src/.config/neomutt/gmail-common.muttrc
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# vim: filetype=muttrc
|
||||||
|
|
||||||
|
set smtp_pass="$imap_pass"
|
||||||
|
set smtp_authenticators = 'login'
|
||||||
|
|
||||||
|
set folder="imaps://imap.gmail.com/"
|
||||||
|
set spoolfile=+INBOX
|
||||||
|
set record="+[Gmail]/Sent Mail"
|
||||||
|
set postponed="+[Gmail]/Drafts"
|
||||||
|
mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/All\ Mail =[Gmail]/Starred =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash
|
||||||
|
|
||||||
|
macro index ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
|
||||||
|
macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
|
||||||
|
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
|
||||||
|
macro index gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
|
||||||
|
macro index gS "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to sent messages"
|
||||||
|
macro index gt "<change-folder>=[Gmail]/Trash<enter>" "Go to trash"
|
||||||
|
macro index,pager d "<save-message>=[Gmail]/Trash<enter><enter>" "Trash"
|
||||||
|
macro index,pager y "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive"
|
10
src/.config/neomutt/gmail-work.muttrc
Normal file
10
src/.config/neomutt/gmail-work.muttrc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# vim: filetype=muttrc
|
||||||
|
|
||||||
|
set from="$ID_EMAIL_WORK"
|
||||||
|
set realname="$ID_REALNAME"
|
||||||
|
|
||||||
|
set imap_user="$ID_EMAIL_WORK"
|
||||||
|
set imap_pass="`keepassxc-cli show -s -a neomutt \"$KEEPASSDB\" work/gmail`"
|
||||||
|
set smtp_url="smtps://$ID_EMAIL_WORK_USER@smtp.gmail.com/"
|
||||||
|
|
||||||
|
source ~/.config/neomutt/gmail-common.muttrc
|
@ -5,22 +5,6 @@ set realname="$ID_REALNAME"
|
|||||||
|
|
||||||
set imap_user="$ID_EMAIL"
|
set imap_user="$ID_EMAIL"
|
||||||
set imap_pass="`keepassxc-cli show -s -a neomutt \"$KEEPASSDB\" meta/gmail`"
|
set imap_pass="`keepassxc-cli show -s -a neomutt \"$KEEPASSDB\" meta/gmail`"
|
||||||
|
|
||||||
set smtp_url="smtps://$ID_EMAIL_USER@smtp.gmail.com/"
|
set smtp_url="smtps://$ID_EMAIL_USER@smtp.gmail.com/"
|
||||||
set smtp_pass="$imap_pass"
|
|
||||||
set smtp_authenticators = 'login'
|
|
||||||
|
|
||||||
set folder="imaps://imap.gmail.com/"
|
source ~/.config/neomutt/gmail-common.muttrc
|
||||||
set spoolfile=+INBOX
|
|
||||||
set record="+[Gmail]/Sent Mail"
|
|
||||||
set postponed="+[Gmail]/Drafts"
|
|
||||||
mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/All\ Mail =[Gmail]/Starred =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash
|
|
||||||
|
|
||||||
macro index ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
|
|
||||||
macro index gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
|
|
||||||
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
|
|
||||||
macro index gs "<change-folder>=[Gmail]/Starred<enter>" "Go to starred messages"
|
|
||||||
macro index gS "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to sent messages"
|
|
||||||
macro index gt "<change-folder>=[Gmail]/Trash<enter>" "Go to trash"
|
|
||||||
macro index,pager d "<save-message>=[Gmail]/Trash<enter><enter>" "Trash"
|
|
||||||
macro index,pager y "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive"
|
|
||||||
|
2
src/.config/neomutt/neomuttrc.work
Normal file
2
src/.config/neomutt/neomuttrc.work
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
source ~/.config/neomutt/common.muttrc
|
||||||
|
source ~/.config/neomutt/gmail-work.muttrc
|
@ -6,7 +6,7 @@
|
|||||||
# -o: print to stdout
|
# -o: print to stdout
|
||||||
# -b: open in browser
|
# -b: open in browser
|
||||||
|
|
||||||
output=$(cat ~/dox/not/bk.txt | fzf | awk -F'#' '{print $1}')
|
output=$(cat ~/dox/not/bk.txt | fzf | awk -F'^' '{print $1}')
|
||||||
|
|
||||||
# default action: clip, stdout, browser
|
# default action: clip, stdout, browser
|
||||||
action="clip"
|
action="clip"
|
||||||
|
@ -16,11 +16,13 @@ fields=$(mktemp)
|
|||||||
cat << "EOF" > "$fields"
|
cat << "EOF" > "$fields"
|
||||||
export ID_REALNAME=
|
export ID_REALNAME=
|
||||||
export ID_EMAIL=
|
export ID_EMAIL=
|
||||||
|
export ID_EMAIL_WORK=
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
keepassxc-cli show "$KEEPASSDB" meta/identity -a realname -a email | paste -d '' "$fields" - >> "$IDFILE"
|
keepassxc-cli show "$KEEPASSDB" meta/identity -a realname -a email -a email-work | paste -d '' "$fields" - >> "$IDFILE"
|
||||||
rm "$fields"
|
rm "$fields"
|
||||||
|
|
||||||
cat << "EOF" >> "$IDFILE"
|
cat << "EOF" >> "$IDFILE"
|
||||||
export ID_EMAIL_USER=$(basename "$ID_EMAIL" @gmail.com)
|
export ID_EMAIL_USER=$(basename "$ID_EMAIL" @gmail.com)
|
||||||
|
export ID_EMAIL_WORK_USER=$(basename "$ID_EMAIL_WORK" @gmail.com)
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user