svn path=/trunk/; revision=3397
* Don't depend on having snprintf available.
* Bug fix for envskip.
* ODMR finally seems to be working.
+* Handle multiple backslashes within RFC822 address strings correctly.
fetchmail-5.8.11 (Sun Jul 1 21:39:26 EDT 2001), 20973 lines:
case 2: /* we're in a string */
if (*from == '"')
- state = 1;
+ {
+ char *bp;
+ int bscount;
+
+ bscount = 0;
+ for (bp = from - 1; *bp == '\\'; bp--)
+ bscount++;
+ if (bscount % 2)
+ state = 1;
+ }
break;
case 3: /* we're in a <>-enclosed address */