Commit 583b18b0 583b18b0e1d9c9770124260c5b8493ec079b609c by Sergey Poznyakoff

(pop3d_fix_mark): Use only valid C comments.

Fixed erroneous format specification.
Format X-Expire-Timestamp value only if necessary.
1 parent 85ccc917
...@@ -66,7 +66,10 @@ pop3d_fix_mark () ...@@ -66,7 +66,10 @@ pop3d_fix_mark ()
66 int len; 66 int len;
67 67
68 mailbox_messages_count (mbox, &total); 68 mailbox_messages_count (mbox, &total);
69 len = asprintf (&value, "%ul", (unsigned long) time (NULL)); 69
70 if (expire > 0)
71 len = asprintf (&value, "%lu", (unsigned long) time (NULL));
72
70 for (i = 1; i <= total; i++) 73 for (i = 1; i <= total; i++)
71 { 74 {
72 message_t msg = NULL; 75 message_t msg = NULL;
...@@ -77,7 +80,7 @@ pop3d_fix_mark () ...@@ -77,7 +80,7 @@ pop3d_fix_mark ()
77 if (pop3d_is_deleted (attr)) 80 if (pop3d_is_deleted (attr))
78 attribute_set_deleted (attr); 81 attribute_set_deleted (attr);
79 82
80 // Mark the message with a timestamp. 83 /* Mark the message with a timestamp. */
81 if (expire >= 0 && pop3d_is_retr (attr)) 84 if (expire >= 0 && pop3d_is_retr (attr))
82 { 85 {
83 header_t header = NULL; 86 header_t header = NULL;
......