Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
24
bitchx-docs/5_Programming/on/mail
Normal file
24
bitchx-docs/5_Programming/on/mail
Normal file
@@ -0,0 +1,24 @@
|
||||
Synopsis:
|
||||
on [<modes>]mail [<serial#>] [-|^]<match> { <action> }
|
||||
|
||||
Description:
|
||||
This hook is triggered whenever the client detects that the user has new
|
||||
email locally. It relies on MAIL being non-zero.
|
||||
|
||||
Parameters:
|
||||
$0 number of new email messages
|
||||
$1 total number of email messages in user's mailbox
|
||||
|
||||
Examples:
|
||||
To keep the new mail message grammatically correct:
|
||||
on ^mail "*" {
|
||||
echo *** You have $0 new message${[$0] > 1 ? [s] : []}, $1 total
|
||||
}
|
||||
|
||||
See Also:
|
||||
set(4) mail
|
||||
|
||||
Other Notes:
|
||||
This hook has no control over the extended output given when MAIL is set
|
||||
to 2.
|
||||
|
||||
Reference in New Issue
Block a user