Re: when user in ftp has a @ inside

"calmar c." <[email protected]> Tue, 27 Nov 2012 00:28:24 +0100
Newsgroups gmane.comp.tools.aap.devel
Organization calmar.ws
Message-ID <[email protected]>
On Mon, Nov 26, 2012 at 11:14:14PM +0100, Bram Moolenaar wrote:
Hi Bram,

Well this seems to work fine:

--- CopyMove2.py        2012-11-27 00:27:23.061417243 +0100
+++ CopyMove.py 2012-11-27 00:25:35.913425063 +0100
@@ -189,7 +189,7 @@
     msg = ''
 
     # For "user:[email protected]" split at the @
-    i = string.find(mach, '@')
+    i = string.rfind(mach, '@')
     if i > 0:
         user = mach[:i]
         machname = mach[i+1:]


cheers
marco


> 
> Marco wrote:
> 
> > how could login/use ftp, when the user itself has a @ inside.
> > Example: 
> > 
> > user is: user-9IKiO1iGCm/[email protected]
> > passwort: pass
> > domain: xy.com
> > 
> > so far I used:
> > 
> > user-9IKiO1iGCm/[email protected]:[email protected]
> > 
> > then user is taken as the user.
> > 
> > Maybe I'm doing something wrong, oder the string should get
> > splitted (or however) at the last @ to get the user:passwort combo
> > and the url?
> 
> Sorry, I have not looked at this code for ages.  Well, years at least.
> 
> Can you use a line in your ~/.netrc to work around it?
> 
> Not sure when I would have time to look into fixing this.
> 
> -- 
> hundred-and-one symptoms of being an internet addict:
> 75. You start wondering whether you could actually upgrade your brain
>     with a Pentium Pro microprocessor 80.  The upgrade works just fine.
> 
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\  an exciting new programming language -- http://www.Zimbu.org        ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
> 
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> A-A-P-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/a-a-p-develop

-- 
   (o_  It rocks: LINUX + Command-Line-Interface
   //\                           GPG: 0x59D90F4D
   V_/_                     http://www.calmar.ws

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov