2017-03-19 13:10:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# everything needed for mutt
|
2017-05-23 14:59:31 +00:00
|
|
|
brew install gpgme
|
2017-03-19 13:10:25 +00:00
|
|
|
brew install isync
|
|
|
|
brew install msmtp
|
|
|
|
brew install mu
|
2020-01-20 13:34:15 +00:00
|
|
|
brew install neomutt
|
2017-03-19 13:10:25 +00:00
|
|
|
brew install ripmime
|
|
|
|
brew install w3m
|
|
|
|
|
|
|
|
# python dependencies (for mutt)
|
2021-03-20 20:38:43 +00:00
|
|
|
pip install urlscan
|
2017-03-19 13:10:25 +00:00
|
|
|
|
2021-03-20 20:38:43 +00:00
|
|
|
# create folders
|
2017-03-19 13:10:25 +00:00
|
|
|
mkdir ~/Mail
|
|
|
|
mkdir ~/Mail/mailbox
|
2021-03-22 10:04:28 +00:00
|
|
|
mkdir ~/Mail/mailbox/cur
|
|
|
|
mkdir ~/Mail/mailbox/new
|
|
|
|
mkdir ~/Mail/mailbox/tmp
|
2017-03-19 13:10:25 +00:00
|
|
|
mkdir ~/Mail/viu
|
2021-03-22 10:04:28 +00:00
|
|
|
mkdir ~/Mail/viu/cur
|
|
|
|
mkdir ~/Mail/viu/new
|
|
|
|
mkdir ~/Mail/viu/tmp
|
2021-03-20 20:38:43 +00:00
|
|
|
mkdir ~/Mail/===================
|
2021-03-22 10:04:28 +00:00
|
|
|
mkdir ~/Mail/===================/cur
|
|
|
|
mkdir ~/Mail/===================/new
|
|
|
|
mkdir ~/Mail/===================/tmp
|
2021-03-20 20:38:43 +00:00
|
|
|
|
|
|
|
# link config files
|
2017-03-19 13:10:25 +00:00
|
|
|
ln -s ~/dotfiles/office/mutt ~/.mutt
|
|
|
|
ln -s ~/dotfiles/office/mbsyncrc ~/.mbsyncrc
|
|
|
|
ln -s ~/dotfiles/office/msmtprc ~/.msmtprc
|
2021-03-20 20:38:43 +00:00
|
|
|
|
|
|
|
# now: create the correct keychain-entries in system keychain
|
2021-03-22 10:04:28 +00:00
|
|
|
# for the mailboxes (compare msmtp/mbsync-config, remember to
|
|
|
|
# prepend imap-ones with http:// and smtp-ones with smtp://), then:
|
|
|
|
|
|
|
|
mbsync -a
|
|
|
|
mu init -m ~/Mail
|
|
|
|
mu index
|