Bug in IMP Debian package
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I think I've found a bug in IMP Debian package.
When I saved "Full Name" on preferences, IMP added a "<" to the end of the
full name. Then, when I sent a message, the "From:" appeared something like
that:
myname@my.host.com, UNEXPECTED_DATA_AFTER_ADDRESS@.SYNTAX-ERROR
I looked at the database and I found this "<" in the "Full Name" field. I
looked where this string was added to the database and I found this function
___________________________________________________________
if (isset($fullname) && ($fullname != $old_fullname)) {
// filter for existing quotes
if (substr($fullname, 0, 1) == '"' && substr($fullname, -1) == '"') {
$fullname = substr($fullname, 1, -1);
}
// filter for illegal characters
$quoted = imap_rfc822_write_address('', '', $fullname);
$quoted = substr($quoted, 0, strlen($quoted)-4);
if (!(imp_set_fullname(addslashes($quoted), $imp->user, $imp->server))) {
$errormsg .= $lang->fullname_error;
$updated = false;
}
}
_______________________________________________________________
I don't know a lot about PHP, so I don't fully understand this function, but I
changed the 8th line
$quoted = substr($quoted, 0, strlen($quoted)-4);
changing the -4 for a -5
$quoted = substr($quoted, 0, strlen($quoted)-5);
and now it works perfectly (I think).
My questions are:
Anyone faced this problem before? (In other words, is this a real bug or it's
only on my IMP?)
Should I inform IMP Debian package mantainer? Or IMP coders?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+jBt0GOU6HQZ81TcRAsXOAJ4t9aTOveJmC509qpv339w27jTT4gCeKu+p
monXKMtceZhkkLXtuJU2QnE=
=N8sd
-----END PGP SIGNATURE-----
Reply to: