summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2025-03-02 18:20:44 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2025-03-02 18:24:28 +0530
commit700a566c0b4d77cdbf9123e423c50c286d4fb802 (patch)
tree2140a9f8979b37ce8a1e0080736ddaf6efe36281
parent94c4dc812ddf7b4c1a97da74ac3ed4e65018e07d (diff)
neomuttrc: adding listout.xyz account
- Make suse.de second account - listout.xyz is primary account from now Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r--.config/neomutt/listout46
-rw-r--r--.config/neomutt/neomuttrc7
2 files changed, 50 insertions, 3 deletions
diff --git a/.config/neomutt/listout b/.config/neomutt/listout
new file mode 100644
index 0000000..24c5281
--- /dev/null
+++ b/.config/neomutt/listout
@@ -0,0 +1,46 @@
+unmailboxes *
+
+# Unset to properly repopulate the variables
+unset smtp_pass
+unset smtp_url
+unset smtp_user
+unset from
+unset hostname
+
+# Receive options
+set imap_pass="`pass show mailbox.org/pass`"
+set imap_user="listout@mailbox.org"
+set folder=imaps://imap.mailbox.org:993
+set spoolfile=+INBOX
+set record=+Sent
+set postponed=+Drafts
+mailboxes =INBOX
+set imap_check_subscribed
+
+set edit_headers=yes
+set ssl_force_tls=yes
+set ssl_starttls
+
+set header_cache = "$XDG_CACHE_HOME/neomutt/headers/"
+set message_cachedir = "$XDG_CACHE_HOME/neomutt/bodies/"
+set certificate_file = "$XDG_CACHE_HOME/neomutt/certificates/"
+
+# allow mutt to open a new IMAP connection autmatically
+unset imap_passive
+
+# keep imap connection alive by polling intermittently
+set imap_keepalive=300
+
+# how often to check check for new email
+set mail_check=2
+
+## Send options
+set smtp_url=smtp://listout@mailbox.org@smtp.mailbox.org:587/
+set smtp_pass="`pass show mailbox.org/pass`"
+set from="listout@listout.xyz"
+set use_from=yes
+
+## Hook
+account-hook $folder "set imap_user=listout@listout.xyz imap_pass=`pass show mailbox.org/pass`"
+
+# vim: set ft=muttrc:
diff --git a/.config/neomutt/neomuttrc b/.config/neomutt/neomuttrc
index 55a6d5a..1df4169 100644
--- a/.config/neomutt/neomuttrc
+++ b/.config/neomutt/neomuttrc
@@ -70,11 +70,12 @@ folder-hook $folder 'source ~/.config/neomutt/suse_de'
folder-hook $folder 'source ~/.config/neomutt/gmail_main'
## ACCOUNT 1
-source "~/.config/neomutt/suse_de"
+source "~/.config/neomutt/listout"
## 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>'
+macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/neomutt/listout<enter><change-folder>!<enter>'
+macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/neomutt/suse_de<enter><change-folder>!<enter>'
+macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/neomutt/gmail_main<enter><change-folder>!<enter>'