Merge branch 'master' of https://github.com/dopefishh/dotfiles
authorMart Lubbers <mart@martlubbers.net>
Mon, 10 Mar 2014 21:59:36 +0000 (22:59 +0100)
committerMart Lubbers <mart@martlubbers.net>
Mon, 10 Mar 2014 21:59:36 +0000 (22:59 +0100)
Conflicts:
README.md
install
muttrc

.bashrc
README.md
install
msmtp [new file with mode: 0644]
muttrc
offlineimaprc [new file with mode: 0644]

diff --git a/.bashrc b/.bashrc
index ac77da5..518a014 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -16,7 +16,7 @@ export COLORFGBG="default:default"
 #Colors yeeeyyyy
 alias ls='ls --color=auto'
 alias grep='grep --color=auto'
-alias email='offlineimap -c ~/.mutt/offlineimaprc -u ttyui; mutt; offlineimap -c ~/.mutt/offlineimaprc &'
+alias email='mutt'
 
 #Watch youtube videos in the terminal
 function ytview {
index 549c6b6..c1a57c9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -3,6 +3,14 @@ Yay dotfiles to share
 
 Also includes a script to install it:)
 
+<<<<<<< HEAD
+notes:
+* For msmtp I've patched my msmtp to have the --password flag included using the patch found at https://aur.archlinux.org/packages/msmtp-pwpatched/
+* In bashrc there are two functions concerning encrypted cloud storage, for more info: http://martlubbers.net/nsa-dropbox.html
+
+TODO:
+* screen, irssi
+=======
 Containts:
 - vimrc
 - i3 config including custom bar and lock
@@ -12,3 +20,4 @@ Containts:
 
 Todo:
 add offlineimap, msmtp
+>>>>>>> 35592efa3b150a2efcb320ffb12aaa66e2c1f43c
diff --git a/install b/install
index 5c8fcca..6f51c0b 100755 (executable)
--- a/install
+++ b/install
@@ -3,6 +3,11 @@ cp -if `pwd`/.vimrc ~/.vimrc
 cp -if `pwd`/.bashrc ~/.bashrc
 cp -if `pwd`/.Xresources ~/.Xresources
 cp -if `pwd`/muttrc ~/.mutt/muttrc
+<<<<<<< HEAD
+cp -if `pwd`/msmtp ~/.mutt/msmtp
+cp -if `pwd`/offlineimaprc ~/.mutt/offlineimaprc
+=======
 mkdir -p ~/.i3
 cp -if `pwd`/i3/* ~/.i3/
 cp -if `pwd`/.xinitrc ~/.xinitrc
+>>>>>>> 35592efa3b150a2efcb320ffb12aaa66e2c1f43c
diff --git a/msmtp b/msmtp
new file mode 100644 (file)
index 0000000..3473efc
--- /dev/null
+++ b/msmtp
@@ -0,0 +1,8 @@
+account net
+host mail.martlubbers.net
+port 587
+auth on 
+tls on
+tls_certcheck off
+user mart@martlubbers.net
+from mart@martlubbers.net
diff --git a/muttrc b/muttrc
index df48b41..de6534c 100644 (file)
--- a/muttrc
+++ b/muttrc
@@ -4,6 +4,10 @@ set from="mart@martlubbers.net"
 set use_from=yes
 set envelope_from=yes
 <<<<<<< HEAD
+set my_msmtp_pass=`gpg --use-agent -d ~/passwd.gpg | grep -i mail | awk '{print $3}'`
+set sendmail="/usr/local/bin/msmtp -C /home/mart/.mutt/msmtp --password=$my_msmtp_pass -f mart@martlubbers.net -a net"
+=======
+<<<<<<< HEAD
 <<<<<<< HEAD
 set sendmail="/usr/bin/msmtp --passwordeval -C /home/mart/.mutt/msmtp -f mart@martlubbers.net -a net"
 =======
@@ -12,12 +16,18 @@ set sendmail="/usr/bin/msmtp -C /home/mart/.mutt/msmtp -f mart@martlubbers.net -
 =======
 set sendmail="/usr/bin/msmtp -C /home/mart/.mutt/msmtp -f mart@martlubbers.net -a net"
 >>>>>>> 1cce2d664871e9f0f910a8f6c044c92b129b73a8
+>>>>>>> 35592efa3b150a2efcb320ffb12aaa66e2c1f43c
 set my_hdr="X-PGP-Key: http://www.martlubbers.net/mart@martlubbers.net.asc"
 
+# Macros
 # Force offlineimap to refresh in the background
-macro index,pager \CR "<shell-escape>offlineimap -c ~/.mutt/offlineimaprc &<enter>" "Force refresh"
+macro index,pager \CR "<shell-escape>offlineimap -c ~/.mutt/offlineimaprc -k Repository_Remote:password=$my_msmtp_pass &<enter>" "Force refresh"
 # Move all the mailing lists to the appropriate folder
-macro index,pager \CT "<tag-pattern>~C vim@vim.org | ~C vim_use<enter><tag-prefix-cond><save-message>=vim<enter><end-cond><tag-pattern>~C lists.debian.org<enter><tag-prefix-cond><save-message>=debian<enter><end-cond><tag-pattern>~C mutt-users@mutt.org<enter><tag-prefix-cond><save-message>=mutt<enter><end-cond><sync-mailbox>" "Clean up mailing lists"
+macro index,pager \CT "\
+<tag-pattern>~C vim@vim.org | ~C vim_use<enter><tag-prefix-cond><save-message>=vim<enter><end-cond>\
+<tag-pattern>~C lists.debian.org<enter><tag-prefix-cond><save-message>=debian<enter><end-cond>\
+<tag-pattern>~C mutt-users@mutt.org<enter><tag-prefix-cond><save-message>=mutt<enter><end-cond>\
+<sync-mailbox>" "Clean up mailing lists"
 
 # Folders
 set mbox_type=Maildir
@@ -107,7 +117,7 @@ color index brightyellow default ~N# New
 color index blue default ~T# Tagged
 color index red default ~D# Deleted
 
-#Crypto stuff
+#Crypto
 set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
 set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
 set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
diff --git a/offlineimaprc b/offlineimaprc
new file mode 100644 (file)
index 0000000..81fcc3a
--- /dev/null
@@ -0,0 +1,26 @@
+[general]
+metadata = ~/.mutt/offlineimap_meta
+accounts = net
+ui = quiet
+
+[Account net]
+localrepository = Local
+remoterepository = Remote
+
+[Repository Local]
+type = Maildir
+localfolders = ~/.mutt/mail
+
+[Repository Remote]
+type = IMAP
+remotehost = mail.martlubbers.net
+remoteuser = mart@martlubbers.net
+ssl = yes
+
+[mbnames]
+enabled = yes
+filename = ~/.mutt/mailboxes
+header = "mailboxes "
+peritem = "~/.mutt/mail/%(foldername)s/"
+sep = " "
+footer = "\n"