# HG changeset patch # User Carl Byington # Date 1308499709 25200 # Node ID e0e5844d91b35344175ca10e42ee5c8a4c2a4249 # Parent bc23fba0da8e91e4180bb7c7e0425cd7042877d7 patch from Leo Antunes for Status: header diff -r bc23fba0da8e -r e0e5844d91b3 AUTHORS --- a/AUTHORS Sat Jun 04 11:38:12 2011 -0700 +++ b/AUTHORS Sun Jun 19 09:08:29 2011 -0700 @@ -33,7 +33,7 @@ Lee Ayres Hugo DesRosiers Kenneth Berland - + Leo 'costela' Antunes Testing team: Mac OSX - Michael Watson diff -r bc23fba0da8e -r e0e5844d91b3 src/libpst.h --- a/src/libpst.h Sat Jun 04 11:38:12 2011 -0700 +++ b/src/libpst.h Sun Jun 19 09:08:29 2011 -0700 @@ -80,6 +80,18 @@ #define PST_ATTACH_EMBEDDED 5 #define PST_ATTACH_OLE 6 +// define flags +#define PST_FLAG_READ 0x01 +#define PST_FLAG_UNMODIFIED 0x02 +#define PST_FLAG_SUBMIT 0x04 +#define PST_FLAG_UNSENT 0x08 +#define PST_FLAG_HAS_ATTACHMENT 0x10 +#define PST_FLAG_FROM_ME 0x20 +#define PST_FLAG_ASSOCIATED 0x40 +#define PST_FLAG_RESEND 0x80 +#define PST_FLAG_RN_PENDING 0x100 +#define PST_FLAG_NRN_PENDING 0x200 + typedef struct pst_entryid { int32_t u1; diff -r bc23fba0da8e -r e0e5844d91b3 src/readpst.c --- a/src/readpst.c Sat Jun 04 11:38:12 2011 -0700 +++ b/src/readpst.c Sun Jun 19 09:08:29 2011 -0700 @@ -1561,6 +1561,11 @@ } } + // record read status + if ((item->flags & PST_FLAG_READ) == PST_FLAG_READ) { + fprintf(f_output, "Status: RO\n"); + } + // create required header fields that are not already written if (!has_from) {