aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-04-25 04:14:33 -0400
committerTeddy Wing2016-04-25 04:14:33 -0400
commit373a303b9cf953149c53046d003ed7ed42ffe7ba (patch)
treeb4005866a99f5ebb5cf6919224e519706342d001
parent5e18a1e5a34cac5876d43796c36e6c1369658c6e (diff)
parent7c4d7bd8bf3c35272fcdcf10285d8c2560d2a329 (diff)
downloadmutt-alias-auto-add-373a303b9cf953149c53046d003ed7ed42ffe7ba.tar.bz2
Merge branch 'add-readme'
-rw-r--r--.cargo/config2
-rw-r--r--README.md49
2 files changed, 51 insertions, 0 deletions
diff --git a/.cargo/config b/.cargo/config
new file mode 100644
index 0000000..de6ae79
--- /dev/null
+++ b/.cargo/config
@@ -0,0 +1,2 @@
+[install]
+root = "/usr/local"
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d9b739d
--- /dev/null
+++ b/README.md
@@ -0,0 +1,49 @@
+alias-auto-add
+==============
+
+Adds unique aliases to a Mutt alias file.
+
+When viewing an email in Mutt, this program is set as a display filter that
+stores an alias for the from address. Aliases will thus be generated
+automatically when reading email.
+
+The program reads an email from STDIN and tries to add an alias for the from
+address listed. If the given alias already exists, a new unique alias is
+generated and used instead. This allows us to always capture an alias even if a
+person has multiple email addresses.
+
+Inspired by W. Caleb McDaniel's aliasing script published at:
+http://wcm1.web.rice.edu/mutt-tips.html. This adds the advantage of creating a
+new unique alias for all email addresses regardless of whether the sender's name
+is duplicated.
+
+
+## Install
+A binary built for Mac OS X is available on the [releases][1] page. Download the
+binary, put it in your `PATH`, and skip to step 2.
+
+For other platforms, you'll need the [Rust][2] compiler.
+
+1. Install with `cargo`:
+
+ $ cargo install --git https://github.com/teddywing/alias-auto-add.git --root /usr/local
+
+2. Add the program as a Mutt display filter. Add the following line to your
+ `.muttrc`, specifying the location of your Mutt aliases file as an argument
+ to `alias-auto-add`:
+
+ set display_filter = /usr/local/alias-auto-add ~/.mutt/aliases
+
+
+## Uninstall
+
+ $ cargo uninstall --root /usr/local alias-auto-add
+
+
+## License
+Copyright © 2016 Teddy Wing. Licensed under the GNU GPL (see the included
+COPYING file).
+
+
+[1]: https://github.com/teddywing/alias-auto-add/releases
+[2]: https://www.rust-lang.org/