ModifyVacationRule()

Modifies a user’s vacation rule.

Token ID

BFTKN_MODIFY_VACATION_RULE or 1251

Syntax

VOID ModifyVacationRule(
     ANSISTRING Name;
     ANSISTRING Subject;
     ANSISTRING Message;
     BOOL IsActive;
     [DWORD] StartDate;
     [DWORD] EndDate;
     BOOL MarkBusy;
     BOOL ReplyToExternalUsers)

Parameters

Name As ANSISTRING

The name of the vacation rule. This may be obtained by calling FindVacationRule().

Subject As ANSISTRING

The subject of the email message to send in response to email that arrives while the user is on vacation.

Message As ANSISTRING

The message body of the email message to send in response to email that arrives while the user is on vacation.

IsActive As BOOL

TRUE to activate rule, FALSE to deactivate it.

StartDate As DWORD

(Optional) The date from which the rule will be active. If this is not set then the rule is active immediately until it is manually disabled.

EndDate As DWORD

(Optional) The date from which the rule is active. If this is not set then the rule is active immediately until it is manually disabled.

MarkBusy As BOOL

Set to TRUE to automatically create an All-Day-Event that will block the user’s schedule for the duration of the time that the user is on vacation.

ReplyToExternalUsers As BOOL

TRUE indicates that a vacation response should be sent to external users. FALSE indicates that vacation response should only be sent to users on the same GroupWise system.