From: Unknown <> Date: Thu, 30 Oct 2008 21:59:39 +0000 (+0000) Subject: add files for 2008-10-30T21:59:39Z X-Git-Tag: imap-2007d X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c34006e9f4e28ad5eec8eab50205c3f08f06981a;p=uw-imap add files for 2008-10-30T21:59:39Z --- diff --git a/src/dmail/dmail.c b/src/dmail/dmail.c index ce6b2e2..f78b957 100644 --- a/src/dmail/dmail.c +++ b/src/dmail/dmail.c @@ -23,7 +23,7 @@ * Internet: MRC@CAC.Washington.EDU * * Date: 5 April 1993 - * Last Edited: 10 September 2007 + * Last Edited: 30 October 2008 */ #include @@ -39,7 +39,7 @@ extern int errno; /* just in case */ /* Globals */ -char *version = "17"; /* dmail edit version */ +char *version = "18"; /* dmail edit version */ int debug = NIL; /* debugging (don't fork) */ int flagseen = NIL; /* flag message as seen */ int trycreate = NIL; /* flag saying gotta create before appending */ @@ -228,7 +228,7 @@ int deliver (FILE *f,unsigned long msglen,char *user) /* have a mailbox specifier? */ if (mailbox = strchr (user,'+')) { *mailbox++ = '\0'; /* yes, tie off user name */ - if (!*mailbox || !strcmp ("INBOX",ucase (strcpy (tmp,mailbox)))) + if (!*mailbox || !compare_cstring ((unsigned char *) mailbox,"INBOX")) mailbox = NIL; /* user+ and user+INBOX same as user */ } if (!*user) user = myusername (); diff --git a/src/tmail/tmail.c b/src/tmail/tmail.c index 50d12bb..413ccef 100644 --- a/src/tmail/tmail.c +++ b/src/tmail/tmail.c @@ -23,7 +23,7 @@ * Internet: MRC@CAC.Washington.EDU * * Date: 5 April 1993 - * Last Edited: 17 September 2007 + * Last Edited: 30 October 2008 */ #include @@ -39,7 +39,7 @@ extern int errno; /* just in case */ /* Globals */ -char *version = "21"; /* tmail edit version */ +char *version = "22"; /* tmail edit version */ int debug = NIL; /* debugging (don't fork) */ int trycreate = NIL; /* flag saying gotta create before appending */ int critical = NIL; /* flag saying in critical code */ @@ -602,11 +602,10 @@ int fail (char *string,int code) char *getusername (char *s,char **t) { - char tmp[MAILTMPLEN]; if (*t = strchr (s,'+')) { /* have a mailbox specifier? */ *(*t)++ = '\0'; /* yes, tie off user name */ /* user+ and user+INBOX same as user */ - if (!**t || !strcmp ("INBOX",ucase (strcpy (tmp,*t)))) *t = NIL; + if (!**t || !compare_cstring ((unsigned char *) *t,"INBOX")) *t = NIL; } return s; /* return user name */ }