From 2de0addc613989562d01985be24f9d38f1b881da Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 23 Jul 2020 20:20:48 +0530 Subject: [PATCH] Switch to asymptotic Signed-off-by: Sanchayan Maity --- imapfilter/.imapfilter/config.lua | 36 +++++++++++++++---------------- mbsync/.mbsyncrc | 22 +++++++++---------- msmtp/.msmtprc | 8 +++---- mutt/.mutt/accounts/asymptotic | 15 +++++++++++++ mutt/.mutt/accounts/nilenso | 15 ------------- mutt/.mutt/mailnotify.sh | 6 +++--- mutt/.mutt/muttrc | 4 ++-- notmuch/.notmuch-config | 2 +- 8 files changed, 54 insertions(+), 54 deletions(-) create mode 100644 mutt/.mutt/accounts/asymptotic delete mode 100644 mutt/.mutt/accounts/nilenso diff --git a/imapfilter/.imapfilter/config.lua b/imapfilter/.imapfilter/config.lua index 18417aa..2531ae8 100644 --- a/imapfilter/.imapfilter/config.lua +++ b/imapfilter/.imapfilter/config.lua @@ -20,26 +20,26 @@ function main() mails = sanchayan['[Gmail]/Spam']:select_all() move_mailing_lists(sanchayan, mails) - local nilenso = IMAP { + local asymptotic = IMAP { server = 'imap.gmail.com', - username = 'sanchayan@nilenso.systems', - password = get_pwd_nilenso(), + username = 'sanchayan@asymptotic.io', + password = get_pwd_asymptotic(), ssl = 'tls1', } - nilenso.INBOX:check_status() - -- nilenso['[Gmail]/Trash']:check_status() - -- nilenso['[Gmail]/Spam']:check_status() - mails = nilenso.INBOX:select_all() - move_mailing_lists(nilenso, mails) - mails = nilenso.Sent:select_all() - move_mailing_lists(nilenso, mails) - mails = nilenso['[Gmail]/Trash']:select_all() - imap_trash = nilenso['Trash']:select_all() - move_to_gmail_trash(nilenso, imap_trash, '[Gmail]/Trash') - delete_from_trash(nilenso, mails) - mails = nilenso['[Gmail]/Spam']:select_all() - move_mailing_lists(nilenso, mails) + asymptotic.INBOX:check_status() + -- asymptotic['[Gmail]/Trash']:check_status() + -- asymptotic['[Gmail]/Spam']:check_status() + mails = asymptotic.INBOX:select_all() + move_mailing_lists(asymptotic, mails) + mails = asymptotic.Sent:select_all() + move_mailing_lists(asymptotic, mails) + mails = asymptotic['[Gmail]/Trash']:select_all() + imap_trash = asymptotic['Trash']:select_all() + move_to_gmail_trash(asymptotic, imap_trash, '[Gmail]/Trash') + delete_from_trash(asymptotic, mails) + mails = asymptotic['[Gmail]/Spam']:select_all() + move_mailing_lists(asymptotic, mails) end @@ -129,8 +129,8 @@ function get_pwd_sanchayan() return pass; end -function get_pwd_nilenso() - local cmd = "gpg2 --use-agent --quiet --batch --decrypt ~/.nilenso.gpg" +function get_pwd_asymptotic() + local cmd = "gpg2 --use-agent --quiet --batch --decrypt ~/.asymptotic.gpg" local fd = io.popen(cmd, 'r') pass = fd:read("*a") fd:close() diff --git a/mbsync/.mbsyncrc b/mbsync/.mbsyncrc index 0af71f7..2440d8b 100644 --- a/mbsync/.mbsyncrc +++ b/mbsync/.mbsyncrc @@ -2,25 +2,25 @@ Create Slave Expunge Both SyncState * -IMAPAccount nilenso +IMAPAccount asymptotic Host imap.gmail.com Port 993 -User sanchayan@nilenso.systems -PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.nilenso.gpg" +User sanchayan@asymptotic.io +PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.asymptotic.gpg" SSLType IMAPS CertificateFile /etc/ssl/certs/ca-certificates.crt -IMAPStore nilenso-remote -Account nilenso +IMAPStore asymptotic-remote +Account asymptotic -MaildirStore nilenso-local +MaildirStore asymptotic-local SubFolders Verbatim -Path "~/Gmail/nilenso/" -Inbox "~/Gmail/nilenso/Inbox" +Path "~/Gmail/asymptotic/" +Inbox "~/Gmail/asymptotic/Inbox" -Channel nilenso -Master :nilenso-remote: -Slave :nilenso-local: +Channel asymptotic +Master :asymptotic-remote: +Slave :asymptotic-local: Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" IMAPAccount gmail diff --git a/msmtp/.msmtprc b/msmtp/.msmtprc index 05490da..675593e 100644 --- a/msmtp/.msmtprc +++ b/msmtp/.msmtprc @@ -13,11 +13,11 @@ from maitysanchayan@gmail.com user maitysanchayan@gmail.com passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/core/.gnupg --decrypt ~/.sanchayan.gpg" -account nilenso +account asymptotic host smtp.gmail.com -from sanchayan@nilenso.systems -user sanchayan@nilenso.systems -passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/core/.gnupg --decrypt ~/.nilenso.gpg" +from sanchayan@asymptotic.io +user sanchayan@asymptotic.io +passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/core/.gnupg --decrypt ~/.asymptotic.gpg" # Set a default account account default : Sanchayan diff --git a/mutt/.mutt/accounts/asymptotic b/mutt/.mutt/accounts/asymptotic new file mode 100644 index 0000000..8b60c40 --- /dev/null +++ b/mutt/.mutt/accounts/asymptotic @@ -0,0 +1,15 @@ +set from = "sanchayan@asymptotic.systems" +set sendmail = "/usr/bin/msmtp -a asymptotic" +set mbox = "+asymptotic/Archive" +set postponed = "+asymptotic/drafts" +set record = "+asymptotic/Sent" + +color status green default + +macro index D \ + "+asymptotic/Trash" \ + "move message to the trash" + +macro index S \ + "+asymptotic/Spam" \ + "mark message as spam" diff --git a/mutt/.mutt/accounts/nilenso b/mutt/.mutt/accounts/nilenso deleted file mode 100644 index 9f079ac..0000000 --- a/mutt/.mutt/accounts/nilenso +++ /dev/null @@ -1,15 +0,0 @@ -set from = "sanchayan@nilenso.systems" -set sendmail = "/usr/bin/msmtp -a nilenso" -set mbox = "+nilenso/Archive" -set postponed = "+nilenso/drafts" -set record = "+nilenso/Sent" - -color status green default - -macro index D \ - "+nilenso/Trash" \ - "move message to the trash" - -macro index S \ - "+nilenso/Spam" \ - "mark message as spam" diff --git a/mutt/.mutt/mailnotify.sh b/mutt/.mutt/mailnotify.sh index dafd683..a5de21d 100755 --- a/mutt/.mutt/mailnotify.sh +++ b/mutt/.mutt/mailnotify.sh @@ -6,12 +6,12 @@ notmuch new export DISPLAY=:0 let inbox=`ls /home/core/Gmail/sanchayan/Inbox/new/|wc -l` -let nilenso_inbox=`ls /home/core/Gmail/nilenso/Inbox/new/|wc -l` +let asymptotic_inbox=`ls /home/core/Gmail/asymptotic/Inbox/new/|wc -l` if [ "$inbox" -gt 0 ]; then sudo -u core DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "You have $inbox new mails in inbox" fi -if [ "$nilenso_inbox" -gt 0 ]; then - sudo -u core DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "You have $nilenso_inbox new mails in Nilenso inbox" +if [ "$asymptotic_inbox" -gt 0 ]; then + sudo -u core DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "You have $asymptotic_inbox new mails in asymptotic inbox" fi diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc index 3737513..11aecc5 100644 --- a/mutt/.mutt/muttrc +++ b/mutt/.mutt/muttrc @@ -4,10 +4,10 @@ set spoolfile = +/sanchayan/Inbox set header_cache=~/Gmail/mutt_cache/ # a much faster opening of mailboxes... source ~/.mutt/accounts/sanchayan -source ~/.mutt/accounts/nilenso +source ~/.mutt/accounts/asymptotic folder-hook sanchayan/* source ~/.mutt/accounts/sanchayan -folder-hook nilenso/* source ~/.mutt/accounts/nilenso +folder-hook asymptotic/* source ~/.mutt/accounts/asymptotic set mail_check = 0 set envelope_from diff --git a/notmuch/.notmuch-config b/notmuch/.notmuch-config index 993aec1..4c114e9 100644 --- a/notmuch/.notmuch-config +++ b/notmuch/.notmuch-config @@ -30,7 +30,7 @@ path=/home/core/Gmail # [user] name=Sanchayan Maity -primary_email=sanchayan@nilenso.systems +primary_email=sanchayan@asymptotic.io other_email=maitysanchayan@gmail.com; # Configuration for "notmuch new"