on_mail
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_mail [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | [[on]] [< | ||
+ | |||
+ | ======Description: | ||
+ | This hook is triggered whenever the client detects that the user has new | ||
+ | email locally. | ||
+ | |||
+ | ======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 " | ||
+ | xecho -b You have $0 new message${[$0] > 1 ? [s] : []}, $1 total | ||
+ | } | ||
+ | |||
+ | ======Other Notes: | ||
+ | This hook has no control over the extended output given when [[set mail|MAIL]] is set | ||
+ | to 2. | ||
+ | |||
on_mail.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1