|XP is just a number|
Mail check?by odie (Sexton)
|on May 23, 2001 at 23:21 UTC||Need Help??|
odie has asked for the
wisdom of the Perl Monks concerning the following question:
Ok. I would like to check whether I have mail or not. I suppose I could do some fancy parsing of /var/spool/mail/username, but as this can sometimes have size 0 and sometimes contain a "non-message" that apparently is a, quote "part of the internal format of your mail folder" it would prove a hassle. And maybe unnecessary.
Is there a fancy pm that can perform such a check on the mail spool or possibly a program that will do this that I can use from within perl?
I am a manual signature virus. Copy me please!