more and more cleansing
[apps/madmutt.git] / browser.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 #ifndef _BROWSER_H
11 #define _BROWSER_H 1
12
13 #ifdef USE_NNTP
14 #include "nntp/nntp.h"
15 #endif
16
17 struct folder_file {
18   mode_t mode;
19   off_t size;
20   time_t mtime;
21   struct stat *st;
22
23   char *name;
24   char *desc;
25
26   unsigned short new;
27 #ifdef USE_IMAP
28   char delim;
29
30   unsigned imap:1;
31   unsigned selectable:1;
32   unsigned inferiors:1;
33 #endif
34 #ifdef USE_NNTP
35   NNTP_DATA *nd;
36 #endif
37   unsigned tagged:1;
38 };
39
40 struct browser_state {
41   struct folder_file *entry;
42   unsigned int entrylen;        /* number of real entries */
43   unsigned int entrymax;        /* max entry */
44 #ifdef USE_IMAP
45   short imap_browse;
46   char *folder;
47   unsigned noselect:1;
48   unsigned marked:1;
49   unsigned unmarked:1;
50 #endif
51 };
52
53 #endif /* _BROWSER_H */