Bug #671172 - camel: smtp: Make EHLO keywords check case insensitive
authorPawel Moll <mail@pawelmoll.com>
Mon, 26 Mar 2012 15:41:14 +0000 (17:41 +0200)
committerMilan Crha <mcrha@redhat.com>
Mon, 26 Mar 2012 15:41:14 +0000 (17:41 +0200)
commit61fa51ad86b07ba7830db4d5bb9c0a15081ca7e2
treeb0c2bc0531d0e9dd97d0d1a153fc020907a321d5
parent67d573c5082135b0fb0783348e146282037213b1
Bug #671172 - camel: smtp: Make EHLO keywords check case insensitive

According to section 4.1.1.1 of RFC 2821 (last paragraph,
see tools.ietf.org/html/rfc2821#section-4.1.1.1):

   Although EHLO keywords may be specified in upper, lower, or mixed
   case, they MUST always be recognized and processed in a case-
   insensitive manner.  This is simply an extension of practices
   specified in RFC 821 and section 2.4.1.

Current smtp_helo() implementation is using strncmp() - replace them
with g_ascii_strncasecmp().
camel/providers/smtp/camel-smtp-transport.c