Hi, It would be great if Orage could handle a second calendar as a read-only source. For example, ~/.config/xfce4/orage/external.ics. If it could also use a ~/.config/xfce4/orage/externalrc or equivalent to be able to specify an action to run when editing an event from this external source, it'd be perfect. This would allow other calendar applications to be able to show their events in Orage, and to change them using this application; I'm thinking about the Claws Mail vcalendar plugin, for example. Thanks, Colin
chanching product
There will be export/import in Orage 4.5. In other words it will be possible to import other calendar files into Orage and export Orage appointments into os calendar files. Not sure if this is what you need?
(In reply to comment #2) > There will be export/import in Orage 4.5. > In other words it will be possible to import other calendar files into Orage > and export Orage appointments into os calendar files. Good news! > Not sure if this is what you need? That'll help, for sure. With this, users will be able to subscribe to any calendar. What would be nice however, is if an external program could add or remove a "feed"; to re-use my previous example: this way I could add a little checkbox in Claws' calendar plugin preferences, [x] Export calendar to Xfce's Orage I don't know if I'm really clear :) but in any case, when you'll have done the hard import/export work in Orage, I may probably be able to dive into its code and propose a patch.
sounds good. let's get back to this after Xfce 4.4 has been released.
Moving all bugs to new Orage product.
Orage export import is now available in svn (orage version 4.5.7+). Note that this is not production version, so there are some extra messages etc. But it would be great, if you could try and let me know if this is what you wanted? Or should Orage keep the external file separate permanently? Now import combines it with other Orage appointments and the added file does not exist after that.
(In reply to comment #6) Cool, you've been fast! :) > But it would be great, if you could try and let me know if this is what you > wanted? Or should Orage keep the external file separate permanently? Now import > combines it with other Orage appointments and the added file does not exist > after > that. Yes, that's what I thought about - it'd allow to have Orage display an external source that it doesn't really handle, and for which updates come from somewhere else (in my case, it'd be the mailer's events list, or it could also be a calendar downloaded off the web from a crontab, etc)...
Anyway, I tested the import/export in SVN, and it worked very nicely. It's just missing a little feedback to notify of import success, maybe ;) By testing I had a look at the GUI, and maybe what I'd like could be achieved with two radio buttons in the Import tab: Read file: [ ] [find] (o) Merge file into Orage calendar ( ) Subscribe to this calendar
Or, also, what I need could be achieved with no GUI at all, by having Orage just scan a given directory, (~/.config/xfce4/orage/subscriptions/ for example) for .ics files, updating them when their mtime changes.
Thanks Colin, I think I get the idea now. But it will take some time, being a bit busy now. I will update this BUG after there is progress in this. (And by the way, the code is full of: /* FIXME: proper messages to screen */ so I will add those feedback...I just was not sure which version of the import I keep...)
Great, thank you !
revision 25178 in svn contains now first draft of this feature. There are known problems still (specially in handling ical strings that libical is not able to handle or Orage expects to find), but I hope this code is enough to get feedback if it is delivering what is needed in this feature request. Please, check and let me know how it looks like. The change was rather big.
Great! I'll test that asap. svn updating... :)
Well, it seems to work great! It only doesn't bold the days which have events from the foreign files. Maybe that's on purpose? but I suppose it'd be nice to be able to differentiate these days with foreign events, even if differently...
Created attachment 1034 patch against svn 25178 Hi, this patch adds handling of foreign files adding/deleting via the command-line. Its inclusion would allow me to have a "Share calendar with Orage" checkbox in my MUA's preferences... I hope it's fine!
Created attachment 1035 2nd patch against 25178 This second patch enables marking days from foreign ical files too.
Thanks. Yes I forgot to add the markings. And nice patch for the command line, too. Will add soonish when I have a bit time to check those.
Added your fixes to svn revision 25250. Small differences: 1) added RW option to add foreign file (-a). makes it possible to add ReadWrite files from command line also 2) added check to prevent cmd line foreign file updates when orage foreign files maintenance window is open. 3) start orage when adding/deleting foreign file if orage is not started Thanks alot for your help here!!
Thanks for your time and kindness! It's been really enjoyable to work together :)
Hmm, by the way, it looks like you forgot the patch about the marking of days ;)
Not really, but I forgot to add code to do it immediately after the add/delete foreign file Should work now in svn revision 25253. There may be more bugs on this. it is kind of big change and pretty complex....
Ok, thanks! I'll watch my Orage clock closely, and will open other bug(s) if I find any. Will it be released with Xfce 4.4.1? (I think it'll be a bugfix release, so I suppose it won't...)
Yes 4.4.1 is for bug fixes only so this will not be there. But I try my best to keep svn stabil so that it should be safe to use that.
in 4.5.9 (svn)