Andreas Krennmair:
[apps/madmutt.git] / browser.h
1 /* $Id: browser.h,v 3.1 2002/12/11 11:19:39 roessler Exp $ */
2 /*
3  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4  * 
5  *     This program is free software; you can redistribute it and/or modify
6  *     it under the terms of the GNU General Public License as published by
7  *     the Free Software Foundation; either version 2 of the License, or
8  *     (at your option) any later version.
9  * 
10  *     This program is distributed in the hope that it will be useful,
11  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *     GNU General Public License for more details.
14  * 
15  *     You should have received a copy of the GNU General Public License
16  *     along with this program; if not, write to the Free Software
17  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
18  */
19
20 #ifndef _BROWSER_H
21 #define _BROWSER_H 1
22
23 #ifdef USE_NNTP
24 #include "nntp.h"
25 #endif
26
27 struct folder_file {
28   mode_t mode;
29   off_t size;
30   time_t mtime;
31   struct stat *st;
32
33   char *name;
34   char *desc;
35
36   unsigned short new;
37 #ifdef USE_IMAP
38   char delim;
39
40   unsigned imap:1;
41   unsigned selectable:1;
42   unsigned inferiors:1;
43 #endif
44 #ifdef USE_NNTP
45   NNTP_DATA *nd;
46 #endif
47   unsigned tagged:1;
48 };
49
50 struct browser_state {
51   struct folder_file *entry;
52   unsigned int entrylen;        /* number of real entries */
53   unsigned int entrymax;        /* max entry */
54 #ifdef USE_IMAP
55   short imap_browse;
56   char *folder;
57   unsigned noselect:1;
58   unsigned marked:1;
59   unsigned unmarked:1;
60 #endif
61 };
62
63 #endif /* _BROWSER_H */