X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/blobdiff_plain/781cfcb8fd50934c470e0dabf79d32ab333dec68:/rfc822/imapsubj.c..f77892e671e1261ec26e5133f86b8a52635f3dd2:/libs/rfc822/imapsubj.c diff --git a/rfc822/imapsubj.c b/libs/rfc822/imapsubj.c similarity index 98% rename from rfc822/imapsubj.c rename to libs/rfc822/imapsubj.c index 9511254..2f6adfd 100644 --- a/rfc822/imapsubj.c +++ b/libs/rfc822/imapsubj.c @@ -4,14 +4,13 @@ */ /* -** $Id: imapsubj.c,v 1.10 2006/04/11 02:24:59 mrsam Exp $ */ +#include "config.h" #include #include #include #include #include "rfc822.h" -#include "config.h" #if HAVE_STRCASECMP @@ -262,7 +261,10 @@ char *rfc822_coresubj(const char *s, int *hasrefwd) for (r=q; *r; r++) if ((*r & 0x80) == 0) /* Just US-ASCII casing, thanks */ - *r=toupper((int)(unsigned char)*r); + { + if (*r >= 'a' && *r <= 'z') + *r += 'A'-'a'; + } stripsubj(q, hasrefwd, 0); return (q); }