From 76ebf038d75f778b27e0e14d855bc295664656ce Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Wed, 23 Jan 2019 10:59:17 +0000 Subject: [PATCH] Combine various mail modes Use mutt with explicit -F parameters to select account and offline/imap/online modes --- .../.local/bin/aber_mutt | 0 {aber_offline_mail => mail}/.mbsync.aber | 0 {aber_offline_mail => mail}/.mutt/colors.mutt | 0 {aber_offline_mail => mail}/.mutt/common.mutt | 0 {aber_offline_mail => mail}/.mutt/gpg.rc | 0 mail/.mutt/mutt.com.friedersdorff.com | 37 +++++++++++++++++++ .../.mutt/mutt.uk.ac.aber.maf54_offline | 0 mail/.mutt/mutt.uk.ac.aber.maf54_online | 36 ++++++++++++++++++ 8 files changed, 73 insertions(+) rename {aber_offline_mail => mail}/.local/bin/aber_mutt (100%) rename {aber_offline_mail => mail}/.mbsync.aber (100%) rename {aber_offline_mail => mail}/.mutt/colors.mutt (100%) rename {aber_offline_mail => mail}/.mutt/common.mutt (100%) rename {aber_offline_mail => mail}/.mutt/gpg.rc (100%) create mode 100644 mail/.mutt/mutt.com.friedersdorff.com rename aber_offline_mail/.mutt/mutt.uk.ac.aber.maf54 => mail/.mutt/mutt.uk.ac.aber.maf54_offline (100%) create mode 100644 mail/.mutt/mutt.uk.ac.aber.maf54_online diff --git a/aber_offline_mail/.local/bin/aber_mutt b/mail/.local/bin/aber_mutt similarity index 100% rename from aber_offline_mail/.local/bin/aber_mutt rename to mail/.local/bin/aber_mutt diff --git a/aber_offline_mail/.mbsync.aber b/mail/.mbsync.aber similarity index 100% rename from aber_offline_mail/.mbsync.aber rename to mail/.mbsync.aber diff --git a/aber_offline_mail/.mutt/colors.mutt b/mail/.mutt/colors.mutt similarity index 100% rename from aber_offline_mail/.mutt/colors.mutt rename to mail/.mutt/colors.mutt diff --git a/aber_offline_mail/.mutt/common.mutt b/mail/.mutt/common.mutt similarity index 100% rename from aber_offline_mail/.mutt/common.mutt rename to mail/.mutt/common.mutt diff --git a/aber_offline_mail/.mutt/gpg.rc b/mail/.mutt/gpg.rc similarity index 100% rename from aber_offline_mail/.mutt/gpg.rc rename to mail/.mutt/gpg.rc diff --git a/mail/.mutt/mutt.com.friedersdorff.com b/mail/.mutt/mutt.com.friedersdorff.com new file mode 100644 index 0000000..5bd4d40 --- /dev/null +++ b/mail/.mutt/mutt.com.friedersdorff.com @@ -0,0 +1,37 @@ +macro index 'c' '?^K+' + +# Source the passwords file +#source "gpg2 -dq ~/.mutt/passwords.gpg |" +set my_personal_password=`pass Home/xenon/mail/max@friedersdorff.com | head -n 1` + +# Get common settings +source ~/.mutt/common.mutt + +# Encryption +source ~/.mutt/gpg.rc + +# Mutt colors +source ~/.mutt/colors.mutt + +# Mailbox specific settings +unmailboxes * + +set imap_user = "max@friedersdorff.com" +set imap_pass = $my_personal_password +set smtp_url = "smtp://max@friedersdorff.com@mail.friedersdorff.com:587" +set smtp_pass = $my_personal_password +set from = "max@friedersdorff.com" +set realname = "Maximilian Friedersdorff" +set folder = "imaps://max@friedersdorff.com@mail.friedersdorff.com:993" +set spoolfile = "+INBOX" +set postponed = "+Drafts" +set header_cache = ~/.mutt/com.friedersdorff.max/cache/headers +set message_cachedir = ~/.mutt/com.friedersdorff.max/cache/bodies +set certificate_file = ~/.mutt/com.friedersdorff.max/certificates + +set trash = "+Trash" +set record = "+Sent" + +set pgp_sign_as="0xDA2EDF6D" + +mailboxes "+INBOX" "+todo" "+quicknote" "+google" diff --git a/aber_offline_mail/.mutt/mutt.uk.ac.aber.maf54 b/mail/.mutt/mutt.uk.ac.aber.maf54_offline similarity index 100% rename from aber_offline_mail/.mutt/mutt.uk.ac.aber.maf54 rename to mail/.mutt/mutt.uk.ac.aber.maf54_offline diff --git a/mail/.mutt/mutt.uk.ac.aber.maf54_online b/mail/.mutt/mutt.uk.ac.aber.maf54_online new file mode 100644 index 0000000..fd988a9 --- /dev/null +++ b/mail/.mutt/mutt.uk.ac.aber.maf54_online @@ -0,0 +1,36 @@ +macro index 'c' '?^K+' + +# Source the passwords file +#source "gpg2 -dq ~/.mutt/passwords.gpg |" +set my_aber_password=`pass Aber/Main | head -n 1` + +# Get common settings +source ~/.mutt/common.mutt + +# Encryption +source ~/.mutt/gpg.rc + +# Mutt colors +source ~/.mutt/colors.mutt + + +# Mailbox specific settings +set imap_user = "maf54@aber.ac.uk" +set imap_pass = $my_aber_password +set smtp_url = "smtp://maf54@aber.ac.uk@smtp.office365.com:587" +set smtp_pass = $my_aber_password +set from = "maf54@aber.ac.uk" +set realname = "Maximilian Friedersdorff" +set folder = "imaps://maf54@aber.ac.uk@outlook.office365.com:993" +set spoolfile = "+Inbox" +set postponed = "+Drafts" +set header_cache = ~/.mutt/uk.co.aber.maf54/cache/headers +set message_cachedir = ~/.mutt/uk.co.aber.maf54/cache/bodies +set certificate_file = ~/.mutt/uk.co.aber.maf54/certificates + +set trash = "+Trash" +set record = "+Sent" + +set pgp_sign_as="0xDA2EDF6D" + +mailboxes "+Inbox" "+Inbox/staging" "+Lists" "+Lists/ibers-all" "+Lists/centos-sec" "+Lists/ubuntu-sec" "+Notifications" "+Notifications/ibers-cs" "+Notifications/ibers-cs/vmcpuload" "+Notifications/NPPC" "+Notifications/NPPC/Updates" "+Notifications/NPPC/Uptime" "+Notifications/NPPC/Icinga" "+UCU" "+Suppliers" "+Suppliers/BrightComputing" "+Suppliers/ClusterVision" -- 2.46.2