emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Exporting calender to ical


From: Benny Simonsen
Subject: [O] Exporting calender to ical
Date: Mon, 10 Aug 2015 17:29:17 +0200

Hi
I use org-mode for exporting to ical files, but the "new" exporter in org-mode v. 8 gives me problems.

I have used Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/). In that version the export of the .org file listed below works fine.

Using Org-mode version 8.2.10 I have seen those issues:
- All subjects have got the timestamp in the subject
- Duration is the default duration even for even for events with a time-interval
   - Events with time-interval is show double
 This is a minor issue if I can specify duration in another way
- Location is missing
- UID format changed from starting with "UID: TS-" to "UID:TS<number>-"
  - Not an issue, if I remove old events before next export.

Should I format the org-file in another way? - I can't find any examples.

I would like to upgrade to the new org-mode for exporting calendar entries to get rid of the old org-mode and because there are needed some work arounds using the old exporter.

I normally uses it for importing into various google calenders. ... maybe I should do it in another way.

Br,
Benny

Shown below:
- Org-mode file
- ics file exported with 7.9.3f
- ics file exported with 8.2.10

Org-mode file:
#+TITLE:    Test
#+DESCRIPTION:  Show what worked in org-mode 7.9.3f
#+CATEGORY:    Test
#+PROPERTY: LOCATION Default Location that is included in ics events, Denmark

# Exporting using org-mode 7.9.3f
# #######################################################################
# open in emacs -q, Append old org-mode to load path:
# Eval: (add-to-list 'load-path "~/git/github.com/repo.or.cz/org-mode.release_7.9.3f-17-g7524ef/lisp")
# org-version: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)
# To create .ics file: Type C-c C-e i (2 times to get location info).

# Exporting using org-mode 8.2.10
# #######################################################################
# open in emacs -q (no init file),
# org-version: Org-mode version 8.2.10
# To create .ics file: Type C-c C-e c f (tried several times).


* Test
  :PROPERTIES:
  :ID:       9d651619-1322-4619-89bc-4855c769e124
  :END:
** <2015-08-11 12:00> Simple event, default duration
   :PROPERTIES:
   :ID:       71def5c6-2f7e-4560-88d9-f13187bfd9f8
   :END:
** <2015-08-12 12:00>-<2015-08-12 12:59> Event with specified duration
   :PROPERTIES:
   :ID:       d8056b59-c841-451c-b0b7-bbf8e8695838
   :END:
** <2015-08-13 12:00> Event at non-default location
   :PROPERTIES:
   :LOCATION: My home, Vodskov, Denmark
   :ID:       873a07ed-e059-41f9-8d76-c9c943a6afc6
   :END:
** <2015-08-13 12:00> Event with description
   :PROPERTIES:
   :ID:       3f182ce8-f8e2-4495-8749-e9f84b0a7aa7
   :END:
Some text description

* Local variables
  :PROPERTIES:
  :ID:       deb438aa-d0e5-435b-8fa7-7c7ddc5a85a3
  :END:
# Local Variables:
# org-icalendar-store-UID: t
# org-icalendar-include-body: t
# org-agenda-default-appointment-duration: 180
# End:

ics file exported with 7.9.3f:
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Test
PRODID:-//Benny Simonsen//Emacs with Org-mode//EN
X-WR-TIMEZONE:CEST
X-WR-CALDESC:nil
CALSCALE:GREGORIAN
BEGIN:VEVENT
UID: TS-71def5c6-2f7e-4560-88d9-f13187bfd9f8
DTSTART:20150811T120000
DTEND:20150811T150000
SUMMARY: Simple event\, default duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
UID: TS-d8056b59-c841-451c-b0b7-bbf8e8695838
DTSTART:20150812T120000
DTEND:20150812T125900
SUMMARY: Event with specified duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
UID: TS-873a07ed-e059-41f9-8d76-c9c943a6afc6
DTSTART:20150813T120000
DTEND:20150813T150000
SUMMARY: Event at non-default location
LOCATION: My home\, Vodskov\, Denmark
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
UID: TS-3f182ce8-f8e2-4495-8749-e9f84b0a7aa7
DTSTART:20150813T120000
DTEND:20150813T150000
SUMMARY: Event with description
DESCRIPTION: Some text description
CATEGORIES:Test
END:VEVENT
END:VCALENDAR

ics file exported with 8.2.10:
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:test
PRODID:-//Benny Simonsen//Emacs with Org mode//EN
X-WR-TIMEZONE:CEST
X-WR-CALDESC:Test
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-71def5c6-2f7e-4560-88d9-f13187bfd9f8
DTSTART:20150811T120000
DTEND:20150811T150000
SUMMARY:<2015-08-11 12:00> Simple event, default duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-d8056b59-c841-451c-b0b7-bbf8e8695838
DTSTART:20150812T120000
DTEND:20150812T150000
SUMMARY:<2015-08-12 12:00>-<2015-08-12 12:59> Event with specified duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS2-d8056b59-c841-451c-b0b7-bbf8e8695838
DTSTART:20150812T125900
DTEND:20150812T155900
SUMMARY:<2015-08-12 12:00>-<2015-08-12 12:59> Event with specified duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-873a07ed-e059-41f9-8d76-c9c943a6afc6
DTSTART:20150813T120000
DTEND:20150813T150000
SUMMARY:<2015-08-13 12:00> Event at non-default location
LOCATION:My home, Vodskov, Denmark
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-3f182ce8-f8e2-4495-8749-e9f84b0a7aa7
DTSTART:20150813T120000
DTEND:20150813T150000
SUMMARY:<2015-08-13 12:00> Event with description
DESCRIPTION:Some text description
CATEGORIES:Test
END:VEVENT
END:VCALENDAR


reply via email to

[Prev in Thread] Current Thread [Next in Thread]