Mercurial > hg > mlmmj
comparison contrib/amime-receive/mlmmj-amime-receive @ 748:dfc9ab125fd4
Fix spelling of 'receive' and 'voodoo'; make mlmmj-recieve a symlink
author | Chris Webb |
---|---|
date | Sun, 03 Oct 2010 21:40:42 +1100 |
parents | edfd37c7ec4c |
children |
comparison
equal
deleted
inserted
replaced
747:fd77dd58bde1 | 748:dfc9ab125fd4 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # mlmmj-amime-receive | 3 # mlmmj-amime-receive |
4 # | 4 # |
5 # Take mail from stdin, pipe it through altermime and then to mlmmj-recieve | 5 # Take mail from stdin, pipe it through altermime and then to mlmmj-receive |
6 # needed to add footers in a MIME-aware way | 6 # needed to add footers in a MIME-aware way |
7 # | 7 # |
8 # requires altermime, see http://www.pldaniels.com/altermime/ | 8 # requires altermime, see http://www.pldaniels.com/altermime/ |
9 # | 9 # |
10 # just replace mlmmj-recieve (sic) with mlmmj-amime-receive, e.g. in /etc/aliases: | 10 # just replace mlmmj-receive with mlmmj-amime-receive, e.g. in /etc/aliases: |
11 # myml: "|/usr/bin/mlmmj-amime-receive -L /var/spool/mlmmj/myml/" | 11 # myml: "|/usr/bin/mlmmj-amime-receive -L /var/spool/mlmmj/myml/" |
12 # | 12 # |
13 # put the footer-text for the different MIME-types into | 13 # put the footer-text for the different MIME-types into |
14 # control/amime-footer-text | 14 # control/amime-footer-text |
15 # control/amime-footer-html | 15 # control/amime-footer-html |
18 # Copyright 2008 by Gerd v. Egidy, <gerd@egidy.de> | 18 # Copyright 2008 by Gerd v. Egidy, <gerd@egidy.de> |
19 # | 19 # |
20 # Licensed under MIT License, see LICENSE file coming with mlmmj | 20 # Licensed under MIT License, see LICENSE file coming with mlmmj |
21 # | 21 # |
22 | 22 |
23 MLMMJRECIEVE=/usr/bin/mlmmj-recieve | 23 MLMMJRECEIVE=/usr/bin/mlmmj-receive |
24 ALTERMIME=/usr/bin/altermime | 24 ALTERMIME=/usr/bin/altermime |
25 | 25 |
26 # check executables | 26 # check executables |
27 if ! [ -x $MLMMJRECIEVE ]; then | 27 if ! [ -x $MLMMJRECEIVE ]; then |
28 echo "can't find $MLMMJRECIEVE executable, aborting" | 28 echo "can't find $MLMMJRECEIVE executable, aborting" |
29 exit 1 | 29 exit 1 |
30 fi | 30 fi |
31 | 31 |
32 if ! [ -x $ALTERMIME ]; then | 32 if ! [ -x $ALTERMIME ]; then |
33 echo "can't find $ALTERMIME executable, aborting" | 33 echo "can't find $ALTERMIME executable, aborting" |
84 | 84 |
85 # go to a dir where altermime can write it's tmp-files safely | 85 # go to a dir where altermime can write it's tmp-files safely |
86 cd $MLPATH | 86 cd $MLPATH |
87 | 87 |
88 # pipe the calls | 88 # pipe the calls |
89 $ALTERMIME --input=- ${PARAM} | $MLMMJRECIEVE "$@" | 89 $ALTERMIME --input=- ${PARAM} | $MLMMJRECEIVE "$@" |