My dotfiles for my Linux rice managed with stow and make
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

#Change these for your Gmail:
set realname = "Micah Halter"
set from = ""
set mbox_type = Maildir
set sendmail = "/bin/sh sendmail gmail"
set folder = "$XDG_DATA_HOME/Mail/Gmail"
set spoolfile = "+INBOX"
set record = /dev/null
set mbox = "+[Gmail].other"
set trash = "+[Gmail].Trash"
set postponed = "+[Gmail].Drafts"
unmailboxes *
mailboxes =INBOX =other =[Gmail].Drafts =[Gmail].Sent\ Mail =[Gmail].Trash
set query_command="khard email -a Contacts --parsable %s"
macro index i "<shell-escape>mbsync -c $XDG_CONFIG_HOME/isync/mbsyncrc gmail<enter>" "sync current inbox"
macro index A ":set confirmappend=no delete=yes resolve=no\n<clear-flag>N<tag-prefix><save-message>=other<enter><sync-mailbox>:set confirmappend=yes delete=ask-yes resolve=yes\n" "Archive Message"
macro pager A ":set confirmappend=no delete=yes resolve=no\n<save-message>=other<enter><sync-mailbox>:set confirmappend=yes delete=ask-yes resolve=yes\n" "Archive Message"
bind index g noop
macro index gi "<change-folder>=INBOX<enter><collapse-all>" "Go to inbox"
macro index ga "<change-folder>=other<enter>" "Go to all mail"
macro index gs "<change-folder>=[Gmail].Sent Mail<enter>" "Go to sent mail"
macro index gt "<change-folder>=[Gmail].Trash<enter>" "Go to trash"
macro index gd "<change-folder>=[Gmail].Drafts<enter>" "Go to drafts"