(pop3d_fix_mark): Use only valid C comments.
Fixed erroneous format specification. Format X-Expire-Timestamp value only if necessary.
Showing
1 changed file
with
6 additions
and
3 deletions
... | @@ -64,9 +64,12 @@ pop3d_fix_mark () | ... | @@ -64,9 +64,12 @@ pop3d_fix_mark () |
64 | size_t total = 0; | 64 | size_t total = 0; |
65 | char *value = NULL; | 65 | char *value = NULL; |
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; | ... | ... |
-
Please register or sign in to post a comment