# this will be printed to STDOUT, so no indentation here
echo "
- quit quit the admin prompt
- help show this help
- list show list subscribers
- config list configuration
- info EMAIL-ADDRESS show info of a given subscriber
- sendkey SUBSCRIBER send list pubkey to subscriber
- subscribe [..] subscribe users ('subscribe help' for options)
- use EMAIL-ADDRESS use the given address for message delivery instead
- of the primary address on key
- unsub EMAIL-ADDRESS unsubscribe an email from the list
+ quit quit the admin prompt
+ help show this help
+ list show list subscribers
+ listinfo show list information
+ config list configuration
+ info EMAIL-ADDRESS show info of a given subscriber
+ sendkey SUBSCRIBER send list pubkey to subscriber
+ sub|subscribe [..] subscribe users ('subscribe help' for options)
+ unsub|unsubscribe EMAIL-ADDRESS unsubscribe an email from the list
+ use EMAIL-ADDRESS use the given address for message delivery instead
+ of the primary address on key
"
}
AdminLog "$1: missing arguments (try \"help\")"
return_code=1
;;
- unsub)
+ unsub|unsubscribe)
AdminLog "$1: missing arguments (try \"help\")"
return_code=1
;;
AdminLog " $subscriber"
done
;;
- subscribe)
+ sub|subscribe)
AdminLog "$1: missing arguments (try \"$1 help\")"
return_code=1
;;
AdminLog "$1: missing arguments (try \"help\")."
return_code=1
;;
+ listinfo)
+ GetSubscribersInfo $LIST_ADDRESS
+ ;;
config)
AdminLog "$1: missing arguments (try \"$1 help\")."
return_code=1
return_code=1
fi
;;
- unsub)
+ unsub|unsubscribe)
UnsubscribeUser $2
return_code=$?
;;
- subscribe)
+ sub|subscribe)
SubscribeUsers $2
return_code=$?
;;
GetSubscribersInfo $2
return_code=$?
;;
+ listinfo)
+ AdminLog "$1: too many arguments -- $@ (try \"help\")"
+ return_code=1
+ ;;
config)
if [ "$2" == "help" ]; then
ConfigHelp
AdminLog "$1: too many arguments -- $@ (try \"help\")"
return_code=1
;;
- subscribe)
+ sub|subscribe)
shift
SubscribeUsers $*
return_code=$?
GetSubscribersInfo $*
return_code=$?
;;
+ listinfo)
+ AdminLog "$1: too many arguments -- $@ (try \"help\")"
+ return_code=1
+ ;;
*)
AdminLog "Command not found -- $1 (try \"help\")"
return_code=1