f13ab6a55c
fake headers by special long lines aligned to buffer boundary - popper treat them as separate lines. Whole code needs rewriting. As workaround increase MAXLINE to the value sendmail use, hoping sendmail itself not makes longer lines. 2) Fix EUIDL responses not properly \n terminated.
20 lines
612 B
Plaintext
20 lines
612 B
Plaintext
--- popper.h.orig Mon Apr 17 22:33:43 2000
|
|
+++ popper.h Mon Apr 17 22:50:27 2000
|
|
@@ -55,11 +55,14 @@
|
|
|
|
#define MAXUSERNAMELEN 65
|
|
#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
|
|
#define MAXCMDLEN 4
|
|
#define MAXPARMCOUNT 5
|
|
-#define MAXPARMLEN 10
|
|
+#define MAXPARMLEN 32 /* Large enough for 32-byte APOP parm. */
|
|
#define ALLOC_MSGS 20
|
|
|
|
#ifndef OSF1
|