summaryrefslogtreecommitdiff
path: root/mail/qpopper/patches/patch-ah
blob: 2b9a47eba18aeb3201b7faeb7c740f7721e46478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
$NetBSD: patch-ah,v 1.7 2000/04/24 11:04:18 itojun Exp $
--- popper.h.orig	Fri Jul 10 08:44:08 1998
+++ popper.h	Mon Apr 24 19:56:38 2000
@@ -33,3 +33,3 @@
 #include <sys/param.h>
-# if (defined(BSD) && (BSD >= 199103))
+# if (defined(BSD) && (BSD >= 199103)) && 0 /* shouldn't be necessary anymore */
 #  define	HAVE_UNISTD_H
@@ -40,3 +40,15 @@
 
-#ifdef BSDI
+#ifdef	HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+
+#ifdef	HAVE_STRING_H
+# include <string.h>
+#endif
+
+#ifdef	HAVE_TIME_H
+# include <time.h>
+#endif
+
+#if defined (BSDI) || defined (__NetBSD__)
 #define BSD44_DBM
@@ -62,3 +74,8 @@
 #define MAXDROPLEN      64
-#define MAXLINELEN      1024
+/*
+ * This program always assume that fgets return whole line,
+ * so the buffer must be at least one char bigger than sendmail
+ * use, because of >From
+ */
+#define MAXLINELEN      (2048 + 1)
 #define MAXMSGLINELEN   MAXLINELEN
@@ -66,11 +83,11 @@
 #define MAXPARMCOUNT    5
-#define MAXPARMLEN      10
+#define MAXPARMLEN      32	/* Large enough for 32-byte APOP parm */
 #define ALLOC_MSGS  20
 
-#ifndef OSF1
-# define POP_FACILITY    LOG_LOCAL0
-#else
+#if defined(OSF1) || defined(__NetBSD__)
 # define POP_FACILITY    LOG_MAIL
+#else
+# define POP_FACILITY    LOG_LOCAL0
 #endif
-#define POP_PRIORITY    LOG_NOTICE
+#define POP_PRIORITY    LOG_INFO
 #define POP_DEBUG       LOG_DEBUG
@@ -294,3 +311,3 @@
 #ifndef KERBEROS_SERVICE
-# define KERBEROS_SERVICE	"rcmd"
+# define KERBEROS_SERVICE	"pop"
 #endif
@@ -300,3 +317,3 @@
 #else
-# ifdef BSDI
+# if defined (BSDI) || defined (__NetBSD__)
 #  include <kerberosIV/des.h>