POP3 as URL

Max Waterman <[email protected]> Wed, 16 Nov 2005 09:48:42 +0800
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
Hi,

I tried to use a Mail::Box::Manager->open() method on a POP3 server 
specified as an URL, in a similar way to the example :

pop3://user:[email protected]:101

unfortunately, both my 'user' and 'password' contain '@'. I suspect 
usernames and, particularly, passwords containing ':' would also be a 
problem.

I see a comment about url-encoding the password, but my attempts to do 
this failed.

Can someone give me an example of encoding usernames and passwords so 
that I can specify the server as a URL (it's so much cleaner, IMO)?

Thanks!

Max.