* Internet: MRC@CAC.Washington.EDU
*
* Date: 5 April 1993
- * Last Edited: 10 September 2007
+ * Last Edited: 30 October 2008
*/
\f
#include <stdio.h>
/* 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 */
/* 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 ();
* Internet: MRC@CAC.Washington.EDU
*
* Date: 5 April 1993
- * Last Edited: 17 September 2007
+ * Last Edited: 30 October 2008
*/
\f
#include <stdio.h>
/* 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 */
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 */
}