Back to index

courier  0.68.2
folder.h
Go to the documentation of this file.
00001 /*
00002 */
00003 #ifndef       folder_h
00004 #define       folder_h
00005 
00006 #if    HAVE_CONFIG_H
00007 #undef PACKAGE
00008 #undef VERSION
00009 #include      "config.h"
00010 #endif
00011 
00012 /*
00013 ** Copyright 1998 - 2001 Double Precision, Inc.  See COPYING for
00014 ** distribution information.
00015 */
00016 
00017 
00018 #include      <sys/types.h>
00019 #include      <sys/stat.h>
00020 #if    HAVE_UNISTD_H
00021 #include      <unistd.h>
00022 #endif
00023 
00024 #if    TIME_WITH_SYS_TIME
00025 #include      <sys/time.h>
00026 #include      <time.h>
00027 #else
00028 #if    HAVE_SYS_TIME_H
00029 #include      <sys/time.h>
00030 #else
00031 #include      <time.h>
00032 #endif
00033 #endif
00034 
00035 typedef struct {
00036        size_t  msgnum; /* Filled in by maildir_read() and maildir_search() */
00037        char   *filename;
00038        char   *date_s;
00039        char   *from_s;
00040        char   *subject_s;
00041        char   *size_s;
00042        time_t date_n;
00043        unsigned long size_n;
00044        time_t mi_mtime;
00045        ino_t  mi_ino;
00046        } MSGINFO;
00047 
00048 #define       MSGINFO_FILENAME(n)  ((const char *)(n)->filename)
00049 #define       MSGINFO_DATE(n)      ((const char *)(n)->date_s)
00050 #define       MSGINFO_FROM(n)      ((const char *)(n)->from_s)
00051 #define       MSGINFO_SUBJECT(n)   ((const char *)(n)->subject_s)
00052 #define       MSGINFO_SIZE(n)      ((const char *)(n)->size_s)
00053 
00054 extern void folder_search(const char *, size_t);
00055 extern void folder_contents_title();
00056 extern void folder_contents(const char *, size_t);
00057 extern void folder_navigate(const char *, size_t, long, int, int,
00058                          unsigned long *);
00059 extern void folder_delmsgs(const char *, size_t);
00060 extern void folder_showmsg(const char *, size_t);
00061 extern void folder_keyimport(const char *, size_t);
00062 extern void folder_initnextprev(const char *, size_t);
00063 extern void folder_nextprev(), folder_msgmove();
00064 extern void folder_delmsg(size_t);
00065 extern void folder_list(), folder_list2(), folder_rename_list();
00066 extern void folder_showtransfer();
00067 extern void folder_download(const char *, size_t, const char *);
00068 extern void folder_showquota();
00069 
00070 #define       MSGTYPE_NEW   'N'
00071 #define       MSGTYPE_DELETED      'D'
00072 #define       MSGTYPE_REPLIED      'R'
00073 
00074 typedef struct {
00075        char *prefix;
00076        char *match;
00077        char *suffix;
00078 } MATCHEDSTR;
00079 
00080 
00081 #endif