diff options
| author | Teddy Wing | 2016-04-25 04:13:34 -0400 |
|---|---|---|
| committer | Teddy Wing | 2016-04-25 04:13:34 -0400 |
| commit | 7c4d7bd8bf3c35272fcdcf10285d8c2560d2a329 (patch) | |
| tree | b4005866a99f5ebb5cf6919224e519706342d001 | |
| parent | 478e6f1e3771166702712b372fc996be4639ab23 (diff) | |
| download | mutt-alias-auto-add-7c4d7bd8bf3c35272fcdcf10285d8c2560d2a329.tar.bz2 | |
Add README
Initial draft of the README. Include a description of the program,
installation and uninstallation directions, and license information.
| -rw-r--r-- | README.md | 49 |
1 files changed, 49 insertions, 0 deletions
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/ |
