~ubuntu-branches/ubuntu/hoary/courier/hoary

« back to all changes in this revision

Viewing changes to imap/imaplogin.c

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-11-29 12:09:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041129120934-kkn0xj11j0n1n6lo
Tags: 0.47-3ubuntu1
* Nathaniel McCallum
 - debian/*.init: pretty initscripts
 - debian/control: version depends on lsb-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#include        <errno.h>
13
13
#include        <ctype.h>
14
14
#include        <fcntl.h>
 
15
#include        <time.h>
15
16
#if     HAVE_UNISTD_H
16
17
#include        <unistd.h>
17
18
#endif
27
28
#include        "tcpd/spipe.h"
28
29
#include        "authlib/debug.h"
29
30
 
30
 
static const char rcsid[]="$Id: imaplogin.c,v 1.23 2004/04/11 23:14:03 mrsam Exp $";
 
31
static const char rcsid[]="$Id: imaplogin.c,v 1.24 2004/09/12 23:25:56 mrsam Exp $";
31
32
 
32
33
FILE *debugfile=0;
33
34
extern void mainloop();
39
40
 
40
41
int main_argc;
41
42
char **main_argv;
 
43
extern time_t start_time;
42
44
 
43
45
void rfc2045_error(const char *p)
44
46
{
180
182
                putenv("IMAP_STARTTLS=NO");
181
183
                putenv("IMAP_TLS_REQUIRED=0");
182
184
                putenv("IMAP_TLS=1");
 
185
 
183
186
                return (0);
184
187
        }
185
188
 
272
275
        ip=getenv("TCPREMOTEIP");
273
276
        if (!ip)        exit(9);
274
277
 
 
278
        time(&start_time);
 
279
 
275
280
#if     IMAP_CLIENT_BUGS
276
281
 
277
282
        ignorepunct();