Hey y'all. This is rather interesting. I want to match an incoming
message based on From and Subject and add it to 'msgs' (the system-wide
notices program).
'man msgs' says:
The -s option is used for setting up the posting of mes-
sages. The line
msgs: "| /usr/ucb/msgs -s"
should be include in /etc/sendmail/aliases to enable posting
of messages.
I assume this means that messages could be sent to
'msgs(_at_)myhostname(_dot_)com'
and they would be posted?
However, that does not seem to work. I wonder if it has something to do
with my particular mail setup (sendmail config'd to masquerade_as
peak.org) or with NeXTstep and NetInfo.
I could do a raw 'send the body of the message to "msgs"' using procmail:
:0 B
* ^From:.*techsupport\.domain\.com
* ^Subject:.*Scheduled Downtime
| /usr/ucb/msgs -s
but if that worked (it's untested) it still wouldn't have a Subject.
I was wondering if anyone had done this already before I reinvent
something that has already been made better
TjL
--
TjL <luomat(_at_)peak(_dot_)org> / http://www.peak.org/~luomat/next/
NeXT bookmarks: http://www.peak.org/~luomat/next/bookmarks.html
*** Starting July 2nd I will be taking Hebrew. Email and Usenet
response time will be noticeably slower. ***