|
From: <le...@pr...> - 2005-01-29 13:35:27
|
Update of /cvsroot/meshdb/src/mailt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7763 Modified Files: util.c Log Message: merge Yahoo! fix from r1.1.1.1.2.2 into HEAD Index: util.c =================================================================== RCS file: /cvsroot/meshdb/src/mailt/util.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- util.c 29 Jan 2005 13:08:42 -0000 1.2 +++ util.c 29 Jan 2005 13:35:19 -0000 1.3 @@ -20,6 +20,7 @@ int spaces = 0; /* + * =?iso-8859-1?q?F S?= -> F S * u@h -> u@h * F S <u@h> -> F S * "F S" <u@h> -> F S @@ -36,6 +37,17 @@ *sp = s; *ep = e; + /* Hooray! for! Yahoo! */ + if (s + 15 < e && memcmp(s, "=?iso-8859-1?q?", 15) == 0) { + cstring_t f; + for (f = s + 15; f + 1 < e; f++) + if (f[0] == '?' && f[1] == '=') { + *sp = s + 15; + *ep = f; + return; + } + } + /* Skip, and record text in angled brackets */ if (s < e && *s == '<') { s++; |