For maildir, you check the T flag in the filename. For mbox, the flags are stored in the X-Evolution header as a 4 byte hexadecimal number. The deleted flag is bit #1, or 0x02.
See camel/camel-folder-summary.h for a list of the main flags, and camel/providers/local/camel-local-summary.c:local_summary_(en|de)code_x_evolution() for the exact code used to create/read the header. On Tue, 2003-02-25 at 21:11, Thomas wrote: > I'd like to put together a script that extracts all non-deleted messages > from my Inbox in Evo, and copies them to a new mailbox for processing by > SpamAssassin's Bayesian learning algorithms. Obviously I can do this by > hiding deleted messages in my Inbox, selecting all the messages that are > showing, and copying them to a new folder, but I'd like to automate that > process to run nightly. My question is, how do I know by looking at the > mbox file (or other files) if a particular message is marked for > deletion or not? > > Tom > > -- > Thomas <[EMAIL PROTECTED]> > _______________________________________________ > evolution maillist - [EMAIL PROTECTED] > http://lists.ximian.com/mailman/listinfo/evolution _______________________________________________ evolution maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/evolution
