#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_dele.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
if(p->debug)
pop_log(p,POP_DEBUG,"Deleting message %u at offset %u of length %u\n",
mp->number,mp->offset,mp->length);
-#endif DEBUG
+#endif
/* Update the messages_deleted and bytes_deleted counters */
p->msgs_deleted++;
if(p->debug)
pop_log(p,POP_DEBUG,"Creating temporary maildrop '%s'",
p->temp_drop);
-#endif DEBUG
+#endif
/* Here we work to make sure the user doesn't cause us to remove or
* write over existing files by limiting how much work we do while
#ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"uid = %d, gid = %d",getuid(),getgid());
-#endif DEBUG
+#endif
/* Open for append, this solves the crash recovery problem */
if ((dfd = open(p->temp_drop,O_RDWR|O_APPEND|O_CREAT,0600)) == -1){
pop_log(p,POP_DEBUG,
"Msg %d at offset %d is %d octets long and has %u lines.",
mp->number,mp->offset,mp->length,mp->lines);
-#endif DEBUG
+#endif
++mp;
mp->number = msg_num;
mp->length = 0;
#ifdef DEBUG
if(p->debug)
pop_log(p,POP_DEBUG, "Msg %d being added to list", mp->number);
-#endif DEBUG
+#endif
}
mp->length += nchar;
p->drop_size += nchar;
"Msg %d at offset %d is %d octets long and has %u lines.",
mp->number,mp->offset,mp->length,mp->lines);
}
-#endif DEBUG
+#endif
return(POP_SUCCESS);
}
auth2, "pass", 1, 1, pop_pass, {auth1, trans},
#ifdef RPOP
auth2, "rpop", 1, 1, pop_rpop, {auth1, trans},
-#endif RPOP
+#endif
auth1, "quit", 0, 0, pop_quit, {halt, halt},
auth2, "quit", 0, 0, pop_quit, {halt, halt},
trans, "stat", 0, 0, pop_stat, {trans, trans},
/* Save a copy of the original client line */
#ifdef DEBUG
if(p->debug) strcpy (buf,mp);
-#endif DEBUG
+#endif
/* Parse the message into the parameter array */
if ((p->parm_count = pop_parse(p,mp)) < 0) return(NULL);
pop_log(p,POP_DEBUG,"Received: \"%s\"",buf);
}
}
-#endif DEBUG
+#endif
/* Search for the POP command in the command/state table */
for (s = states; s->command; s++) {
p->client = p->ipaddr;
}
}
-#endif BIND43
+#endif
}
/* Create input file stream for TCP/IP communication */
trace_file_name);
else if (p->debug)
pop_log(p,POP_PRIORITY,"Debugging turned on");
-#endif DEBUG
+#endif
return(authenticate(p, &cs));
}
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_last.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_list.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_log.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_lower.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifdef DEBUG
if (p->debug && stat == POP_SUCCESS)
pop_log(p,POP_DEBUG,"%s",message);
-#endif DEBUG
+#endif
/* Log the message if a failure occurred */
if (stat != POP_SUCCESS)
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_parse.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_quit.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_rset.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"Sending line \"%s\"",buffer);
-#endif DEBUG
+#endif
/* Put a <CR><NL> if a newline was removed from the buffer */
if (bp) (void)fputs ("\r\n",p->output);
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_stat.c 2.2 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
{
#ifdef DEBUG
if (p->debug) pop_log(p,POP_DEBUG,"%d message(s) (%d octets).",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted);
-#endif DEBUG
+#endif
return (pop_msg (p,POP_SUCCESS,
"%u %u",p->msg_count-p->msgs_deleted,p->drop_size-p->bytes_deleted));
}
pop_log(p,POP_DEBUG,"Performing maildrop update...");
pop_log(p,POP_DEBUG,"Checking to see if all messages were deleted");
}
-#endif DEBUG
+#endif
if (p->msgs_deleted == p->msg_count) {
/* Truncate before close, to avoid race condition, DO NOT UNLINK!
#ifdef DEBUG
if (p->debug)
pop_log(p,POP_DEBUG,"Opening mail drop \"%s\"",p->drop_name);
-#endif DEBUG
+#endif
/* Open the user's real maildrop */
if ((mfd = open(p->drop_name,O_RDWR|O_CREAT,0600)) == -1 ||
if (p->debug)
pop_log(p,POP_DEBUG,"Creating new maildrop \"%s\" from \"%s\"",
p->drop_name,p->temp_drop);
-#endif DEBUG
+#endif
for (msg_num = 0; msg_num < p->msg_count; ++msg_num) {
if(p->debug)
pop_log(p,POP_DEBUG,
"Message %d flagged for deletion.",mp->number);
-#endif DEBUG
+#endif
continue;
}
#ifdef DEBUG
if(p->debug)
pop_log(p,POP_DEBUG,"Copying message %d.",mp->number);
-#endif DEBUG
+#endif
begun = 0;
for(status_written = doing_body = 0 ;
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_xmit.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
pop_log(p,POP_DEBUG,
"Creating temporary file for sending a mail message \"%s\"\n",
temp_xmit);
-#endif DEBUG
+#endif
if ((tmp = fopen(temp_xmit,"w+")) == NULL)
return (pop_msg(p,POP_FAILURE,
"Unable to create temporary message file \"%s\", errno = %d",
/* Receive the message */
#ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"Receiving mail message");
-#endif DEBUG
+#endif
while (fgets(buffer,MAXLINELEN,p->input)){
/* Look for initial period */
#ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"Receiving: \"%s\"",buffer);
-#endif DEBUG
+#endif
if (*buffer == '.') {
/* Exit on end of message */
if (strcmp(buffer,".\r\n") == 0) break;
#ifdef DEBUG
if(p->debug)pop_log(p,POP_DEBUG,"Forking for \"%s\"",_PATH_SENDMAIL);
-#endif DEBUG
+#endif
/* Send the message */
switch (pid = fork()) {
case 0:
case -1:
#ifdef DEBUG
if (!p->debug) (void)unlink (temp_xmit);
-#endif DEBUG
+#endif
return (pop_msg(p,POP_FAILURE,
"Unable to execute \"%s\"",_PATH_SENDMAIL));
default:
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)pop_xtnd.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifndef lint
static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n";
static char SccsId[] = "@(#)popper.c 2.1 3/18/91";
-#endif not lint
+#endif
#include <stdio.h>
#include <sys/types.h>
}
return(0);
}
-#endif STRNCASECMP
+#endif
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64
-#endif MAXHOSTNAMELEN
+#endif
#if defined(IPPROTO_IP) && defined(IP_TOS)
int tos = -1;
#ifndef lint
static char rcsid_f_parity_c[] =
"$Header$";
-#endif lint
+#endif
#include "des.h"
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)strcasecmp.c 1.3 (Berkeley) 8/3/87";
-#endif LIBC_SCCS and not lint
+#endif
/*
* This array is designed for mapping upper and lower case letter