1 /*
2 ** $Id: folder.h,v 1.11 2003/11/28 00:46:10 mrsam Exp $
3 */
4 #ifndef	folder_h
5 #define	folder_h
6 
7 #if	HAVE_CONFIG_H
8 #undef	PACKAGE
9 #undef	VERSION
10 #include	"config.h"
11 #endif
12 
13 /*
14 ** Copyright 1998 - 2001 Double Precision, Inc.  See COPYING for
15 ** distribution information.
16 */
17 
18 
19 #include	<sys/types.h>
20 #include	<sys/stat.h>
21 #if	HAVE_UNISTD_H
22 #include	<unistd.h>
23 #endif
24 
25 #if	TIME_WITH_SYS_TIME
26 #include	<sys/time.h>
27 #include	<time.h>
28 #else
29 #if	HAVE_SYS_TIME_H
30 #include	<sys/time.h>
31 #else
32 #include	<time.h>
33 #endif
34 #endif
35 
36 typedef struct {
37 	char	*filename;
38 	char	*date_s;
39 	char	*from_s;
40 	char	*subject_s;
41 	char	*size_s;
42 	time_t	date_n;
43 	unsigned long size_n;
44 	time_t	mi_mtime;
45 	ino_t	mi_ino;
46 	} MSGINFO;
47 
48 #define	MSGINFO_FILENAME(n)	((const char *)(n)->filename)
49 #define	MSGINFO_DATE(n)	((const char *)(n)->date_s)
50 #define	MSGINFO_FROM(n)	((const char *)(n)->from_s)
51 #define	MSGINFO_SUBJECT(n)	((const char *)(n)->subject_s)
52 #define	MSGINFO_SIZE(n)	((const char *)(n)->size_s)
53 
54 extern void folder_contents_title();
55 extern void folder_contents(const char *, size_t);
56 extern void folder_navigate(const char *, size_t, long, int, int);
57 extern void folder_delmsgs(const char *, size_t);
58 extern void folder_showmsg(const char *, size_t);
59 extern void folder_keyimport(const char *, size_t);
60 extern void folder_initnextprev(const char *, size_t);
61 extern void folder_nextprev(), folder_msgmove();
62 extern void folder_delmsg(size_t);
63 extern void folder_list(), folder_list2(), folder_rename_list();
64 extern void folder_showtransfer();
65 extern void folder_download(const char *, size_t, const char *);
66 extern void folder_showquota();
67 
68 #define	MSGTYPE_NEW	'N'
69 #define	MSGTYPE_DELETED	'D'
70 #define	MSGTYPE_REPLIED	'R'
71 
72 #endif
73