mutt: Update mutt config

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-01-01 14:03:31 +05:30
parent 651c554452
commit d29f4e0e27
2 changed files with 3 additions and 17 deletions

View file

@ -1,14 +0,0 @@
set from = "sanchayan.maity@toradex.com"
set sendmail = "/usr/bin/msmtp -a Toradex"
set mbox = "+Toradex/archive"
set postponed = "+Toradex/drafts"
set record = "+Toradex/Sent"
macro index D \
"<save-message>+Toradex/Trash<enter>" \
"move message to the trash"
macro index S \
"<save-message>+Toradex/Spam<enter>" \
"mark message as spam"

View file

@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
imapfilter -c /home/sanchayan/.imapfilter/config.lua imapfilter -c /home/core/.imapfilter/config.lua
mbsync -Va mbsync -Va
notmuch new notmuch new
export DISPLAY=:0 export DISPLAY=:0
let inbox=`ls /home/sanchayan/Mail/Inbox/new/|wc -l` let inbox=`ls /home/core/Mail/Inbox/new/|wc -l`
if (("$inbox" > 0)); then if (("$inbox" > 0)); then
sudo -u sanchayan DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "You have sudo -u core DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "You have
$inbox new mails in Inbox" $inbox new mails in Inbox"
fi fi