summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2025-01-01 03:14:19 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2025-01-01 03:14:19 +0530
commit054a2490db36734733d5515b58b1081ba668f12e (patch)
treec7e8190ecc5830df2ef6f9f07d5f9a37a3cf4db8
parent4839689a2836a2bd11a9cf598c75ec511fc89976 (diff)
(neo)mutt config for work email
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r--.config/neomutt/gmail_main6
-rw-r--r--.config/neomutt/neomuttrc13
-rw-r--r--.config/neomutt/suse_de2
3 files changed, 17 insertions, 4 deletions
diff --git a/.config/neomutt/gmail_main b/.config/neomutt/gmail_main
index 071943a..125a88a 100644
--- a/.config/neomutt/gmail_main
+++ b/.config/neomutt/gmail_main
@@ -1,3 +1,5 @@
+unmailboxes *
+
# Unset to properly repopulate the variables
unset smtp_pass
unset smtp_url
@@ -43,9 +45,9 @@ unset record
## Send options
set smtp_url=smtps://`pass show gmail/work/name`:`pass show gmail/work/mutt`@smtp.gmail.com
-set from=`pass show gmail/work/name`
+set from=`pass show gmail/work/name`@gmail.com
set hostname="gmail.com"
-set realname='listout'
+set realname='Brahmajit'
set use_from=yes
set signature="$HOME/.config/neomutt/signature"
diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc
index 372b760..55a6d5a 100644
--- a/.config/neomutt/neomuttrc
+++ b/.config/neomutt/neomuttrc
@@ -1,5 +1,5 @@
# vim: set ft=muttrc:
-set editor="/usr/bin/nvim"
+set editor="nvim"
set sendmail="/usr/bin/msmtp"
@@ -66,6 +66,15 @@ macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract
set alias_file="$HOME/.config/neomutt/aliases"
source "$HOME/.config/neomutt/aliases"
+folder-hook $folder 'source ~/.config/neomutt/suse_de'
+folder-hook $folder 'source ~/.config/neomutt/gmail_main'
+
## ACCOUNT 1
source "~/.config/neomutt/suse_de"
-# folder-hook $folder 'source ~/.config/neomutt/suse_de'
+
+## ACCOUNT 2
+# source "~/.config/neomutt/gmail_main"
+
+## Shortcuts
+macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/neomutt/suse_de<enter><change-folder>!<enter>'
+macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/neomutt/gmail_main<enter><change-folder>!<enter>'
diff --git a/.config/neomutt/suse_de b/.config/neomutt/suse_de
index 4a5888d..fd87432 100644
--- a/.config/neomutt/suse_de
+++ b/.config/neomutt/suse_de
@@ -1,3 +1,5 @@
+unmailboxes *
+
# Unset to properly repopulate the variables
unset smtp_pass
unset smtp_url