in reply to Re: Show mbox files with unread mail messages in them
in thread Show mbox files with unread mail messages in them

AFAIK there is no metadata in an mbox file that determines if a particular message has been read or not?

If you're using Mutt like me then a new header is added 'Status: RO' for "read" and "old" when a message is read. This may be something other programs add, or it may be mutt-specific. I'm not sure.

I guess you are assuming that there are no named pipes or FIFOs or other types of files?

Yes, but I think that is a valid assumption in this case.

I think your comments on the exclusion of filenames being very simplistic are very valid, but for simple code it works well for me. I guess I'm lucky that I don't have any meta-characters in my mailbox names.

I've updated the node to fix the pod errors you pointed out, so thanks for those.

Steve
--
  • Comment on Re^2: Show mbox files with unread mail messages in them