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()
|
mails = sanchayan['[Gmail]/Spam']:select_all()
|
||||||
move_mailing_lists(sanchayan, mails)
|
move_mailing_lists(sanchayan, mails)
|
||||||
|
|
||||||
local nilenso = IMAP {
|
local asymptotic = IMAP {
|
||||||
server = 'imap.gmail.com',
|
server = 'imap.gmail.com',
|
||||||
username = 'sanchayan@nilenso.systems',
|
username = 'sanchayan@asymptotic.io',
|
||||||
password = get_pwd_nilenso(),
|
password = get_pwd_asymptotic(),
|
||||||
ssl = 'tls1',
|
ssl = 'tls1',
|
||||||
}
|
}
|
||||||
|
|
||||||
nilenso.INBOX:check_status()
|
asymptotic.INBOX:check_status()
|
||||||
-- nilenso['[Gmail]/Trash']:check_status()
|
-- asymptotic['[Gmail]/Trash']:check_status()
|
||||||
-- nilenso['[Gmail]/Spam']:check_status()
|
-- asymptotic['[Gmail]/Spam']:check_status()
|
||||||
mails = nilenso.INBOX:select_all()
|
mails = asymptotic.INBOX:select_all()
|
||||||
move_mailing_lists(nilenso, mails)
|
move_mailing_lists(asymptotic, mails)
|
||||||
mails = nilenso.Sent:select_all()
|
mails = asymptotic.Sent:select_all()
|
||||||
move_mailing_lists(nilenso, mails)
|
move_mailing_lists(asymptotic, mails)
|
||||||
mails = nilenso['[Gmail]/Trash']:select_all()
|
mails = asymptotic['[Gmail]/Trash']:select_all()
|
||||||
imap_trash = nilenso['Trash']:select_all()
|
imap_trash = asymptotic['Trash']:select_all()
|
||||||
move_to_gmail_trash(nilenso, imap_trash, '[Gmail]/Trash')
|
move_to_gmail_trash(asymptotic, imap_trash, '[Gmail]/Trash')
|
||||||
delete_from_trash(nilenso, mails)
|
delete_from_trash(asymptotic, mails)
|
||||||
mails = nilenso['[Gmail]/Spam']:select_all()
|
mails = asymptotic['[Gmail]/Spam']:select_all()
|
||||||
move_mailing_lists(nilenso, mails)
|
move_mailing_lists(asymptotic, mails)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -129,8 +129,8 @@ function get_pwd_sanchayan()
|
||||||
return pass;
|
return pass;
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_pwd_nilenso()
|
function get_pwd_asymptotic()
|
||||||
local cmd = "gpg2 --use-agent --quiet --batch --decrypt ~/.nilenso.gpg"
|
local cmd = "gpg2 --use-agent --quiet --batch --decrypt ~/.asymptotic.gpg"
|
||||||
local fd = io.popen(cmd, 'r')
|
local fd = io.popen(cmd, 'r')
|
||||||
pass = fd:read("*a")
|
pass = fd:read("*a")
|
||||||
fd:close()
|
fd:close()
|
||||||
|
|
|
@ -2,25 +2,25 @@ Create Slave
|
||||||
Expunge Both
|
Expunge Both
|
||||||
SyncState *
|
SyncState *
|
||||||
|
|
||||||
IMAPAccount nilenso
|
IMAPAccount asymptotic
|
||||||
Host imap.gmail.com
|
Host imap.gmail.com
|
||||||
Port 993
|
Port 993
|
||||||
User sanchayan@nilenso.systems
|
User sanchayan@asymptotic.io
|
||||||
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.nilenso.gpg"
|
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.asymptotic.gpg"
|
||||||
SSLType IMAPS
|
SSLType IMAPS
|
||||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
IMAPStore nilenso-remote
|
IMAPStore asymptotic-remote
|
||||||
Account nilenso
|
Account asymptotic
|
||||||
|
|
||||||
MaildirStore nilenso-local
|
MaildirStore asymptotic-local
|
||||||
SubFolders Verbatim
|
SubFolders Verbatim
|
||||||
Path "~/Gmail/nilenso/"
|
Path "~/Gmail/asymptotic/"
|
||||||
Inbox "~/Gmail/nilenso/Inbox"
|
Inbox "~/Gmail/asymptotic/Inbox"
|
||||||
|
|
||||||
Channel nilenso
|
Channel asymptotic
|
||||||
Master :nilenso-remote:
|
Master :asymptotic-remote:
|
||||||
Slave :nilenso-local:
|
Slave :asymptotic-local:
|
||||||
Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail"
|
Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail"
|
||||||
|
|
||||||
IMAPAccount gmail
|
IMAPAccount gmail
|
||||||
|
|
|
@ -13,11 +13,11 @@ from maitysanchayan@gmail.com
|
||||||
user 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"
|
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
|
host smtp.gmail.com
|
||||||
from sanchayan@nilenso.systems
|
from sanchayan@asymptotic.io
|
||||||
user sanchayan@nilenso.systems
|
user sanchayan@asymptotic.io
|
||||||
passwordeval "gpg2 --use-agent --batch --quiet --no-greeting --no-tty --for-your-eyes-only --homedir /home/core/.gnupg --decrypt ~/.nilenso.gpg"
|
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
|
# Set a default account
|
||||||
account default : Sanchayan
|
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
|
export DISPLAY=:0
|
||||||
let inbox=`ls /home/core/Gmail/sanchayan/Inbox/new/|wc -l`
|
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
|
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"
|
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
|
fi
|
||||||
|
|
||||||
if [ "$nilenso_inbox" -gt 0 ]; then
|
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 $nilenso_inbox new mails in Nilenso inbox"
|
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
|
fi
|
||||||
|
|
|
@ -4,10 +4,10 @@ set spoolfile = +/sanchayan/Inbox
|
||||||
set header_cache=~/Gmail/mutt_cache/ # a much faster opening of mailboxes...
|
set header_cache=~/Gmail/mutt_cache/ # a much faster opening of mailboxes...
|
||||||
|
|
||||||
source ~/.mutt/accounts/sanchayan
|
source ~/.mutt/accounts/sanchayan
|
||||||
source ~/.mutt/accounts/nilenso
|
source ~/.mutt/accounts/asymptotic
|
||||||
|
|
||||||
folder-hook sanchayan/* source ~/.mutt/accounts/sanchayan
|
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 mail_check = 0
|
||||||
set envelope_from
|
set envelope_from
|
||||||
|
|
|
@ -30,7 +30,7 @@ path=/home/core/Gmail
|
||||||
#
|
#
|
||||||
[user]
|
[user]
|
||||||
name=Sanchayan Maity
|
name=Sanchayan Maity
|
||||||
primary_email=sanchayan@nilenso.systems
|
primary_email=sanchayan@asymptotic.io
|
||||||
other_email=maitysanchayan@gmail.com;
|
other_email=maitysanchayan@gmail.com;
|
||||||
|
|
||||||
# Configuration for "notmuch new"
|
# Configuration for "notmuch new"
|
||||||
|
|
Loading…
Reference in a new issue