SYNOPSIS

int MGOgetmail (Subscription **lst, Subscription *sub)

DESCRIPTION

The MGOgetmail() function gets the mail forwarding address for a uwnetid. 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. The following fields are set for each matched subscription: lst.subscription_data contains the mail forwarding address. An empty field means that mail will not be forwarded.

RETURN VALUE

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

ERRORS

AUTHENTICATION LEVEL

none

SEE ALSO

MGOfreesubscription(), MGOselrsubscription(), MGOsetmail(), MGOzero()