Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.freenet.ag!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Lele Gaifax Newsgroups: comp.lang.python Subject: Re: netrc and password containing whitespace Date: Thu, 24 Mar 2016 16:03:07 +0100 Organization: Nautilus Entertainments Lines: 31 Message-ID: References: <87wposnpx4.fsf@metapensiero.it> <1458829981.3529604.558622250.1EE36599@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de Phhr3YakT+sjUeML4owgBQkcaMSw+1aEcGYys7A4QwBA== Cancel-Lock: sha1:xTEUmHxCxmXRIWWatCMyxGpl25Y= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:password': 0.05; 'received:151': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'stored': 0.10; ':-)': 0.12; 'quoted': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'trying': 0.22; 'seems': 0.23; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'entries': 0.27; 'idea': 0.28; "i'm": 0.30; 'entry': 0.31; 'aside': 0.32; 'though,': 0.32; 'surprised': 0.33; 'file': 0.34; 'handle': 0.34; 'that,': 0.34; 'trouble': 0.35; 'generic': 0.35; 'url:org': 0.36; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'two': 0.37; 'received:org': 0.37; '(with': 0.38; 'format': 0.39; 'does': 0.39; 'to:addr:python.org': 0.40; 'called': 0.40; 'your': 0.60; 'default': 0.61; 'programs': 0.62; 'skip:n 10': 0.62; 'more': 0.63; 'aver': 0.66; 'account': 0.66; 'che': 0.67; 'prompt': 0.79; 'quello': 0.84; 'quando': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 151.62.77.221 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105624 Random832 writes: > The implementation seems very basic... I ran into trouble trying to > store entries with no password (with the idea in mind of having my > program prompt for the password), though, out of curiosity, does ftp > handle your quoted passwords? Uhm, dunno :-) I think it's been more than two decades since my last use of FTP... I use it as a generic auths pocket, mainly for emails and IRC. I found the glitch adding an entry for a new account in my offlineimap configuration. > Also, I'm surprised that you're using .netrc for emacs - in my > experience the file emacs uses is called .authinfo. AFAICT, that's just the default file name stored in netrc-file, the format is really the same. Using .netrc has the advantage that other programs can use it, like the cited offlineimap. Aside that, the functionality is exposed in Emacs as netrc-xxx, and comes from net/netrc.el. Cfr. also https://www.emacswiki.org/emacs/GnusAuthinfo. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.