* Patch for script to import feeds from Remember the Milk
@ 2014-01-28 5:30 Lineone
0 siblings, 0 replies; only message in thread
From: Lineone @ 2014-01-28 5:30 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I have used this script
http://lists.gnu.org/archive/html/emacs-orgmode/2012-03/msg00197.html
to import my RTM Atom feeds into org.
The execution fails (no feed is downloaded) whenever the "Due:" field in at least one entry contains a time in addition to the date.
The following patch seems to solve the problem
- (string-match "^\\([a-zA-Z]*\\) \\([0-9]*\\) \\([a-zA-Z]*\\) \\([0-9]*\\)$" mydate)
- (setq mydate (concat "20" (match-string 4 mydate) " " (match-string 3 mydate) " " (match-string 2 mydate) " 00:00:01"))
+ (string-match "\\([0-9]*\\) \\([a-zA-Z]*\\) \\([0-9]*\\)" mydate)
+ (setq mydate (concat "20" (match-string 3 mydate) " " (match-string 2 mydate) " " (match-string 1 mydate) " 00:00:01"))
Thanks to Arun Persaud for the original script.
Giulio
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-28 5:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-28 5:30 Patch for script to import feeds from Remember the Milk Lineone
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).