personal (4064B)
1 # vim: syntax=neomuttrc 2 # Receive 3 source secret 4 set imap_user=$my_personal_email 5 set imap_pass=$my_personal_pass_cmd 6 set folder = ~/.local/share/mail/$my_personal_email 7 set postponed = +Drafts 8 set trash = +Trash 9 set record = +Sent 10 set mbox = +Archive 11 12 # The setup with regular mutt 13 # set spoolfile = +Inbox 14 # unmailboxes * 15 # mailboxes +Inbox +Archive +Drafts +Tickets +Sent +Trash +Spam 16 # 17 # But to use notmuch, I need to use virtual mailboxes: 18 # (it's on the wishlist - https://github.com/neomutt/neomutt/issues/742) 19 unmailboxes * 20 unvirtual-mailboxes * 21 virtual-mailboxes \ 22 "Inbox (P)" "notmuch://?query=folder:$my_personal_email/Inbox" \ 23 "Archive (2M) (P)" "notmuch://?query=folder:$my_personal_email/Archive and date:2M..today" \ 24 "Drafts (P)" "notmuch://?query=folder:$my_personal_email/Drafts" \ 25 "Follow-up (P)" "notmuch://?query=folder:/$my_personal_email/ and tag:followup" \ 26 "Tickets (P)" "notmuch://?query=folder:$my_personal_email/Tickets" \ 27 "Sent (P)" "notmuch://?query=folder:$my_personal_email/Sent" \ 28 "Trash (P)" "notmuch://?query=folder:$my_personal_email/Trash" \ 29 "Spam (P)" "notmuch://?query=folder:$my_personal_email/Spam" \ 30 "Archive (All) (P)" "notmuch://?query=folder:$my_personal_email/Archive" 31 32 set spoolfile = "Inbox (P)" 33 34 set header_cache = '~/.cache/mutt/$my_personal_email/headers' 35 set message_cachedir = '~/.cache/mutt/$my_personal_email/bodies' 36 37 # Send 38 set realname=$my_name 39 set from=$my_personal_email 40 set sendmail="msmtp -a $my_personal_email" 41 set sendmail_wait = 0 42 alias me $realname <$my_personal_email> 43 set signature="" 44 set ssl_force_tls = yes 45 set ssl_starttls = yes 46 47 # Hook -- IMPORTANT! 48 account-hook $folder "set imap_user=$my_personal_email imap_pass=$my_personal_pass_cmd" 49 50 # Retrieve new email 51 macro index O "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_personal_email && notmuch-hook<enter>" "run mbsync to sync $my_personal_email" 52 macro index o "<shell-escape>mbsync -c ~/.config/mbsync/mbsyncrc $my_personal_email:INBOX,Sent && notmuch-hook<enter>" "run mbsync to sync all mail" 53 54 # Delete 55 macro index,pager d "\ 56 <delete-message>\ 57 <modify-labels-then-hide>-inbox -archive -draft -spam +trash -sent -unread<enter>" 58 59 # Actually delete 60 bind index,pager D purge-message 61 62 # Undelete 63 macro index,pager u "\ 64 <undelete-message>\ 65 <modify-labels-then-hide>-trash<enter>" 66 67 # Changing folders 68 macro index,pager gi "<change-vfolder>Inbox (P)<enter>" "go to Inbox" 69 macro index,pager ga "<change-vfolder>Archive (2M) (P)<enter>" "go to recent Archive" 70 macro index,pager gA "<change-vfolder>Archive (All) (P)<enter>" "go to Archive" 71 macro index,pager gd "<change-vfolder>Drafts (P)<enter>" "go to Drafts" 72 macro index,pager gj "<change-vfolder>Spam (P)<enter>" "go to Spam" 73 macro index,pager gt "<change-vfolder>Trash (P)<enter>" "go to Trash" 74 macro index,pager gs "<change-vfolder>Sent (P)<enter>" "go to Sent" 75 76 # Moving emails 77 macro index,pager a "<modify-labels>-inbox +archive -draft -spam -trash -sent -unread<enter><tag-prefix><save-message>=Archive<enter><sync-mailbox>" "move mail to Archive" 78 macro index,pager MA "<modify-labels>-inbox +archive -draft -spam -trash -sent -unread<enter><tag-prefix><save-message>=Archive<enter><sync-mailbox>" "move mail to Archive" 79 macro index,pager MI "<modify-labels>+inbox -archive -draft -spam -trash -sent -unread<enter><tag-prefix><save-message>=Inbox<enter><sync-mailbox>" "move mail to Inbox" 80 macro index,pager MD "<modify-labels>-inbox -archive +draft -spam -trash -sent -unread<enter><tag-prefix><save-message>=Drafts<enter><sync-mailbox>" "move mail to Drafts" 81 macro index,pager MJ "<modify-labels>-inbox -archive -draft +spam -trash -sent -unread<enter><tag-prefix><save-message>=Spam<enter><sync-mailbox>" "move mail to Spam" 82 macro index,pager MT "<modify-labels>-inbox -archive -draft -spam +trash -sent -unread<enter><tag-prefix><save-message>=Trash<enter><sync-mailbox>" "move mail to Trash" 83 macro index,pager MS "<modify-labels>-inbox -archive -draft -spam -trash +sent -unread<enter><tag-prefix><save-message>=Sent<enter><sync-mailbox>" "move mail to Sent"