I wrote a short application to replace Xbiff. Basically, I wanted
something that shows a short summary of incoming mails, ignoring thus
whose sender matches a given expression (so that I dont get alarmed by
my own bcc: copies), etc. Anyway. Finally it's a perl script that
parses my /var/spool/mail/fleuret on a regular basis.
Everything seems to go smooth except that from time to time I do miss
mails. When I check the /var/log/maillog, I can see that sendmail
received the mail and did not log any error, but I dont have any trace
in my /var/spool/mail/fleuret.
The sendmail deamon runs on a SOLARIS box, and the /var/spool/mail is
mounted by nfs on my linux box. Each 15s, my script opens the mail
file with open(MAILFILE, "< $mailfile"), parses it, and closes it.
So, can there be a sort of "lock" if the file is opened for reading
and thus the sendmail can not write anything in it (I checked that and
it does not seem to lock anything)?
13. Mail problem