Switch to asymptotic
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
c134bd4326
commit
2de0addc61
8 changed files with 54 additions and 54 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
15
mutt/.mutt/accounts/asymptotic
Normal file
15
mutt/.mutt/accounts/asymptotic
Normal file
|
@ -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 \
|
||||
"<save-message>+asymptotic/Trash<enter>" \
|
||||
"move message to the trash"
|
||||
|
||||
macro index S \
|
||||
"<save-message>+asymptotic/Spam<enter>" \
|
||||
"mark message as spam"
|
|
@ -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 \
|
||||
"<save-message>+nilenso/Trash<enter>" \
|
||||
"move message to the trash"
|
||||
|
||||
macro index S \
|
||||
"<save-message>+nilenso/Spam<enter>" \
|
||||
"mark message as spam"
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue