[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Patch for script to import feeds from Remember the Milk
From: |
Lineone |
Subject: |
[O] Patch for script to import feeds from Remember the Milk |
Date: |
Tue, 28 Jan 2014 05:30:03 +0000 |
User-agent: |
Zoho Mail |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] Patch for script to import feeds from Remember the Milk,
Lineone <=