Compare commits
3 commits
d266bb3942
...
651d17c16e
Author | SHA1 | Date | |
---|---|---|---|
651d17c16e | |||
2c05b0336a | |||
9d088c1000 |
9 changed files with 8 additions and 217 deletions
|
@ -15,6 +15,10 @@ set realname = "Andrew Davidson"
|
|||
|
||||
set mbox_type = Maildir
|
||||
set folder = "~/.local/share/email/andrew@amd.im"
|
||||
mailboxes =INBOX =Archive =Sent =Trash =Spam
|
||||
mailboxes =Automatic.DMARC
|
||||
mailboxes =Lists.Money\ Stuff =Lists.NYT =Lists.SWICG =Lists.Evergreen\ MBA
|
||||
mailboxes =NeedleandFoot
|
||||
|
||||
### Mailbox Locations
|
||||
set spoolfile = "+INBOX"
|
||||
|
|
4
email/bin/sync_email.sh
Executable file
4
email/bin/sync_email.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
mbsync andrew@amd.im
|
||||
notmuch new
|
|
@ -1,32 +0,0 @@
|
|||
[addressbooks]
|
||||
[[Default]]
|
||||
path = ~/.contacts/Default
|
||||
|
||||
[general]
|
||||
debug = no
|
||||
default_action = list
|
||||
editor = vim
|
||||
merge_editor = vimdiff
|
||||
|
||||
[contact table]
|
||||
# display names by first or last name: first_name / last_name
|
||||
display = first_name
|
||||
# group by address book: yes / no
|
||||
group_by_addressbook = no
|
||||
# reverse table ordering: yes / no
|
||||
reverse = no
|
||||
# append nicknames to name column: yes / no
|
||||
show_nicknames = no
|
||||
# show uid table column: yes / no
|
||||
show_uids = no
|
||||
# sort by first or last name: first_name / last_name
|
||||
sort = last_name
|
||||
# localize dates: yes / no
|
||||
localize_dates = yes
|
||||
|
||||
[vcard]
|
||||
# Look into source vcf files to speed up search queries: yes / no
|
||||
search_in_source_files = no
|
||||
# skip unparsable vcard files: yes / no
|
||||
skip_unparsable = no
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
[general]
|
||||
status_path = "~/.vdirsyncer/status/"
|
||||
|
||||
[pair my_contacts]
|
||||
a = "my_contacts_local"
|
||||
b = "my_contacts_remote"
|
||||
collections = ["from a", "from b"]
|
||||
|
||||
[storage my_contacts_local]
|
||||
type = "filesystem"
|
||||
path = "~/.contacts/"
|
||||
fileext = ".vcf"
|
||||
|
||||
[storage my_contacts_remote]
|
||||
type = "carddav"
|
||||
|
||||
url = "https://carddav.fastmail.com"
|
||||
username.fetch = ["command", "~/bin/pw.sh", "CARDDAV_USERNAME"]
|
||||
password.fetch = ["command", "~/bin/pw.sh", "CARDDAV_PASSWORD"]
|
||||
|
|
@ -1,94 +0,0 @@
|
|||
[Background]
|
||||
Color=40,42,54
|
||||
|
||||
[BackgroundFaint]
|
||||
Color=40,42,54
|
||||
|
||||
[BackgroundIntense]
|
||||
Color=40,42,54
|
||||
|
||||
[Color0]
|
||||
Color=189,147,249
|
||||
|
||||
[Color0Faint]
|
||||
Color=189,147,249
|
||||
|
||||
[Color0Intense]
|
||||
Color=189,147,249
|
||||
|
||||
[Color1]
|
||||
Color=255,85,85
|
||||
|
||||
[Color1Faint]
|
||||
Color=255,85,85
|
||||
|
||||
[Color1Intense]
|
||||
Color=255,85,85
|
||||
|
||||
[Color2]
|
||||
Color=80,250,123
|
||||
|
||||
[Color2Faint]
|
||||
Color=80,250,123
|
||||
|
||||
[Color2Intense]
|
||||
Color=80,250,123
|
||||
|
||||
[Color3]
|
||||
Color=255,121,198
|
||||
|
||||
[Color3Faint]
|
||||
Color=255,121,198
|
||||
|
||||
[Color3Intense]
|
||||
Color=255,121,198
|
||||
|
||||
[Color4]
|
||||
Color=139,233,253
|
||||
|
||||
[Color4Faint]
|
||||
Color=139,233,253
|
||||
|
||||
[Color4Intense]
|
||||
Color=139,233,253
|
||||
|
||||
[Color5]
|
||||
Color=241,250,140
|
||||
|
||||
[Color5Faint]
|
||||
Color=241,250,140
|
||||
|
||||
[Color5Intense]
|
||||
Color=241,250,140
|
||||
|
||||
[Color6]
|
||||
Color=98,114,164
|
||||
|
||||
[Color6Faint]
|
||||
Color=98,114,164
|
||||
|
||||
[Color6Intense]
|
||||
Color=98,114,164
|
||||
|
||||
[Color7]
|
||||
Color=68,71,90
|
||||
|
||||
[Color7Faint]
|
||||
Color=68,71,90
|
||||
|
||||
[Color7Intense]
|
||||
Color=68,71,90
|
||||
|
||||
[Foreground]
|
||||
Color=248,248,242
|
||||
|
||||
[ForegroundFaint]
|
||||
Color=248,248,242
|
||||
|
||||
[ForegroundIntense]
|
||||
Color=248,248,242
|
||||
|
||||
[General]
|
||||
Description=Dracula
|
||||
Opacity=1
|
||||
Wallpaper=
|
|
@ -1,5 +0,0 @@
|
|||
#! /usr/bin/env python2
|
||||
from subprocess import check_output
|
||||
|
||||
def get_pass():
|
||||
return check_output("~/bin/pw.sh IMAP_PASSWORD", shell=True).strip("\n")
|
|
@ -1,37 +0,0 @@
|
|||
[general]
|
||||
accounts = Personal
|
||||
ui = basic
|
||||
#ui = blinkenlights
|
||||
maxsynaccounts = 1
|
||||
pythonfile = ~/.offlineimap.py
|
||||
|
||||
[mbnames]
|
||||
enabled = yes
|
||||
filename = ~/.mutt/mailboxes
|
||||
header = "mailboxes "
|
||||
peritem = "+%(foldername)s"
|
||||
sep = " "
|
||||
footer = "\n"
|
||||
|
||||
[Account Personal]
|
||||
localrepository = Local
|
||||
remoterepository = Remote
|
||||
postsynchook = notmuch new
|
||||
# autorefresh = 1
|
||||
# quick = 10
|
||||
|
||||
[Repository Local]
|
||||
|
||||
type = Maildir
|
||||
localfolders = ~/.maildir
|
||||
sep = .
|
||||
restoreatime = no
|
||||
|
||||
[Repository Remote]
|
||||
type = IMAP
|
||||
remotehost = imap.fastmail.com
|
||||
remoteuser = andrew@amdavidson.com
|
||||
remotepasseval = get_pass()
|
||||
maxconnections = 5
|
||||
keepalive = 60
|
||||
# holdconnectionopen = yes
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
echo "OS is linux"
|
||||
DISTRO=$(. /etc/os-release; echo $NAME)
|
||||
if [[ "$DISTRO" == "Fedora" ]]; then
|
||||
echo "Distro is Fedora"
|
||||
/usr/bin/offlineimap -k Repository_Remote:sslcacertfile=/etc/ssl/certs/ca-bundle.crt -c $HOME/.offlineimaprc_fastmail
|
||||
elif [[ "$DISTRO" == "Ubuntu" ]]; then
|
||||
echo "Distro is Ubuntu"
|
||||
/usr/bin/offlineimap -k Repository_Remote:sslcacertfile=/etc/ssl/certs/ca-certificates.crt -c $HOME/.offlineimaprc_fastmail
|
||||
elif [[ "$DISTRO" == "Debian GNU/Linux" ]]; then
|
||||
echo "Distro is Debian"
|
||||
/usr/bin/offlineimap -k Repository_Remote:sslcacertfile=/etc/ssl/certs/ca-certificates.crt -c $HOME/.offlineimaprc_fastmail
|
||||
else
|
||||
echo "Distro is unknown"
|
||||
/usr/bin/offlineimap -k Repository_Remote:sslcacertfile=/etc/ssl/certs/ca-certificates.crt -c $HOME/.offlineimaprc_fastmail
|
||||
fi
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
echo "OS is darwin"
|
||||
/usr/local/bin/offlineimap -k Repository_Remote:sslcacertfile=/usr/local/etc/openssl/cert.pem -c $HOME/.offlineimaprc_fastmail
|
||||
else
|
||||
echo "Offlineimap not configured to access Fastmail on $OSTYPE"
|
||||
fi
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
source ~/.env
|
||||
|
||||
echo ${!1}
|
Loading…
Reference in a new issue