[Patch] move to libical

Albrecht Dreß <[email protected]> Sun, 19 Jan 2020 16:01:30 +0100
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
Hi all,

finally, I have a patch ready which uses libical for displaying text/calendar parts in Balsa.  The old code was /very/ limited and had almost no capabilities for displaying complex requests.

Although the new implementation eliminates the code for scanning the events, I added a few more fields from the events as well as a *lot* of code for decoding recurrence rules which may be *very* complex (compare RFC 5545, Sect. 3.3.1).  Actually, I implemented most of this stuff (which amounts to ~½ of libbalsa/rfc2445.c) as in Thunderbird's Lightning extension, so I /hope/ it covers most common cases.  I have a bunch of test messages, created in Thunderbird, to demonstrate parsing, just let me know if you would like to check them (or try yourself…).

The patch applies to both the master and the gmime3 branches (the latter seems to be somewhat behind master, though?).

As always, any comment is welcome!

Cheers,
Albrecht.

---
Patch details:
- README: fix package requirements
- configure.ac, meson.build: require libical >= 3.0.0 (note: not tested for Meson builds)
- libbalsa/rfc2445.[ch]: mostly re-written, using the libical parser and data types
- src/balsa-mime-widget-vcalendar.c: add additional event items; use the new rfc2445.h api
- src/balsa-print-object-text.c: fix two pango test layout memory leaks; add additional event items; use the new rfc2445.h api
- src/print-gtk.c: fix part selection for printing text/calendar

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list
libical.diff.bz2 (application/x-bzip, 15.1 KB) - not displayed
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcCEPemLFTtyGf4zATKlvDmfn2fgFAl4kb0oACgkQTKlvDmfn
2fiUaAgAxX6GkeboS06tAIpkUBpiV4vJF+Xx1fMGwM5RempIiLXp32GGJ3MVbg9p
wsX3D+lS4MjOanXvQxhPKlM9XQay+bk5Fgat9ZJFB0HYRc3/S2pIfVULsYvx53Yf
t8JIEBGdAC030jDswSNKDCkKAMqLekOuhreNrj7K51Uq3BGaaMkVVii1RjSdHpK0
xlV65eClRZDlvFzasq7kY4tOlFf9mbZHpS/vrimS8kE8bBqcER2gH4/W9+g88EZO
wZFeK3oP0nuR1loIVCOLHQL37LyfllfFRhkNRPACxHpmGZRtH16O/Cu4KB2xUIOY
n4e5zRu7w63CA+f6H0v/KKPrYap5KQ==
=YvOK
-----END PGP SIGNATURE-----