diff src/readpst.c @ 292:e0e5844d91b3

patch from Leo Antunes for Status: header
author Carl Byington <carl@five-ten-sg.com>
date Sun, 19 Jun 2011 09:08:29 -0700
parents bc23fba0da8e
children 8b3a827b71f4
line wrap: on
line diff
--- 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) {