aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-10-14 06:13:57 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-10-14 06:13:57 +0000
commit43f884871dffd82350a3081343ac3ac4e54426c4 (patch)
tree769e3603d222456af7f5e9ec9650361d376216c4 /fetchmail.h
parent8a95d324b4c6c524bc8d3c3afb16fb83fc0f79d9 (diff)
downloadfetchmail-43f884871dffd82350a3081343ac3ac4e54426c4.tar.gz
fetchmail-43f884871dffd82350a3081343ac3ac4e54426c4.tar.bz2
fetchmail-43f884871dffd82350a3081343ac3ac4e54426c4.zip
RF conformance.
svn path=/trunk/; revision=1512
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/fetchmail.h b/fetchmail.h
index c7e5795e..1ea49ae2 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -18,14 +18,18 @@
#define A_PASSWORD 0 /* password or inline authentication */
#define A_KERBEROS_V4 1 /* preauthenticate w/ Kerberos V4 */
-/* definitions for buffer sizes -- somewhat arbitrary */
-#define POPBUFSIZE 512 /* per RFC 937 */
+/*
+ * Definitions for buffer sizes. We get little help on setting maxima
+ * from IMAP RFCs up to 2060, so these are mostly from POP3.
+ */
+#define HOSTLEN 635 /* max hostname length (RFC1123) */
+#define POPBUFSIZE 512 /* max length of respone (RFC1939) */
+#define USERNAMELEN 40 /* max POP3 arg length (RFC1939) */
+#define IDLEN 128 /* max length of UID (RFC1939) */
+
#define MSGBUFSIZE 2048 /* size of message read buffer */
-#define HOSTLEN 128 /* max hostname length */
-#define USERNAMELEN 32 /* max user-name length */
#define PASSWORDLEN 64 /* max password length */
#define DIGESTLEN 33 /* length of MD5 digest */
-#define IDLEN 128 /* length of UIDL message ID */
/* exit code values */
#define PS_SUCCESS 0 /* successful receipt of messages */