diff --git a/.config/isync/mbsyncrc b/.config/isync/mbsyncrc new file mode 100644 index 0000000..341fc7c --- /dev/null +++ b/.config/isync/mbsyncrc @@ -0,0 +1,108 @@ +# -*- conf -*- + +#--- Account ---# +IMAPAccount info +Host mail.riyyi.com +Port 993 +UserCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/emacs/etc/authinfo.gpg | awk -F ' ' '/info/ { print $(NF-2); exit; }'" +PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/emacs/etc/authinfo.gpg | awk -F ' ' '/info/ { print $NF; exit; }'" +# SSL +SSLType IMAPS +SSLVersions TLSv1.3 +CertificateFile /etc/ssl/certs/ca-certificates.crt + +#--- Remote ---# +IMAPStore info-remote +Account info + +#--- Local ---# +MaildirStore info-local +# IMAP subfolders represent local subfolders +SubFolders Verbatim +# The trailing "/" is important +Path ~/mail/info/ +Inbox ~/mail/info/Inbox + +#--- Sync ---# +Channel info +Far :info-remote: +Near :info-local: +# Automatically create missing mailboxes, only locally +Create Near +# Do not permanently remove all messages marked for deletion +Expunge None +# Include everything +Patterns * +# Save the synchronization state files in the relevant directory +SyncState * +# Make sure the date of the arrival stays the same when you move messages around +CopyArrivalDate yes + +# ------------------------------------------ + +#--- Account ---# +IMAPAccount private +Host mail.riyyi.com +Port 993 +UserCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/emacs/etc/authinfo.gpg | awk -F ' ' '/private/ { print $(NF-2); exit; }'" +PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/emacs/etc/authinfo.gpg | awk -F ' ' '/private/ { print $NF; exit; }'" +# SSL +SSLType IMAPS +SSLVersions TLSv1.3 +CertificateFile /etc/ssl/certs/ca-certificates.crt + +#--- Remote ---# +IMAPStore private-remote +Account private + +#--- Local ---# +MaildirStore private-local +# IMAP subfolders represent local subfolders +SubFolders Verbatim +# The trailing "/" is important +Path ~/mail/private/ +Inbox ~/mail/private/Inbox + +#--- Sync ---# +Channel private +Far :private-remote: +Near :private-local: +# Automatically create missing mailboxes, only locally +Create Near +# Do not permanently remove all messages marked for deletion +Expunge None +# Include everything +Patterns * +# Save the synchronization state files in the relevant directory +SyncState * +# Make sure the date of the arrival stays the same when you move messages around +CopyArrivalDate yes + +# ------------------------------------------ + +# https://www.gnu.org/software/emacs/manual/html_node/smtpmail/Authentication.html + +# Example config: + +# machine info port 993 login password +# machine private port 993 login password + +# machine mail.riyyi.com port 587 login password +# machine mail.riyyi.com port 587 login password + +# Create password file: + +# $ touch ~/.config/emacs/etc/authinfo.gpg +# $ echo "" > ~/.config/emacs/etc/authinfo.gpg +# $ gpg -e -r ~/.config/emacs/etc/authinfo.gpg + +# Run to sync mail: +# $ mbsync -a -c ~/.config/isync/mbsyncrc + +# Initialize mu: +# mu init --maildir=~/mail --my-address= --my-address= +# mu index + +# Packages: +# isync +# mu (AUR) diff --git a/packages b/packages index 0ec22e7..4e4d5fc 100644 --- a/packages +++ b/packages @@ -60,6 +60,7 @@ inkscape intel-media-driver intel-media-sdk intel-ucode +isync iw jdk11-openjdk jdownloader2