scan(void)
{
debug("Searching for mailboxes...\n");
+ last_scan_time = time(NULL);
int changed = 0;
CLIST_FOR_EACH(struct mbox *, p, patterns)
{
else
{
attrset(attrs[cc][hi][M_IDLE]);
- printw("%4d ", b->total);
+ printw("%6d ", b->total);
if (b->new)
{
attrset(attrs[cc][hi][M_NEW]);
- printw("%4d", b->new);
+ printw("%6d ", b->new);
+ attrset(attrs[cc][hi][M_IDLE]);
+ int age = (last_scan_time - b->last_time);
+ if (age < 0)
+ age = 0;
+ if (age < 3600)
+ printw("%2d min", age/60);
+ else if (age < 86400)
+ printw("%2d hrs", age/3600);
}
}
attrset(attrs[cc][hi][M_IDLE]);