diff options
| author | Brahmajit Das <listout@listout.xyz> | 2025-05-23 20:24:08 +0000 |
|---|---|---|
| committer | Brahmajit Das <listout@listout.xyz> | 2025-05-23 20:24:08 +0000 |
| commit | 7530dcdfa4f50b0ec5fc87dfb6a09b9cc0ee2f93 (patch) | |
| tree | b89983d367430e3489cc4128a39b9c71e3b22b54 /.config/neomutt | |
| parent | 52b5651e344a5bdefa862a281c2d5a8ba74ff202 (diff) | |
| download | dots-7530dcdfa4f50b0ec5fc87dfb6a09b9cc0ee2f93.tar.gz | |
neomutt: gmail: gmail config for offline imap setup
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to '')
| -rw-r--r-- | .config/neomutt/gmail_main | 51 |
1 files changed, 17 insertions, 34 deletions
diff --git a/.config/neomutt/gmail_main b/.config/neomutt/gmail_main index bf548dc..859a20f 100644 --- a/.config/neomutt/gmail_main +++ b/.config/neomutt/gmail_main @@ -6,55 +6,38 @@ unset smtp_url unset smtp_user unset from unset hostname - -# Receive options -set imap_pass="`pass show gmail/work/mutt`" -set imap_user="`pass show gmail/work/name`"@gmail.com -set folder=imaps://`pass show gmail/work/name`@imap.gmail.com/ -set spoolfile=+INBOX -set record="+[Gmail]/Sent Mail" -set postponed="+[Gmail]/Drafts" -mailboxes =INBOX =[Gmail]/Sent\ Mail =[Gmail]/Drafts =[Gmail]/Spam =[Gmail]/Trash -set imap_check_subscribed +unset realname set edit_headers=yes -set ssl_force_tls=yes -set ssl_starttls -# Show lable in mailbox -mailboxes =gsoc # lable name -mailboxes "imaps://`pass show gmail/work/name`@imap.gmail.com/gsoc" +set realname = "Brahmajit Das" +set from = brahmajit.xyz@gmail.com set header_cache = "$XDG_CACHE_HOME/neomutt/headers/" set message_cachedir = "$XDG_CACHE_HOME/neomutt/bodies/" -set certificate_file = "$XDG_CACHE_HOME/neomutt/certificates/" - -# specify where to save and/or look for postponded messages -set postponed=+[Gmail]/Drafts +#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_keep_alive=300 +set folder=~/.local/share/email/gmail +set mbox_type=Maildir +set spoolfile=+INBOX +#mailboxes `find ~/.local/share/email/gmail -type d -name cur | xargs -I {} dirname "{}"` +mailboxes ~/.local/share/email/gmail/INBOX +mailboxes ~/.local/share/email/gmail/linux-acpi +mailboxes ~/.local/share/email/gmail/linux-kernel +mailboxes ~/.local/share/email/gmail/[Gmail]/Sent\ Mail +set record="+[Gmail]/Sent Mail" -# how often to check check for new email -set mail_check=120 +set sendmail = "msmtp -a gmail" # gmail automatically saves sent emails, so we avoid duplicates unset record -## Send options -set smtp_url=smtps://`pass show gmail/work/name`@smtp.gmail.com -set smtp_pass="`pass show gmail/work/mutt`" -set from=`pass show gmail/work/name`@gmail.com -set hostname="gmail.com" -set realname='Brahmajit' -set use_from=yes +# synchronization settings ['s' to sync] +macro index S "<shell-escape>mbsync -V gmail<enter>" "sync email" set signature="$HOME/.config/neomutt/signature" ## Hook -account-hook $folder "set imap_user=`pass show gmail/work/name`@gmail.com imap_pass=`pass show gmail/work/mutt`" +#account-hook $folder "set imap_user=listout@listout.xyz imap_pass=`pass show mailbox.org/pass`" # vim: set ft=muttrc: |
