From 37ba3b7b8d6c7e092e1744bf596bb89087d0e7be Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 13 Feb 2023 17:24:03 -0500 Subject: use template files --- share/mbsync-temp | 24 ++++++++++++++++++++++++ share/mpop-temp | 6 ++++++ share/msmtp-temp | 11 +++++++++++ share/mutt-temp | 20 ++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 share/mbsync-temp create mode 100644 share/mpop-temp create mode 100644 share/msmtp-temp create mode 100644 share/mutt-temp (limited to 'share') diff --git a/share/mbsync-temp b/share/mbsync-temp new file mode 100644 index 0000000..46cd51b --- /dev/null +++ b/share/mbsync-temp @@ -0,0 +1,24 @@ +IMAPStore $fulladdr-remote +Host $imap +Port $iport +User $login +PassCmd "pass $passprefix$fulladdr" +AuthMechs LOGIN +SSLType $imapssl +CertificateFile $sslcert + +MaildirStore $fulladdr-local +Subfolders Verbatim +Path $maildir/$fulladdr/ +Inbox $maildir/$fulladdr/INBOX + +Channel $fulladdr +Expunge Both +$master :$fulladdr-remote: +$slave :$fulladdr-local: +Patterns * !"[Gmail]/All Mail" +Create Both +SyncState * +MaxMessages $maxmes +ExpireUnread no +# End profile diff --git a/share/mpop-temp b/share/mpop-temp new file mode 100644 index 0000000..9489a12 --- /dev/null +++ b/share/mpop-temp @@ -0,0 +1,6 @@ +account $fulladdr +tls on +user $login +host $imap +delivery maildir $maildir/$fulladdr/INBOX +passwordeval pass $passprefix$fulladdr diff --git a/share/msmtp-temp b/share/msmtp-temp new file mode 100644 index 0000000..7333437 --- /dev/null +++ b/share/msmtp-temp @@ -0,0 +1,11 @@ +account $fulladdr +host $smtp +port $sport +from $fulladdr +user $login +passwordeval "pass $passprefix$fulladdr" +auth on +tls on +tls_trust_file $sslcert +logfile $msmtplog +$tlsline diff --git a/share/mutt-temp b/share/mutt-temp new file mode 100644 index 0000000..89bbc8f --- /dev/null +++ b/share/mutt-temp @@ -0,0 +1,20 @@ +# vim: filetype=neomuttrc +# muttrc file for account $fulladdr +set realname = "$realname" +set from = "$fulladdr" +set sendmail = "msmtp -a $fulladdr" +alias me $realname <$fulladdr> +set folder = "$folder" +set header_cache = $cachedir/$fulladdr/headers +set message_cachedir = $cachedir/$fulladdr/bodies +set mbox_type = Maildir +set hostname = "$hostname" +source $muttshare/switch.muttrc +set spoolfile = "+INBOX" +set postponed = "+Drafts" +set trash = "+Trash" +set record = "+Sent" +$extra +macro index o "mailsync $fulladdr" "sync $fulladdr" +macro index \eg "unset wait_keygpg --list-secret-keys; printf 'Enter email ID of user to publish: '; read eID; printf 'Enter fingerprint of GPG key to publish: '; read eFGPT; $prefix/libexec/gpg-wks-client --create \\\$eFGPT \\\$eID | msmtp --read-envelope-from --read-recipients -a $fulladdr" "publish GPG key to WKS provider" +macro index \eh "$prefix/libexec/gpg-wks-client --receive | msmtp --read-envelope-from --read-recipients -a $fulladdr" "confirm GPG publication" -- cgit v1.2.3