Rocco Rutte:
[apps/madmutt.git] / buffy.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9
10 /*parameter to mutt_parse_mailboxes*/
11 #define M_MAILBOXES   1
12 #define M_UNMAILBOXES 2
13
14 typedef struct buffy_t {
15   char *path;
16 #ifdef BUFFY_SIZE
17   long size;
18 #endif                          /* BUFFY_SIZE */
19   struct buffy_t *next;
20   struct buffy_t *prev;
21   short new;                    /* mailbox has new mail */
22   short has_new;                /* set it new if new and not read */
23   int msgcount;                 /* total number of messages */
24   int msg_unread;               /* number of unread messages */
25   int msg_flagged;              /* number of flagged messages */
26   short notified;               /* user has been notified */
27   short magic;                  /* mailbox type */
28   short newly_created;          /* mbox or mmdf just popped into existence */
29 } BUFFY;
30
31 WHERE BUFFY *Incoming INITVAL (0);
32 WHERE short BuffyTimeout INITVAL (3);
33
34 extern time_t BuffyDoneTime;    /* last time we knew for sure how much mail there was */
35
36 #ifdef BUFFY_SIZE
37 BUFFY *mutt_find_mailbox (const char *path);
38 void mutt_update_mailbox (BUFFY * b);
39 #endif