From a9e6361a4f1a3032dc209a3175a1206943f1751a Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 25 Jul 2013 08:34:01 -0400 Subject: Added mailx-alias script which converts mutt aliases to mailx aliases --- bin/mailx-alias | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/mailx-alias (limited to 'bin/mailx-alias') diff --git a/bin/mailx-alias b/bin/mailx-alias new file mode 100755 index 0000000..c1d961a --- /dev/null +++ b/bin/mailx-alias @@ -0,0 +1,13 @@ +#!/bin/sh + +MUTT_ALIAS=${HOME}/.mutt/alias.rc +MAILX_ALIAS=${HOME}/.mailx-aliases.rc + +awk '{ + NAME=""; + for (i = 3; i < NF; i++) { + NAME=NAME " " $i; + }; + NAME = substr(NAME, 2); + print "alias", $2, "\"" $NF, "(" NAME ")\""; +}' $MUTT_ALIAS > $MAILX_ALIAS -- cgit v1.2.3