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
......@@ -64,9 +64,12 @@ pop3d_fix_mark ()
size_t total = 0;
char *value = NULL;
int len;
mailbox_messages_count (mbox, &total);
len = asprintf (&value, "%ul", (unsigned long) time (NULL));
if (expire > 0)
len = asprintf (&value, "%lu", (unsigned long) time (NULL));
for (i = 1; i <= total; i++)
{
message_t msg = NULL;
......@@ -77,7 +80,7 @@ pop3d_fix_mark ()
if (pop3d_is_deleted (attr))
attribute_set_deleted (attr);
// Mark the message with a timestamp.
/* Mark the message with a timestamp. */
if (expire >= 0 && pop3d_is_retr (attr))
{
header_t header = NULL;
......