- if (olduv && olduv == status->uidvalidity)
- {
- if (oldun < status->uidnext)
- inc->new = status->unseen;
- }
- else if (!olduv && !oldun)
- /* first check per session, use recent. might need a flag for this. */
- inc->new = status->recent;
+ if (option(OPTMAILCHECKRECENT))
+ {
+ if (olduv && olduv == status->uidvalidity)
+ {
+ if (oldun < status->uidnext)
+ inc->new = status->unseen;
+ }
+ else if (!olduv && !oldun)
+ /* first check per session, use recent. might need a flag for this. */
+ inc->new = status->recent;
+ else
+ inc->new = status->unseen;
+ }