Name
type — test the type of the value in a Sieve variable
Synopsis
type
{ variable
} { string
}
Description
Some actions (such as ec_config
) can return more than one type of value. Use this test to check the type of the value in a Sieve variable. Possible types are:
-
"string"
-
"number"
-
"stringlist"
-
"hash"
-
"tag"
$opt = ec_config "get" "Debug_Flags" "DEBUG"; # first, see if the option was set if type :is $opt "stringlist" { # now check the option value $dummy = join "," $opt; if ec_test $dummy "SMTP" { ec_log "SMTP debugging is turned on"; } }
Was this page helpful?