Novell is now a part of Micro Focus

I'm using the GroupWise C Administrative Object API...

Articles and Tips: qna

01 Apr 2003


Q.

I'm using the GroupWise C Administrative Object API to expire and enable mailboxes. My problem is that the only way that I can enable the mailbox is to set the date in put_MailboxExpDate() to sometime in the future. This keeps the Enable property set in the ConsoleOne utility (with the future date). How can I clear this property? I tried using put_MailboxExpDate with a 0 date, but this does not work.

A.

You have to set the value to midnight 1 January 1970, which is not a zero value as it typically is for other dates in NetWare. The value you need to pass is a double, with the integer portion containing the number of days since 30/12/1899 and the fraction portion of the value represents the time of day.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates