X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=tokens.sh;fp=tokens.sh;h=9a1faaf7cf21b31ce7aa740b6507f75c8352a23d;hb=e826fd379421938f920e7e51d2a34bf4eb3483a0;hp=0000000000000000000000000000000000000000;hpb=59c1f51ef38081d87885a37873545154c7a23e2d;p=apps%2Fpfixtools.git diff --git a/tokens.sh b/tokens.sh new file mode 100755 index 0000000..9a1faaf --- /dev/null +++ b/tokens.sh @@ -0,0 +1,151 @@ +#! /bin/sh -e + +die() { + echo "$@" 1>&2 + exit 2 +} + +do_hdr() { + cat <val : PTK_UNKNOWN; + } else { + return PTK_UNKNOWN; + } +} +EOF +} + +grep_self() { + grep '^## ' "$1" | cut -d' ' -f2 +} + +trap "rm -f $1" 1 2 3 15 +rm -f $1 +case "$1" in + *.h) do_h > $1;; + *.c) do_c > $1;; + *) die "you must ask for the 'h' or 'c' generation";; +esac +chmod -w $1 + +exit 0 + +############ Put tokens here ############ +# postfix 2.1+ +## request +## protocol_state +## protocol_esmtp +## helo_name +## queue_id +## sender +## recipient +## recipient_count +## client_address +## client_name +## rclient_name +## instance +# +# postfix 2.2+ +## sasl_method +## sasl_username +## sasl_sender +## size +## ccert_subject +## ccert_issuer +## ccsert_fingerprint +# +# postfix 2.3+ +## encryption_protocol +## encryption_cipher +## encryption_keysize +## etrn_domain