/* send ETRN and interpret the response */
{
int ok, opts;
- char buf [POPBUFSIZE+1];
+ char buf [MSGBUFSIZE+1];
struct idlist *qnp; /* pointer to Q names */
if ((ok = SMTP_ehlo(sock, ctl->server.truename, &opts)))
* 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 POPBUFSIZE 512 /* max length of response (RFC1939) */
#define USERNAMELEN 40 /* max POP3 arg length (RFC1939) */
#define IDLEN 128 /* max length of UID (RFC1939) */
-/* clear a netbsd kernel parameter out of the way */
+/* clear a netBSD kernel parameter out of the way */
#undef MSGBUFSIZE
#define MSGBUFSIZE 2048 /* size of message read buffer */
#define IMAP4rev1 1 /* IMAP4 rev 1, RFC2060 */
static int count, seen, recent, unseen, deletions,expunged, imap_version;
-static char capabilities[POPBUFSIZE+1];
+static char capabilities[MSGBUFSIZE+1];
int imap_ok(int sock, char *argbuf)
/* parse command response */
{
- char buf [POPBUFSIZE+1];
+ char buf [MSGBUFSIZE+1];
seen = 0;
do {
static int imap_getsizes(int sock, int count, int *sizes)
/* capture the sizes of all messages */
{
- char buf [POPBUFSIZE+1];
+ char buf [MSGBUFSIZE+1];
/*
* Some servers (as in, PMDF5.1-9.1 under OpenVMS 6.1)
static int imap_fetch_headers(int sock, struct query *ctl,int number,int *lenp)
/* request headers of nth message */
{
- char buf [POPBUFSIZE+1];
+ char buf [MSGBUFSIZE+1];
int num;
/* expunges change the fetch numbers */
static int imap_fetch_body(int sock, struct query *ctl, int number, int *lenp)
/* request body of nth message */
{
- char buf [POPBUFSIZE+1], *cp;
+ char buf [MSGBUFSIZE+1], *cp;
int num;
/* expunges change the fetch numbers */
for (;;)
{
- char buf[POPBUFSIZE+1];
+ char buf[MSGBUFSIZE+1];
int ok;
if ((ok = gen_recv(sock, buf, sizeof(buf))))