Compare commits

..

No commits in common. "dcee2ccddf3b4855639b03f3cc08d6504d13cb51" and "45e44797b5b250063feda4f95dc21c44b2b8e400" have entirely different histories.

8 changed files with 38 additions and 38 deletions

View File

@ -15,7 +15,6 @@ 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

View File

@ -0,0 +1,18 @@
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 *

View File

@ -1,19 +0,0 @@
# 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"

View File

@ -1,10 +0,0 @@
# 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

View File

@ -5,6 +5,22 @@ 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/"
source ~/.config/neomutt/gmail-common.muttrc 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/"
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"

View File

@ -1,2 +0,0 @@
source ~/.config/neomutt/common.muttrc
source ~/.config/neomutt/gmail-work.muttrc

View File

@ -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"

View File

@ -16,13 +16,11 @@ 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 -a email-work | paste -d '' "$fields" - >> "$IDFILE" keepassxc-cli show "$KEEPASSDB" meta/identity -a realname -a email | 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