Create mailing list from address only
This commit is contained in:
parent
7958a64e18
commit
3ed4226045
|
@ -82,7 +82,10 @@ esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if ! [[ $MYUSERNAME && $MAILINGLIST && $SUBJECTTAG ]]; then
|
if ! [[ $MYUSERNAME ]]; then
|
||||||
|
show_help
|
||||||
|
fi
|
||||||
|
if [ ! $MAILINGLIST && ! $SUBJECTTAG ]; then
|
||||||
show_help
|
show_help
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -104,6 +107,8 @@ fi
|
||||||
|
|
||||||
chown -R $MYUSERNAME:$MYUSERNAME $LISTDIR
|
chown -R $MYUSERNAME:$MYUSERNAME $LISTDIR
|
||||||
|
|
||||||
|
if [ ${#SUBJECTTAG} -gt 0 ]; then
|
||||||
|
# use the subject tag
|
||||||
if ! grep -q "Subject:.*()\[$SUBJECTTAG\]" $PM; then
|
if ! grep -q "Subject:.*()\[$SUBJECTTAG\]" $PM; then
|
||||||
if [[ $PUBLIC != "yes" ]]; then
|
if [[ $PUBLIC != "yes" ]]; then
|
||||||
# private emails go after the encryption stage
|
# private emails go after the encryption stage
|
||||||
|
@ -133,6 +138,9 @@ $LISTDIR/new
|
||||||
fi
|
fi
|
||||||
chown $MYUSERNAME:$MYUSERNAME $PM
|
chown $MYUSERNAME:$MYUSERNAME $PM
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
exit ${PROJECT_NAME}-addemail -u $MYUSERNAME -e $LIST_ADDRESS -g $MAILINGLIST --public $PUBLIC
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f "$MUTTRC" ]; then
|
if [ ! -f "$MUTTRC" ]; then
|
||||||
cp /etc/Muttrc $MUTTRC
|
cp /etc/Muttrc $MUTTRC
|
||||||
|
|
Loading…
Reference in New Issue