SYNOPSIS

int MGOsetmail (Subscription *sub, int opts)

DESCRIPTION

The MGOsetmail() function sets the mail forwarding address for a uwnetid, according to the rules specified here. Information is passed through sub and returned through the linked list lst. The required fields are:

sub.uwnetid is the uwnetid name. sub.subscription_code is the subscription reference code for the mail forwarding subscription. sub.subscription_data is the mail forwarding address. If specified as "*", it will be set wisely by the server. opts can be one or more of:

Note: Upon successful return, the sub.subscription_data field will be set to the resultant forwarding address.

RETURN VALUE

Returns 1 upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).

ERRORS

AUTHENTICATION LEVEL

wmango

SEE ALSO

MGOgetmail(), MGOselrsubscription(), MGOzero()