If `mark_old` is false, unread mails will not be marked old after
they've been viewed. But they will be marked old if found in the `/cur`
subdirectory of the Maildir. This is inconsistent behaviour, since a
user with disabled `mark_old` will expect no old flags at all.
else if (ascii_strncasecmp("old", s, 3) == 0)
{
s += 3;
- hd->old = true;
+ hd->old = option(OPTMARKOLD) ? true : false;
}
else
{
if (subdir)
{
snprintf(buf, sizeof(buf), "%s/%s", ctx->path, subdir);
- is_old = (mutt_strcmp("cur", subdir) == 0);
+ is_old = option(OPTMARKOLD) ? (mutt_strcmp("cur", subdir) == 0) : false;
}
else
strfcpy(buf, ctx->path, sizeof(buf));
hdr->replied = true;
break;
case 'O':
- hdr->old = true;
+ hdr->old = option(OPTMARKOLD) ? true: false;
break;
case 'R':
hdr->read = true;