Permalink
Browse files

Migrate from live-email to imap via mutt

  • Loading branch information...
frioux committed Jan 16, 2018
1 parent e0fea7b commit 2195e92bfa265c59d8002e00c987c4cdbc73f625
Showing with 26 additions and 107 deletions.
  1. +1 −1 README.mdwn
  2. +0 −4 bin/README.mdwn
  3. +6 −0 bin/imap-mutt
  4. +0 −100 bin/live-email
  5. +1 −1 bin/mutt
  6. +6 −0 bin/zr-imap-mutt
  7. +10 −0 mutt/imap
  8. +1 −0 mutt/personal
  9. +1 −0 mutt/zr
  10. +0 −1 muttrc
@@ -19,7 +19,7 @@

git clone https://github.com/neomutt/neomutt
cd neomutt
./prepare --enable-notmuch --with-lmdb --prefix=/opt --disable-pgp --disable-smime && \
./configure --enable-notmuch --lmdb --ssl --prefix=/opt && \
make && \
sudo make install

@@ -209,10 +209,6 @@ Same as above, but not written by me.
Weird cronjob to munge In-Reply-To headers so that certain emails with thread
better. Should be ported to AppScript.

### `live-email`

List and view emails directly via IMAP. `live-email -h` for more details.

### `mail-picture`

Creates resized copies of all passed filenames to `1024x768` and initiates a new
@@ -0,0 +1,6 @@
#!/bin/sh

export MAILPROFILE=imap
export IMAP_USER=frioux@gmail.com

exec mutt

This file was deleted.

Oops, something went wrong.
@@ -1,5 +1,5 @@
#!/bin/sh

export MAILPROFILE=personal
export MAILPROFILE="${MAILPROFILE:-personal}"

exec /opt/bin/neomutt "$@"
@@ -0,0 +1,6 @@
#!/bin/sh

export MAILPROFILE=imap
export IMAP_USER=frew@ziprecruiter.com

exec mutt
@@ -0,0 +1,10 @@
set ssl_force_tls = yes
set imap_user = $IMAP_USER
set imap_pass = `netrc-password imap.gmail.com $IMAP_USER`
set folder = imaps://imap.gmail.com/
set spoolfile = imaps://imap.gmail.com/INBOX
set header_cache = ~/tmp/$MAILPROFILE-bodies
set move = no
set imap_keepalive = 900

# vim: ft=muttrc
@@ -5,6 +5,7 @@ set reverse_name = yes
alternates '^frew@mitsi.com$' '^frioux@gmail.com$' 'frew.co$' 'afoolishmanifesto.com$' '^FREW@cpan.org$'

mailboxes `find ~/var/mail -maxdepth 1 -type d -printf "+%f | grep -v Trash"`
set spoolfile = +INBOX

macro index,pager im "<change-folder>=mitsi<enter>" "view mitsi list"
macro index,pager iw "<change-folder>=mitsi.work<enter>" "view mitsi.work"
@@ -3,6 +3,7 @@ set folder = "$HOME/var/zr-mail"
alternates '^frew@ziprecruiter.com$' '^arthur@ziprecruiter.com$'

mailboxes `find ~/var/zr-mail -maxdepth 1 -type d -printf "+%f | grep -v Trash"`
set spoolfile = +INBOX

reply-hook '~s ".*"' 'set editor="vim"'
reply-hook '~s "Production errors from yesterday"' 'set editor="maybe-snip vim"'
1 muttrc
@@ -87,6 +87,5 @@ push <show-version>

source ~/.mutt-overrides
source ~/.mutt/$MAILPROFILE
set spoolfile = +INBOX

# vim: ft=muttrc

0 comments on commit 2195e92

Please sign in to comment.