[imp] imp-3.2.2 messes up from addresses

Tim Winders twinders at southplainscollege.edu
Wed Sep 17 09:55:07 PDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks!  But, that didn't work either...

Still getting:

	From: "\"twinders\""@southplainscollege.edu

in mail sent from IMP...

Thanks for your efforts...

=== Tim

     **********************************************
        Tim Winders, MCSE, CNE, CCNA
        Associate Dean of Information Technology
        South Plains College
        Levelland, TX  79336

        Phone:	806-894-9611 x 2369
        FAX:	806-894-1549
        Email:	TWinders at SouthPlainsCollege.edu
     **********************************************


On Wed, 17 Sep 2003, Peter Solodov wrote:

> On 16 Sep 2003, Peter Solodov wrote:
> > It still happens when addresses are inserted from address book,
> > didn't find where that happens yet.
>
> OK, found that one too.  See appended diff.
>
> Is anybody going to fix that in CVS?
>
>         - Peter
>
> --
> Peter Solodov                    | Concordia University
> http://alcor.concordia.ca/~peter | Montreal, QC, Canada
>
> --- imp-3.2.2/templates/contacts/javascript.inc.original        2002-09-12 19:45:02.000000000 -0400
> +++ imp-3.2.2/templates/contacts/javascript.inc 2003-09-17 12:35:12.000000000 -0400
> @@ -95,6 +95,23 @@
>          var field   = null;
>
>          fullname = fullname.substring(pos + 2, fullname.length);
> +
> +        // 2003/09/17 Peter Solodov: yet another escape fix
> +
> +        var start = 0;
> +        var end   = fullname.length
> +
> +        if (fullname[0] == '"')
> +        {
> +            start = 1;
> +        }
> +        if (fullname[fullname.length - 1] == '"')
> +        {
> +            end = fullname.length - 1;
> +        }
> +
> +        fullname = fullname.substring(start, end);
> +
>          fullname = fullname.replace(/\\/g, '\\\\');
>          fullname = fullname.replace(/"/g, '\\"');
>          if (address.substring(pos + 2, address.length).indexOf(",") > 0) {
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (OSF1)
Comment: Made with pgp4pine 1.76

iD8DBQE/aJHuTPuHnIooYbwRAlWgAKCYRzeGkwIjiVgwDXdJh6hX+c0mnACgvobf
591aAD8WRx+JAubqm/ZaOLw=
=KWaB
-----END PGP SIGNATURE-----



More information about the imp mailing list