ids
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@586 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
This kerberized popper was based on popper-1.831beta
|
||||
which was later announced as "offical" and not beta.
|
||||
|
||||
This program is able to talk both the pop3 and the kpop3 protocol.
|
||||
|
||||
Please note that the server principal is pop.hostname and not
|
||||
rcmd.hostname. I.e an additional entry is needed in your mailhub's
|
||||
/etc/srvtab. Use ksrvutil and kadmin to add the extra prinicpal.
|
||||
/etc/srvtab. Use ksrvutil to add the extra prinicpal.
|
||||
|
||||
The server is usually started from inetd and there is already an entry
|
||||
for that in inetd.conf.changes.
|
||||
|
||||
|
@@ -1 +1,3 @@
|
||||
Define KERBEROS if you want Kerberos V4 style authentification.
|
||||
Define KERBEROS if you want support for Kerberos V4 style
|
||||
authentification, then you will be able to start a kerberise pop with
|
||||
the `-k' flag.
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_dele.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* dele: Delete a message from the POP maildrop
|
||||
|
@@ -10,8 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_dropcopy.c 2.6 2.6 4/3/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
|
||||
extern int errno;
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* dropcopy: Make a temporary copy of the user's mail drop and
|
||||
|
@@ -10,8 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_dropinfo.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
|
||||
extern int errno;
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* dropinfo: Extract information about the POP maildrop and store
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_get_command.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* get_command: Extract the command from an input line form a POP client
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_get_subcommand.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* get_subcommand: Extract a POP XTND subcommand from a client input line
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_init.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
#ifdef KERBEROS
|
||||
AUTH_DAT kdata;
|
||||
@@ -98,7 +99,11 @@ pop_init(POP *p,int argcount,char **argmessage)
|
||||
#endif
|
||||
|
||||
/* Process command line arguments */
|
||||
while ((c = getopt(argcount,argmessage,"kdt:")) != EOF)
|
||||
while ((c = getopt(argcount,argmessage,
|
||||
#ifdef KERBEROS
|
||||
"k"
|
||||
#endif
|
||||
"dt:")) != EOF)
|
||||
switch (c) {
|
||||
|
||||
/* Debugging requested */
|
||||
@@ -119,10 +124,12 @@ pop_init(POP *p,int argcount,char **argmessage)
|
||||
trace_file_name = optarg;
|
||||
break;
|
||||
|
||||
#ifdef KERBEROS
|
||||
/* Use kerberos version of POP3 protocol */
|
||||
case 'k':
|
||||
p->kerberosp = 1;
|
||||
break;
|
||||
#endif
|
||||
|
||||
/* Timeout value passed. Default changed */
|
||||
case 'T':
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_last.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* last: Display the last message touched in a POP session
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_list.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* list: List the contents of a POP maildrop
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_log.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* log: Make a log entry
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_lower.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* lower: Convert a string to lowercase
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_msg.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* msg: Send a formatted line to the POP client
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_parse.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* parse: Parse a raw input line from a POP client
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_pass.c 2.3 2.3 4/2/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
#ifdef KERBEROS
|
||||
extern AUTH_DAT kdata;
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_quit.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* quit: Terminate a POP session
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_rset.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* rset: Unflag all messages flagged for deletion in a POP maildrop
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_send.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* sendline: Send a line of a multi-line response to a client.
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_stat.c 2.2 2.2 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* stat: Display the status of a POP maildrop to its client
|
||||
|
@@ -10,8 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_updt.c 2.3 2.3 3/20/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
|
||||
extern int errno;
|
||||
RCSID("$Id$");
|
||||
|
||||
static char standard_error[] =
|
||||
"Error error updating primary drop. Mailbox unchanged";
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_user.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* user: Prompt for the user name at the start of a POP session
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_xmit.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* xmit: POP XTND function to receive a message from
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)pop_xtnd.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
/*
|
||||
* xtnd: Handle extensions to the POP protocol suite
|
||||
|
@@ -10,6 +10,7 @@ static char SccsId[] = "@(#)@(#)popper.c 2.1 2.1 3/18/91";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <popper.h>
|
||||
RCSID("$Id$");
|
||||
|
||||
int hangup = FALSE ;
|
||||
|
||||
@@ -116,26 +117,3 @@ main (int argc, char **argv)
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
#ifdef STRNCASECMP
|
||||
/*
|
||||
* Perform a case-insensitive string comparision
|
||||
*/
|
||||
int
|
||||
strncasecmp(char *str1, char *str2,int len)
|
||||
{
|
||||
register int i;
|
||||
char a,
|
||||
b;
|
||||
|
||||
for (i=len-1;i>=0;i--){
|
||||
a = str1[i];
|
||||
b = str2[i];
|
||||
if (isupper(a)) a = tolower(str1[i]);
|
||||
if (isupper(b)) b = tolower(str2[i]);
|
||||
if (a > b) return (1);
|
||||
if (a < b) return(-1);
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
#endif /* STRNCASECMP */
|
||||
|
@@ -8,6 +8,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
/* LINTLIBRARY */
|
||||
|
||||
/*
|
||||
|
@@ -8,8 +8,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
/*
|
||||
* Current version of this POP implementation
|
||||
*/
|
||||
|
||||
#define VERSION "1.831beta"
|
||||
#define VERSION "1.831beta + krb4-0.9"
|
||||
|
Reference in New Issue
Block a user