After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 352767 - Calendar is displayed as plain text, if UUEncoded
Calendar is displayed as plain text, if UUEncoded
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.2.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-08-25 00:52 UTC by Nick Sukharev
Modified: 2013-09-10 14:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
proposed patch (1.38 KB, patch)
2006-08-25 01:02 UTC, Nick Sukharev
committed Details | Review
sample message with such attachment (3.54 KB, application/octet-stream)
2006-08-25 13:25 UTC, Nick Sukharev
  Details
I used a wrong file extension for the calendar file (3.54 KB, application/octet-stream)
2006-08-25 15:23 UTC, Nick Sukharev
  Details

Description Nick Sukharev 2006-08-25 00:52:53 UTC
Calendar UI is not rendered if the *.ics attachment is in UUEncode (begin 666/stuff/end). 

Steps to replicate:
1) Obtain an email with a calendar attached as UUEncode. Microsoft Exchange Web generates such emails. I will try to attach one exported message to this bug report.
2) Open this email with Mozilla. Calendar will be displayed in plain-text (text contents of the *.ics file). 

Expected results: same behavior as for MIME attachments. Calendar UI has to be displayed. I will try to attach a patch that fixed this issue for me. It got ignored on the patches forum. Hopefully, it will find its way into one of the releases.
Comment 1 Nick Sukharev 2006-08-25 01:02:57 UTC
Created attachment 71556 [details] [review]
proposed patch

alas, it took me almost half a year to find time to register it as a bug report. It is a one line fix though. Hopefuly it will not be to hard to change the current code base in a similar way.
Comment 2 André Klapper 2006-08-25 04:22:36 UTC
hey nick,
thanks a lot for the patch! can you perhaps attach an UUEncode ics example file (please make sure that there is no confidential data included), so i can test this patch? thanks in advance!
Comment 3 Nick Sukharev 2006-08-25 13:25:45 UTC
Created attachment 71597 [details]
sample message with such attachment

attached is an email that can be used for testing. It took a while to clean all the private data from it. I was able to import it into Evolution using Import/Single File function.
Comment 4 Nick Sukharev 2006-08-25 15:23:55 UTC
Created attachment 71600 [details]
I used a wrong file extension for the calendar file

Evolution seems to ignore the extension but I attach this second fixed version just in case.
Comment 5 André Klapper 2006-08-29 14:27:23 UTC
i took a look at the testmail before and after applying your patch, and it works fine for me.
the appointment also sounds nice. ;-)
we should get this in for evolution 2.8.1 (we're already under code freeze for 2.8.0).
Comment 6 Chenthill P 2006-09-14 08:45:29 UTC
I reckon someone from the mailer team to review this patch. Adding varadhan and sankar in the CC list.
Comment 7 Chenthill P 2006-09-14 08:49:16 UTC
assigning it to sankar.
Comment 8 Sankar P 2006-09-27 13:31:07 UTC
Looks good. Commit with ChangeLog.
Comment 9 André Klapper 2006-09-29 17:58:30 UTC
nick: thanks again for the patch! (for future reference, please add the bug id to your changelog entry. applied your changelog entry to /mail/changelog instead of /changelog :-)

committed on behalf of nick to CVS HEAD (which is evolution 2.8.x and 2.9.x currently) and gnome-2-14 branch (which is evolution 2.6.x currently):
http://cvs.gnome.org/viewcvs/evolution/mail/em-format-html.c?r1=1.92&r2=1.93
http://cvs.gnome.org/viewcvs/evolution/mail/em-format-html.c?r1=1.86&r2=1.86.2.1

fix will be included in evolution 2.8.1.