[Evolution-hackers] Issues with attachment handling in calendar



Good day,

I came across the following issues today while trying to implement attachment support for the scalix calendar backend:
  1. Evolution crashes if it has no idea where the local attachment store for a specific provider is (crash appears in cal-attachment-bar.c:884). Upon further investigation it turns out that the path to the attachment store is hard-coded in libecal (e-cal.c) for every backend (file, gw, exchange) without a fallback. First, provider-specific things like that should not be in libecal, instead there should be a backend call for this. Second, the caller should check for a NULL value and fallback to some default attachment location. Or even better, if the pathname in the ATTACH property is absolute then just take this value.
  2. Evolution assumes that the filename of an attachment is "<component-uid>-<mime-filename>". This is a problem when there are two attachments in a component that have the same filename. It would be better to use the attachments CID instead of the UID since those are unique in a message.
I will open a bug for this later today. If someone has comments, ideas etc please chime in.

Cheers,
Carsten
begin:vcard
fn:<b>Carsten Guenther</b>
n:Guenther;Carsten
org:<center><a href="http://www.scalix.com";><img border="0" src="http://www.scalix.com/images/logo.gif"/></a></center>
adr:Suite 602;;1400 Fashion Island Blvd;San Mateo;CA;94404;USA
email;internet:carsten guenther scalix com
x-mozilla-html:TRUE
url:http://www.scalix.com
version:2.1
end:vcard



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