From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org2blog problems. Date: Wed, 18 Dec 2013 19:45:33 -0500 Message-ID: <87txe5fz2q.fsf@alphaville.bos.redhat.com> References: <20131218180319.7105658f@london> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtRkQ-0004Rd-6G for emacs-orgmode@gnu.org; Wed, 18 Dec 2013 19:45:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtRkH-0003p2-JN for emacs-orgmode@gnu.org; Wed, 18 Dec 2013 19:45:54 -0500 Received: from plane.gmane.org ([80.91.229.3]:56942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtRkH-0003ox-C9 for emacs-orgmode@gnu.org; Wed, 18 Dec 2013 19:45:45 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VtRkF-0005J8-Ki for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 01:45:43 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Dec 2013 01:45:43 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Dec 2013 01:45:43 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sharon Kimble writes: > I have been attempting to use emacs org2blog but am now consistently > getting this error report - > Contacting host: www.sharons.org.uk:80 > xml-rpc-xml-to-response: XML-RPC fault `Incorrect username or password.' > > I'm using '.netrc' and this is - > machine host100 > myblog A taste of linux > login boudiccas > password rhubarbandcustard > > This is the relevant sections in my .emacs - > (setq load-path (cons "~/.emacs.d/elpa/org2blog-20130707.323" > load-path)) ;; depends on netrc, xml-rpc > (require 'netrc) > (require 'xml-rpc-autoloads) > (require 'org2blog-autoloads) > (require 'metaweblog) > > ;; load the entry 'A taste of linux' in the ~/.netrc, we obtain a > hash-map with the needed data ;; now enter the data in the org2blog > list of blogs (require 'netrc) ;; or nothing if already in the load-path > (setq blog (netrc-machine (netrc-parse "~/.netrc") "A taste of linux" > t)) (setq org2blog/wp-blog-alist > '(("A taste of linux" > :url "http://www.sharons.org.uk/xmlrpc.php" > :username (netrc-get blog "login") > :password (netrc-get blog "password")))) > (add-hook 'org-mode-hook 'org2blog/wp-mode) > > Why cant I log on with org2blog please? Is it because either .netrc or > org2blog have a maximum password length please? That’s the only thing > that I can think of as to why it is consistently failing. >From a very cursory reading, I'd say your .netrc is wrong - it should look like this: --8<---------------cut here---------------start------------->8--- machine "A taste of linux" login boudiccas password rhubarbandcustard --8<---------------cut here---------------end--------------->8--- Untested and with no warranty, express, implied or otherwise - in particular I don't know if the spaces in the "machine" name cause problems. OTOH, I think netrc.el parses it correctly. And I hope that the password is either fictitious or you are going to change it asap. Nick