aboutsummaryrefslogblamecommitdiff
path: root/bin/executable_mailx-alias
blob: c1d961acf80ae7289271daa44e7148d2b8ab273c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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