diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | fetchmail.h | 14 |
2 files changed, 11 insertions, 5 deletions
@@ -19,6 +19,8 @@ fetchmail-4.3.1 (Mon Oct 13 17:12:40 EDT 1997) * Fixed processing of -S/-r arguments so giving a comma-separated list works. * Don't query for the fetchmail host machine by default in ETRN mode. * Added skip prefix clause on `envelope' option +* Don't use TCP/IP for DNS queries, it interacts badly with diald. +* Allow usernames up to 40 chars long a la RFC1939. * Added --invisible option. Note: you can now either make fetchmail generate a Received header (the default) *or* spoof your listener into thinking fetchmail connected from the mailserver machine, *but not both*. 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 */ |