Merge branch 'main' into uzi
This commit is contained in:
commit
b174126447
5 changed files with 46 additions and 6 deletions
15
email/.config/goimapnotify/goimapnotify.yaml
Normal file
15
email/.config/goimapnotify/goimapnotify.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
configurations:
|
||||
-
|
||||
host: mail.amd.im
|
||||
port: 993
|
||||
tls: true
|
||||
tlsOptions:
|
||||
rejectUnauthorized: false
|
||||
starttls: false
|
||||
username: andrew@amd.im
|
||||
passwordCMD: 'pass show email/amd.im/andrew'
|
||||
boxes:
|
||||
-
|
||||
mailbox: INBOX
|
||||
onNewMail: "/home/amd/.local/bin/sync_email.sh"
|
||||
onNewMailPost: 'notify-send --app-name neomutt --icon=mail-message-new --category=email.arrived "New email in inbox."'
|
|
@ -1,2 +1,2 @@
|
|||
text/html; $BROWSER %s
|
||||
text/html; w3m -sixel -o confirm_qq=false -o auto_image=TRUE -o display_image=1 -T text/html %s; nametemplate=%s.html; needsterminal
|
||||
text/html; w3m -I %{charset} -T text/html -dump; copiousoutput;
|
||||
|
|
|
@ -4,16 +4,20 @@ set realname = "Andrew Davidson"
|
|||
|
||||
|
||||
#### Remote Connectivity
|
||||
set imap_user = "andrew@amd.im"
|
||||
set imap_pass = "`pass show email/amd.im/andrew`"
|
||||
set smtp_url = "smtps://$imap_user:$imap_pass@mail.amd.im:465"
|
||||
|
||||
|
||||
#### Remote email store
|
||||
#### use this instead of the local storage section below.
|
||||
#set imap_user = "andrew@amd.im"
|
||||
#set imap_pass = "`pass show email/amd.im/andrew`"
|
||||
#set folder = "imaps://mail.amd.im"
|
||||
#set smtp_url = "smtps://$imap_user:$imap_pass@mail.amd.im:465"
|
||||
#set ssl_starttls = no
|
||||
#set ssl_force_tls = yes
|
||||
#set imap_check_subscribed # automatically check subscribed folders
|
||||
#mailboxes +INBOX
|
||||
|
||||
|
||||
#### Local storage of emails
|
||||
#### Use this with isync/mbsync to store email locally
|
||||
set mbox_type = Maildir
|
||||
|
@ -22,7 +26,7 @@ mailboxes =INBOX =Archive =Sent =Trash =Spam
|
|||
mailboxes =Automatic.DMARC
|
||||
mailboxes =Lists.Money\ Stuff =Lists.NYT =Lists.SWICG =Lists.Evergreen\ MBA
|
||||
mailboxes =NeedleandFoot
|
||||
macro index $ "<shell-escape>mbsync andrew@amd.im<enter>notmuch new<enter>" "sync email"
|
||||
macro index,pager <F6> "<shell-escape>~/.local/bin/sync_email.sh<enter>" "sync email"
|
||||
macro index \\\\ "<vfolder-from-query>" "Search mail"
|
||||
|
||||
|
||||
|
@ -64,12 +68,17 @@ set editor = "nvim" # we know we want to edit in nvim
|
|||
unset confirmappend # don't double check when moving messages
|
||||
set reverse_alias # if an alias is set for a contact, use that
|
||||
set pager_index_lines = 10 # Shows 10 lines of index when pager is active
|
||||
set editor = nvim # use neovim, of course.
|
||||
save-hook . '=Archive' # Save to archive folder by default
|
||||
set wait_key=no # dont wait for a key after a command runs (like sync)
|
||||
set delete=yes # automatically expunge when syncing
|
||||
|
||||
|
||||
### Multipart handling
|
||||
set mailcap_path = "~/.config/neomutt/mailcap"
|
||||
auto_view text/html
|
||||
alternative_order text/plain text/enriched text/html
|
||||
macro attach 'V' "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt-mail.html<enter><shell-escape>librewolf ~/.cache/mutt-mail.html<enter>"
|
||||
|
||||
|
||||
### Message threading
|
||||
|
@ -97,6 +106,8 @@ bind index k previous-entry
|
|||
bind pager j next-line
|
||||
bind pager k previous-line
|
||||
|
||||
bind index,pager <F5> sync-mailbox
|
||||
|
||||
bind attach,index,pager \CD next-page
|
||||
bind attach,index,pager \CU previous-page
|
||||
bind pager g top
|
||||
|
|
14
email/.config/systemd/user/goimapnotify.service
Normal file
14
email/.config/systemd/user/goimapnotify.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=start goimapnotify
|
||||
# OnFailure=status-email-user@%n.service
|
||||
After=local-fs.target
|
||||
After=network.target
|
||||
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=300
|
||||
ExecStart=/usr/bin/goimapnotify
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -9,7 +9,7 @@ other_email=andrew@amdavidson.com amdavids@calpoly.edu amdavidson@gmail.com
|
|||
|
||||
[new]
|
||||
tags=unread;inbox;
|
||||
ignore=
|
||||
ignore=.uidvalidity;.mbsyncstate
|
||||
|
||||
[search]
|
||||
exclude_tags=deleted;spam;
|
||||
|
|
Loading…
Reference in a new issue