More charset parsing updates

This commit is contained in:
Michiel Broek
2005-08-14 14:35:36 +00:00
parent 1b9bb9deb4
commit 506a091e4c
4 changed files with 22 additions and 7 deletions

View File

@@ -277,6 +277,11 @@ int rfc2ftn(FILE *fp)
} else {
charset = xstrcpy(q + 8);
}
/*
* Sometimes more information follows so there the charset looks like iso-8859-1;
*/
if (charset[strlen(charset)-1] == ';')
charset[strlen(charset)-1] = '\0';
Syslog('m', "Charset \"%s\"", printable(charset, 0));
}
}