diff --git a/install/4_office.sh b/install/4_office.sh index d30e153e..258b3487 100755 --- a/install/4_office.sh +++ b/install/4_office.sh @@ -3,31 +3,39 @@ # everything needed for mutt brew install gpgme brew install isync -brew install khard brew install msmtp brew install mu brew install neomutt brew install ripmime brew install w3m -brew install vdirsyncer # python dependencies (for mutt) pip install urlscan # create folders -mkdir ~/Contacts mkdir ~/Mail mkdir ~/Mail/mailbox +mkdir ~/Mail/mailbox/cur +mkdir ~/Mail/mailbox/new +mkdir ~/Mail/mailbox/tmp mkdir ~/Mail/viu +mkdir ~/Mail/viu/cur +mkdir ~/Mail/viu/new +mkdir ~/Mail/viu/tmp mkdir ~/Mail/=================== +mkdir ~/Mail/===================/cur +mkdir ~/Mail/===================/new +mkdir ~/Mail/===================/tmp # link config files ln -s ~/dotfiles/office/mutt ~/.mutt ln -s ~/dotfiles/office/mbsyncrc ~/.mbsyncrc ln -s ~/dotfiles/office/msmtprc ~/.msmtprc -ln -s ~/dotfiles/office/khard ~/.config/khard -ln -s ~/dotfiles/office/vdirsyncer ~/.vdirsyncer # now: create the correct keychain-entries in system keychain -# for the mailboxes (compare msmtp/mbsync-config) and start -# the first sync with "O". Usually install 1password first ;) +# 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 diff --git a/office/khard/khard.conf b/office/khard/khard.conf deleted file mode 100644 index e692da1f..00000000 --- a/office/khard/khard.conf +++ /dev/null @@ -1,18 +0,0 @@ -[addressbooks] -[[mailbox]] -path = ~/Contacts/27 - -[general] -debug = no -default_action = list -editor = nvim -merge_editor = vimdiff - -[contact table] -display = first_name -sort = first_name - -[vcard] -preferred_version = 3.0 -search_in_source_files = no -skip_unparsable = no diff --git a/office/mutt/muttrc b/office/mutt/muttrc index e910125f..6ee15599 100644 --- a/office/mutt/muttrc +++ b/office/mutt/muttrc @@ -51,9 +51,8 @@ set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" set send_charset = "utf-8:iso-8859-1:us-ascii" set charset = "utf-8" -# when composing emails, use this command to get addresses from -# the addressbook with khard first, and everything else from mu index -set query_command = "( khard email --parsable '%s' | sed -n '1!p'; mu cfind --format=mutt-ab '%s' )" +# when composing emails, use this command to get addresses from mu +set query_command = "mu cfind --format=mutt-ab '%s'" # Pager View Options set pager_index_lines = 10 diff --git a/office/vdirsyncer/config b/office/vdirsyncer/config deleted file mode 100644 index b8831018..00000000 --- a/office/vdirsyncer/config +++ /dev/null @@ -1,18 +0,0 @@ -[general] -status_path = "~/.vdirsyncer/status/" - -[pair mailboxcontacts] -a = "mailboxcontacts_local" -b = "mailboxcontacts_remote" -collections = ["from a", "from b"] - -[storage mailboxcontacts_local] -type = "filesystem" -path = "~/Contacts/" -fileext = ".vcf" - -[storage mailboxcontacts_remote] -type = "carddav" -url = "https://dav.mailbox.org" -username = "s.rademacker@mailbox.org" -password.fetch = ["command", "~/dotfiles/office/getpassword.sh"]