bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to specify a username with a @ in a URL ?


From: Sam Roberts
Subject: Re: how to specify a username with a @ in a URL ?
Date: Thu, 31 Oct 2002 17:49:46 -0500
User-agent: Mutt/1.5.0i

You have to escape special characters, it's the same scheme you may have
seen in urls in web browsers, replace the "@" with "%40" (@ is 40 hex).
At least, if it works as intended, that will work... and before you ask,
no, their is a url_decode(), but not a url_encode(), currently.

Actually, you don't have to do any of this at all. You already have a
callback attached so you can give the password, right? Use it to provide
the username as well. If you're building these urls with sprintf() just
to specify the username, just use the ticket callbacks, it will likely
be easier for you. Then only the auth method has to go in the url.

Cheers,
Sam

Wrote Olivier Bornet <address@hidden>, on Wed, Oct 30, 2002 at 02:04:31PM +0100:
> Hello,
> 
> some servers have the full email as username. (At least, I use one where
> this is the case...) How can I specify this in an url ? Seems the @ in
> the username is confusing the computation of the server name. For
> example, I want to specify:
> 
>       pop://address@hidden:address@hidden
> 
> or even without password:
> 
>       pop://address@hidden@mailer.for.my.domain
> 
> address@hidden is the username,
> mailer.for.my.domain is the server name.
> 
> Thanks in advance for any help.
> 
>               Olivier
> -- 
> Olivier Bornet                      http://www.smartdata.ch/
> address@hidden         SMARTDATA SA
> Phone: +41-27-723'55'03             Rue du Collège 5A
> GPG key ID: C53D9218                CH-1920 Martigny



-- 
Sam Roberts <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]