emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org2blog problems.
Date: Wed, 18 Dec 2013 19:45:33 -0500	[thread overview]
Message-ID: <87txe5fz2q.fsf@alphaville.bos.redhat.com> (raw)
In-Reply-To: 20131218180319.7105658f@london

Sharon Kimble <boudiccas@talktalk.net> 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

  parent reply	other threads:[~2013-12-19  0:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-18 18:03 org2blog problems Sharon Kimble
2013-12-18 18:26 ` Nick Dokos
2013-12-19  0:45 ` Nick Dokos [this message]
2013-12-20  3:47 ` Erik Hetzner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txe5fz2q.fsf@alphaville.bos.redhat.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).