From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sven Bretfeld" Subject: [org-feed] Some problems with Remember the Milk and org-feed Date: 4 Mar 2010 20:36:37 +0100 Message-ID: <87y6i7lvzu.fsf@gmx.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnGrW-0006BB-SR for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 14:37:34 -0500 Received: from [140.186.70.92] (port=35727 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnGrU-0006At-FG for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 14:37:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NnGqf-00080n-B6 for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 14:36:42 -0500 Received: from mx1.rz.ruhr-uni-bochum.de ([134.147.32.86]:48414) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NnGqf-00080Y-0X for emacs-orgmode@gnu.org; Thu, 04 Mar 2010 14:36:41 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-org Hi to all As I have said before, I can recommend www.rememberthemilk.com (RTM) to capture tasks and dates on an Android phone as long as MobileOrg for Android is still under development. I will post my setup at the bottom of this posting. Maybe it's of use for others. There are still two problems I encountered: 1. Emacs needs login information to access the RTM feed. I have not figured out yet, how to automatize that. At the moment I type in username and password once after I started a new Emacs session. 2. I start org-feed every hour with a run-at-time function. Every 2nd or 3rd time, Emacs is unable to read the feed and hangs forever, the minibuffer saying something like "Reading 18 bytes". I haven't figured out the reason for this problem yet. It might have something to do with the creation of the feed by the RTM page. Usually it works again after I have accessed the feed with another feedreader. The problem also seems to occur every time when the feed is completely empty. All I can say is that the freezing occurs before Emacs even had asked for the login information, i.e. directly after hitting C-c C-x g in a new Emacs session. However, sometimes it works well even in a new session. The message buffer says nothing. How can I make Emacs more verbose to track the problem? Thanks for help, Sven Here is my setup for org-feed with RTM. After the above problems will be solved, I will also publish this and my way of using Android together with orgmode on Worg. --8<---------------cut here---------------start------------->8--- (if (string-equal system-name "kamaloka") ;; Because I want only one of my (always running) computers to insert ;; the feeds. If you don't need that, delete the first line and the last ;; bracket. (setq org-feed-alist '(("RTM" ;; The 1st feed is for tasks. I use the Inbox of RTM for that. ;; You have to insert @@h for :HOME: or @@o for :OFFICE: ;; so that the RTM entry looks like this: ;; `Do your laundry @@h' or ;; `Read Sam's report @@o'. "https://www.rememberthemilk.com/atom/[username]/[number_of_the_feed]/" "~/aktuell/myconf/mygtd.org" "New Tasks" :template "* NEXT %title" :parse-feed org-feed-parse-atom-feed :parse-entry org-feed-parse-atom-entry) ("RTM-Termine" ;; The 2nd feed is for dates. I use a RTM folder called `dates' ;; for that. ;; You have to insert @@ and the date and time without any ;; format, so that the RTM entry looks like this: ;; `Meeting with Sam @@10030411:15-12:45' or ;; `Lunch @@10030413:00. ;; It will be converted to <2010-03-04 11:15-12:45> "https://www.rememberthemilk.com/atom/[username]/[number_of_the_feed]" "~/aktuell/myconf/mygtd.org" "Termine" :template "* APPT %title" :parse-feed org-feed-parse-atom-feed :parse-entry org-feed-parse-atom-entry) ))) (defun rtm-dateconf () "This function converts the RTM feeds into the orgmode format." (interactive) (beginning-of-buffer) (while (re-search-forward "@@\\([0-9][0-9]\\)\\([0-9][0-9]\\)\\([0-9][0-9]\\)\\([0-9]*[0-9]+:[0-9][0-9]\\)\\([-]*[0-9]*[0-9]*[:]*[0-9]*[0-9]*\\)" nil t) (replace-match "\n <20\\1-\\2-\\3 \\4\\5>" nil nil)) (beginning-of-buffer) (while (re-search-forward "@@h" nil t) (replace-match ":HOME:" nil nil)) (beginning-of-buffer) (while (re-search-forward "@@o" nil t) (replace-match ":OFFICE:" nil nil)) (save-buffer "mygtd.org") ) (add-hook 'org-feed-after-adding-hook 'rtm-dateconf) ;; Run org-feed once every hour. (if (string-equal system-name "kamaloka") (run-at-time 3600 3600 'org-feed-update-all)) --8<---------------cut here---------------end--------------->8---