Bug 4874 - vCalendar plugin does not register in Orage
Summary: vCalendar plugin does not register in Orage
Status: CLOSED WORKSFORME
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: Plugins/vCalendar (show other bugs)
Version: 4.1.1
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2025-06-20 11:11 UTC by claws-bug
Modified: 2025-06-21 16:51 UTC (History)
0 users

See Also:


Attachments

Description claws-bug 2025-06-20 11:11:16 UTC
Although the according setting is activated (including automatic export), no dates appear in Orage, also neither the vCalendar plugin's internal.ics, nor the automatically exported file do appear in Orage under 'foreign files' list.
Comment 1 Paul 2025-06-20 12:55:41 UTC
Your comment assumes knowledge of orage. Please provide more info.
Comment 2 Paul 2025-06-20 13:05:34 UTC
I gave myself a quick crash course in Orage:

I exported a calendar in Claws Mail to an .ics file.

In Orage I opened /File/Exchange data.

Then use 'Add new foreign file' to select the exported .ics file, and clicked 'Add'.

Then the meeting in the exported .ics file was visible from Orage's calendar window.
Comment 3 claws-bug 2025-06-20 13:11:08 UTC
[Sure, what do you need?]
The vCalendar plugin has a setting to register the Claws calendar in XFCE Orage. With activating the setting, I expected to either see the dates from Claws in Orage directly (somehow), or to see the Claws calendar in Orage in the 'Foreign files' tab in the 'Exchange Data Window' (https://docs.xfce.org/apps/orage/application_windows#exchange_data_window), where Orage would then show the dates from that Claws calendar, as soon as they get changed/added/deleted.

Both things do not happen. Orage does not show the dates from Claws, like the plugin's setting suggests it would do. 
(Still one could add the Claws internal.ics manually as foreign file to Orage, but then the Claws setting for it would not be needed.)


Probably some DBus call from the Claws plugin to Orage could solve the issue, but I am not that much into Orage to be a real help for that, although at least there seems to be a method AddForeign, which sounds very much like it could do the job. (LoadFile will do a once-only import of dates from a .ics file into the default Orage calendar, without reflecting any further change of that .ics)

```
$ qdbus org.xfce.orage /org/xfce/orage                                                                      method QString org.freedesktop.DBus.Introspectable.Introspect()
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface, QString propname)
method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface)
method void org.freedesktop.DBus.Properties.Set(QString interface, QString propname, QDBusVariant value)
method void org.xfce.orage.AddForeign(QString file, bool mode, QString name)
method void org.xfce.orage.ExportFile(QString file, int type, QString uids)
method void org.xfce.orage.LoadFile(QString file)
method void org.xfce.orage.RemoveForeign(QString file)
```
Comment 4 Paul 2025-06-21 06:19:21 UTC
On further testing, the option "Register Claws' calendar in XFCE's Orage clock" also works for me: a meerting created in Claws Mail instantly shows in Orage when the meeting day is selected in Orage.

DBus is used. If Claws Mail is not built with DBus support then the option "Register Claws' calendar in XFCE's Orage clock" is enabled. Otherwise it is greyed-out and inactive.
Comment 5 claws-bug 2025-06-21 16:33:30 UTC
Like I hate these things, but works for me too … today.
No idea why, had many combinations tested yesterday, and not even a reboot in between…

At least of course nice it works :-)
Comment 6 Paul 2025-06-21 16:51:21 UTC
Nice. Thanks for reporting back.

Note You need to log in before you can comment on or make changes to this bug.