/[LeafOK_CVS]/pvpgn-1.7.4/src/bnetd/mail.h
ViewVC logotype

Contents of /pvpgn-1.7.4/src/bnetd/mail.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Tue Jun 6 03:41:37 2006 UTC (19 years, 9 months ago) by sysadm
Branch: GNU, MAIN
CVS Tags: pvpgn_1-7-4-0_MIL, arelease, HEAD
Changes since 1.1: +0 -0 lines
Content type: text/x-chdr
no message

1 /*
2 * Copyright (C) 2001 Dizzy (dizzy@roedu.net)
3 * Copyright (C) 2004 Donny Redmond (dredmond@linuxmail.org)
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (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-1307, USA.
18 */
19
20
21 /*****/
22 #ifndef INCLUDED_MAIL_TYPES
23 #define INCLUDED_MAIL_TYPES
24
25
26 #define MAX_FUNC_LEN 10
27 #define MAX_MAIL_QUOTA 10
28 #define MAIL_FUNC_SEND 1
29 #define MAIL_FUNC_READ 2
30 #define MAIL_FUNC_DELETE 3
31 #define MAIL_FUNC_HELP 4
32 #define MAIL_FUNC_UNKNOWN 5
33
34
35 #ifdef MAIL_INTERNAL_ACCESS
36
37 #ifdef JUST_NEED_TYPES
38 # ifdef TIME_WITH_SYS_TIME
39 # include <sys/time.h>
40 # include <time.h>
41 # else
42 # ifdef HAVE_SYS_TIME_H
43 # include <sys/time.h>
44 # else
45 # include <time.h>
46 # endif
47 # endif
48 # ifdef HAVE_SYS_TYPES_H
49 # include <sys/types.h>
50 # endif
51 # include "compat/pdir.h"
52 #else
53 # define JUST_NEED_TYPES
54 # ifdef TIME_WITH_SYS_TIME
55 # include <sys/time.h>
56 # include <time.h>
57 # else
58 # ifdef HAVE_SYS_TIME_H
59 # include <sys/time.h>
60 # else
61 # include <time.h>
62 # endif
63 # endif
64 # ifdef HAVE_SYS_TYPES_H
65 # include <sys/types.h>
66 # endif
67 # include "compat/pdir.h"
68 # undef JUST_NEED_TYPES
69 #endif
70
71 typedef enum {
72 mbox_mode_read = 0x01,
73 mbox_mode_write = 0x02
74 } t_mbox_mode;
75
76 typedef struct mailbox_struct {
77 t_pdir * maildir;
78 unsigned int uid;
79 char * path;
80 } t_mailbox;
81
82 typedef struct mail_struct {
83 char * sender;
84 char * message;
85 time_t timestamp;
86 } t_mail;
87
88 typedef struct maillist_struct {
89 int idx;
90 char * sender;
91 time_t timestamp;
92 struct maillist_struct * next;
93 } t_maillist;
94
95 #endif
96
97 #endif
98
99 #ifndef JUST_NEED_TYPES
100 #ifndef INCLUDED_MAIL_PROTOS
101 #define INCLUDED_MAIL_PROTOS
102
103 #define JUST_NEED_TYPES
104 #include "connection.h"
105 #undef JUST_NEED_TYPES
106
107 extern int handle_mail_command(t_connection *, char const *);
108 extern char const * check_mail(t_connection const * c);
109
110 #endif
111 #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1