Reminder Messages

[posted 2000/02/01]

From time to time, we have to suspend the mail quota temporarily on a certain account.  So, in MailQuotaChkWarning, we will add something like:

#    if mailserver
        rule    // set some temporary exceptions
                if $name eq "egonzalez"
                        set #timelimit = 0
                        next
                endif
#    endif

One problem is:  How will we know, or be reminded of, when to lift the suspension?

One could do this:

                if $name eq "egonzalez"
                        if #now() > #datevalue(2000, 1, 30)
                                output mail "Cancel the egonzalez
                                             temporary quota exception."
                        endif
                        set #timelimit = 0
                        next
                endif

Then, on January 30th, and every day thereafter until we remove the reminder (and the rest of the quota exception code for this account) from the script, we would see that reminder message in each day's Warning alert.

Note that in the forthcoming 1.9.0 release, you will be able to use macro arguments and a macro invocation like:

                        =remind(2000, 1, 30, "Cancel the egonzalez
                                              temporary quota exception.")

Open Hand For more examples, see Developer's Notes.

 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2008-02-27.   This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.   Copyright © 1998-2008 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
restart syslog
Pikt script