Blame view

comsat/comsat.h 2.26 KB
1
/* GNU Mailutils -- a suite of utilities for electronic mail
Sergey Poznyakoff authored
2 3
   Copyright (C) 1999, 2000, 2001, 2002, 2007, 
   2008 Free Software Foundation, Inc.
Sergey Poznyakoff authored
4

5
   GNU Mailutils is free software; you can redistribute it and/or modify
Sergey Poznyakoff authored
6
   it under the terms of the GNU General Public License as published by
7
   the Free Software Foundation; either version 3, or (at your option)
Sergey Poznyakoff authored
8 9
   any later version.

10
   GNU Mailutils is distributed in the hope that it will be useful,
Sergey Poznyakoff authored
11 12 13 14 15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
16
   along with GNU Mailutils; if not, write to the Free Software
17 18
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
   MA 02110-1301 USA */
Sergey Poznyakoff authored
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <errno.h>
#include <termios.h>
#include <syslog.h>
#include <string.h>
#include <pwd.h>
Sergey Poznyakoff authored
40
#include <ctype.h>
Sergey Poznyakoff authored
41

42 43 44 45 46 47 48 49
#ifdef HAVE_PATHS_H
# include <paths.h>
#endif

#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif

50 51 52 53 54
#include <mailutils/body.h>
#include <mailutils/errno.h>
#include <mailutils/error.h>
#include <mailutils/header.h>
#include <mailutils/list.h>
55 56
#include <mailutils/mailbox.h>
#include <mailutils/message.h>
57
#include <mailutils/mutil.h>
58 59
#include <mailutils/registrar.h>
#include <mailutils/stream.h>
60
#include <mailutils/mu_auth.h>
61
#include <mailutils/argcv.h>
62
#include <mailutils/nls.h>
63
#include <mailutils/daemon.h>
64
#include <mailutils/acl.h>
Sergey Poznyakoff authored
65
#include <mailutils/server.h>
66

Sergey Poznyakoff authored
67 68 69 70
#ifndef INADDR_NONE
# define INADDR_NONE -1
#endif

71 72
#define BIFF_RC ".biffrc"

73 74 75 76 77 78
extern int allow_biffrc;
extern unsigned maxrequests;
extern time_t request_control_interval;
extern time_t overflow_control_interval;
extern time_t overflow_delay_time;
extern int maxlines;
79
extern const char *username;
80
extern char hostname[];
81
extern struct daemon_param daemon_param;
Sergey Poznyakoff authored
82

83
void run_user_action (FILE *tty, const char *cr, mu_message_t msg);
84 85
void convert_config (const char *config_file, FILE *outfile);