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 332605 - mail-to-task creates a task blocking the whole task component
mail-to-task creates a task blocking the whole task component
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Tasks
2.6.x (obsolete)
Other other
: Urgent critical
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
: 301075 303641 306215 306218 331698 335619 336506 336577 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-02-26 10:08 UTC by klaus-peter.schubert
Modified: 2013-09-10 14:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
proposed patch (1.13 KB, patch)
2006-04-25 08:06 UTC, Hiroyuki Ikezoe
none Details | Review
revised patch (3.25 KB, patch)
2006-04-27 05:06 UTC, Hiroyuki Ikezoe
needs-work Details | Review
revised patch (3.82 KB, patch)
2006-05-08 00:39 UTC, Hiroyuki Ikezoe
none Details | Review
update patch (4.56 KB, patch)
2006-05-08 02:53 UTC, Hiroyuki Ikezoe
needs-work Details | Review
revised patch (4.98 KB, patch)
2006-05-11 12:10 UTC, Hiroyuki Ikezoe
committed Details | Review

Description klaus-peter.schubert 2006-02-26 10:08:51 UTC
Distribution: Debian testing/unstable
Package: Evolution
Severity: blocker
Version: GNOME2.12.2 2.4.x
Gnome-Distributor: Debian
Synopsis: mail-to-task creates a task blocking the whole task component
Bugzilla-Product: Evolution
Bugzilla-Component: Tasks
Bugzilla-Version: 2.4.x
Description:
Description of Problem:
With the plug-in mail-to-task I created a task
from a mail. When I switch to the task view and click on the task,
evolution starts to run in a loop for hours and can only be killed.


Steps to reproduce the problem:
1. restart debian linux and evolution
2. switch to task view	
3. click on the task

Actual Results:
evolution runs in a loop

Expected Results:
the task description should open

How often does this happen?
every time

Additional Information: The mail was marked as important and had 4 pdf
attachments (together about 1 MB). There were are no other tasks.




------- Bug created by bug-buddy at 2006-02-26 10:08 -------

Comment 1 André Klapper 2006-02-26 19:11:24 UTC
if you start evolution from a shell, is there any valuable output?
Comment 2 klaus-peter.schubert 2006-02-27 06:35:01 UTC
started from the terminal in Galeon Evolution works. Also a mail-to-task worked with a mail without an attachment. But this works also with a normal start from within Galeon.
Meanwhile I somehow managed to delete the blocking task by deleting the task.ics file. But I don't dare to repeat it with the mail with 4 pdf attachments of together about 800 KB.
Comment 3 Simon Hepburn 2006-03-21 21:39:28 UTC
I am experiencing the same problem on Ubuntu Dapper with evo 2.6. The mail I converted to a task had a 130k winmail.dat attachment. This is only a problem when trying to open the task from the main Tasks view. From the Calendar view I can open the task succesfully.

Package: evolution
Priority: optional
Section: gnome
Installed-Size: 33800
Maintainer: Debian Evolution Maintainers <pkg-evolution-maintainers@lists.alioth.debian.org>
Architecture: i386
Version: 2.6.0-0ubuntu3
Comment 4 Daniel Holbach 2006-03-23 12:30:52 UTC
Reported at https://launchpad.net/distros/ubuntu/+source/evolution/+bug/6393 as well.
Comment 5 André Klapper 2006-03-29 22:03:12 UTC
confirming as per duplicates.
Comment 6 André Klapper 2006-03-29 22:03:44 UTC
*** Bug 336506 has been marked as a duplicate of this bug. ***
Comment 7 André Klapper 2006-03-29 22:14:25 UTC
raising severity and priority, this can block the evolution ui for quite some time.
Comment 8 André Klapper 2006-03-30 10:09:17 UTC
*** Bug 336577 has been marked as a duplicate of this bug. ***
Comment 9 Hiroyuki Ikezoe 2006-04-25 08:06:58 UTC
Created attachment 64262 [details] [review]
proposed patch

Just drop attachment files.
Comment 10 Hiroyuki Ikezoe 2006-04-25 08:10:26 UTC
I think attachment files of mail should be attached in task, but I  have no idea where the attachment files store.
Comment 11 Hiroyuki Ikezoe 2006-04-27 05:06:56 UTC
Created attachment 64363 [details] [review]
revised patch

Converting attachment files of mail to task's attachment files.
Comment 12 André Klapper 2006-05-03 20:14:02 UTC
patch would also fix bug 331698, i assume.

adding chen to cc - i'd really love to see this patch (converting attachment files of mail to task's attachment files) reviewed.
Comment 13 Chenthill P 2006-05-05 11:39:15 UTC
The filename of the attachment (camel_mime_part_get_filename (mime_part)) should be checked for special characters as it could be in UTF8 format. Please refer to the function *clean_name* (save-attachments.c) in the save-attachments plugin.
Comment 14 Hiroyuki Ikezoe 2006-05-08 00:39:26 UTC
Created attachment 64980 [details] [review]
revised patch

Thank you for your review.

I rewrote my patch as your advice.
Comment 15 Hiroyuki Ikezoe 2006-05-08 02:53:44 UTC
Created attachment 64983 [details] [review]
update patch

Added multipart/alternative handling.

I guess this patch also fix bug 335619.
Comment 16 André Klapper 2006-05-10 10:18:46 UTC
*** Bug 335619 has been marked as a duplicate of this bug. ***
Comment 17 André Klapper 2006-05-10 10:18:52 UTC
*** Bug 331698 has been marked as a duplicate of this bug. ***
Comment 18 Chenthill P 2006-05-11 08:48:05 UTC
for (i = 0; i < parts; i++)
+			{
+				CamelMimePart *mime_part;
+				CamelContentType *type;
+
+				mime_part = camel_multipart_get_part (CAMEL_MULTIPART (content), i);
+				type = camel_mime_part_get_content_type (mime_part);

The for loop is not necessary here.  The first part would be text/plain if its present. So we could as well do it as camel_multipart_get_part (CAMEL_MULTIPART (content), 0); and check if its text/plain before setting the content (just to be safe). Please include the ChangeLog for the patch.
Comment 19 Chenthill P 2006-05-11 08:53:45 UTC
*** Bug 306215 has been marked as a duplicate of this bug. ***
Comment 20 Hiroyuki Ikezoe 2006-05-11 12:09:02 UTC
Chenthill, thank you for your kindly advices.

I revised my patch like the following:

+       /*
+        * Get non-multipart content from multipart message.
+        */
+       while (CAMEL_IS_MULTIPART (content) && count > 0)
+       {
+               mime_part = camel_multipart_get_part (CAMEL_MULTIPART (content), 0);
+               content = camel_medium_get_content_object (CAMEL_MEDIUM (mime_part));
+               count--;
+       }
+
+       type = camel_mime_part_get_content_type (mime_part);
+       if (!camel_content_type_is (type, "text", "plain"))
+               return;
Comment 21 Hiroyuki Ikezoe 2006-05-11 12:10:01 UTC
Created attachment 65236 [details] [review]
revised patch
Comment 22 André Klapper 2006-05-11 21:11:58 UTC
*** Bug 303641 has been marked as a duplicate of this bug. ***
Comment 23 André Klapper 2006-05-27 21:51:09 UTC
chen: *poke*! can this patch please go into evo 2.6.2?
Comment 24 André Klapper 2006-05-27 21:53:14 UTC
*** Bug 306218 has been marked as a duplicate of this bug. ***
Comment 25 Harish Krishnaswamy 2006-06-06 05:54:11 UTC
Committing the fix and closing the bug as the patch resolves the issue.
Chen: You told me you have some suggestions to the above patch. Can you post an updated patch for review and reopen the bug if necessary.
Comment 26 Chenthill P 2006-09-05 04:24:42 UTC
*** Bug 301075 has been marked as a duplicate of this bug. ***