Updated email address and copyright.
[userinfo.git] / src / modules / mail.h
blobaf87626c9687bb88e0680f199b9e9afeeb419446
1 /*
2 Copyright (C) 2001-2006 Ben Kibbey <bjk@luxsci.net>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 #ifndef MAIL_H
19 #define MAIL_H
21 #ifdef HAVE_FCNTL_H
22 #include <fcntl.h>
23 #endif
25 #ifdef HAVE_STRING_H
26 #include <string.h>
27 #endif
29 #ifdef HAVE_SYS_MMAN_H
30 #include <sys/mman.h>
31 #endif
33 #ifdef HAVE_LIMITS_H
34 #include <limits.h>
35 #endif
37 #ifdef HAVE_SYS_MMAN_H
38 #include <sys/mman.h>
39 #endif
41 #ifdef HAVE_ERR_H
42 #include <err.h>
43 #endif
45 #ifdef HAVE_PATHS_H
46 #include <paths.h>
47 #endif
49 #ifndef _PATH_MAILDIR
50 #define _PATH_MAILDIR "/var/mail"
51 #endif
53 #include <pwd.h>
55 #define MAIL_OPTION_ORDER "smrfa"
56 #define MAIL_OPTION_STRING "Mfrsam"
58 static char options[6]; /* NULL terminated. */
59 static char *aliasbuf;
60 static char **strings;
62 void add_string(char ***, const char *);
63 char *stamp(time_t, const char *);
65 #ifdef WITH_DMALLOC
66 #include <dmalloc.h>
67 #endif
69 #endif