PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Perl mbox -> wieviel neue Mails



Badsteve
21-03-2003, 10:17
Wie kann ich mit der Hilfe von Perl herausfinden wieviele neue Mails in meine mbox sind ?

danke,

Steve

tuxipuxi
21-03-2003, 16:30
mbox ist wohl das kuerzel fuer mailbox oder? was willst du denn nun wissen: wieviele mails auf dem server liegen oder wieviele in der inbox deines mailprogramms?

arthur
21-03-2003, 17:06
@tuxipuxi:
mbox ist(war) das standard format für das speichern von emails unter unix.
@Badsteve:
hier etwas was ich darüber finden konnte:


If the mtime on a nonempty mbox file is greater than the
atime, the file has new mail. If the mtime is smaller than
the atime, the new mail has been read. If the atime equals
the mtime, there is no way to tell whether the file has new
mail, since qmail-local takes much less than a second to
run. One solution is for a mail reader to artificially set
the atime to the mtime plus 1. Then the file has new mail
if and only if the atime is less than or equal to the mtime.

Some mail readers place Status fields in each message to
indicate which messages have been read.

also enthält mbox von sich aus keine informationen darüber ob
eine mail schon gelesen worden ist oder nicht,
dh. entweder du orientierst dich an dem was dein mail program mit
der datei macht oder du machst alles selber.

Badsteve
22-03-2003, 15:50
dann muss ich mich wohl an mutt orientieren.

Steve THX