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 313225 - Display Unique Symbol For Meetings In Mail Summary Screen
Display Unique Symbol For Meetings In Mail Summary Screen
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.4.x (obsolete)
Other All
: Normal enhancement
: ---
Assigned To: Milan Crha
Evolution QA team
: 314772 322041 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-08-11 13:44 UTC by David Richards
Modified: 2013-09-10 14:04 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Mockup of handshake symbol to indicate meetings in Inbox (80.86 KB, image/png)
2005-08-11 13:45 UTC, David Richards
  Details
Example of GroupWise Java client, meeting in Inbox unopened (166.08 KB, image/jpeg)
2007-07-20 14:05 UTC, David Richards
  Details
Meeting has now been opened, icons changes. (162.51 KB, image/jpeg)
2007-07-20 14:05 UTC, David Richards
  Details
proposed eds patch (4.40 KB, patch)
2008-06-27 08:09 UTC, Milan Crha
none Details | Review
proposed evo patch (3.33 KB, patch)
2008-06-27 08:28 UTC, Milan Crha
committed Details | Review
proposed eds patch ][ (6.19 KB, patch)
2008-07-03 11:40 UTC, Milan Crha
committed Details | Review
proposed eds patch for crash (2.11 KB, patch)
2008-09-24 13:37 UTC, Milan Crha
committed Details | Review

Description David Richards 2005-08-11 13:44:16 UTC
Currently email and meetings all get the same symbol in your Inbox, that of an
envelope.  I understand that meetings = email to Evolution, but it would be nice
if the hand shaking symbol displayed in that column for meetings and
appointments to give the users a visual cue of the content of their inbox.  Just
trying to replicate the features we had in GroupWise 4.1

Thanks for consideration, attaching quick mockup.
Comment 1 David Richards 2005-08-11 13:45:17 UTC
Created attachment 50571 [details]
Mockup of handshake symbol to indicate meetings in Inbox
Comment 2 André Klapper 2005-08-12 09:49:42 UTC
adding UI keyword.
Comment 3 André Klapper 2005-11-22 19:30:57 UTC
*** Bug 322041 has been marked as a duplicate of this bug. ***
Comment 4 André Klapper 2005-11-22 19:32:05 UTC
also see bug 200887
Comment 5 David Richards 2006-06-28 17:44:16 UTC
Retarget for 2.7 please?
Comment 6 David Richards 2007-07-20 14:05:11 UTC
Created attachment 92044 [details]
Example of GroupWise Java client, meeting in Inbox unopened
Comment 7 David Richards 2007-07-20 14:05:51 UTC
Created attachment 92045 [details]
Meeting has now been opened, icons changes.
Comment 8 Milan Crha 2007-07-20 16:16:45 UTC
After a small investigation about this, open message with every paint and trying to find a part with proper content-type is a performance hit, so I would like to suggest to use a user_flags to store this information. The other problem is that the content-type is not enough, one need to read that part to recognize, if it's a task, meeting or free/busy info (based on e-itip-control.c:show_current) to choose proper icon.

What evolution developers think about this?
Comment 9 Milan Crha 2008-02-14 15:32:57 UTC
also see bug #478239
Comment 10 Matthew Barnes 2008-03-11 00:26:01 UTC
Bumping version to a stable release.
Comment 11 Milan Crha 2008-06-27 08:09:49 UTC
Created attachment 113511 [details] [review]
proposed eds patch

for evolution-data-server;

Necessary part in eds. Notice the change in IMAP. I'm not sure, whether there is something similar required for other providers, like for GroupWise.
Comment 12 Milan Crha 2008-06-27 08:28:06 UTC
Created attachment 113512 [details] [review]
proposed evo patch

for evolution;

How it works:
I found out that we set "X-CALENDAR-ATTACHMENT" header, and Outlook invitation has also its header, "CONTENT-CLASS" with value "urn:content-classes:calendarmessage", so if one of these is present, then set the new user flag "$has_cal", and show the meeting icon on every message with this flag. The icon is shown in Attachment column. There is no indication whether user responded to the message or not (maybe we can reuse the Reply icon/flag after any action user does on the message? The envelope icon will be still visible, so it's possible.) Anyway, if none of headers is present, then in time of formatting the calendar attachment in itip formatter, the flag is set, so next time is the icon shown.

You should update (read as: regenerate) your summary to see it on all applicable messages, or click one by one. I have no GroupWise test machine, so if someone can test it, then it would be great. Also if some GW invitation can be attached here, maybe from other client...
Comment 13 Srinivasa Ragavan 2008-06-30 08:38:17 UTC
Akhil, can you test this under Groupwise (both USE_IMAP=1 and without it)
Comment 14 Akhil Laddha 2008-07-02 06:26:50 UTC
I tried with both group wise and USE_IMAP=1 and it showed different symbol for meeting request. 

Issues :

->  It shows different icon only when i click on particular request. Other wise it behaves as general mail.

->  Icon will be displayed for mail which has ics file as attachment. Before i click on particular message, it will show attachment icon but when i click on it, icon will be changed to meeting request icon.

->  There are no changes in icon after opening a request as Dave proposed in comment #6,#7

-> Same icon appears in shared memo and assigned task request also though I am okay with it
Comment 15 Milan Crha 2008-07-02 09:21:41 UTC
(In reply to comment #14)
> ->  It shows different icon only when i click on particular request. Other wise
> it behaves as general mail.

I mentioned that in the last paragraph of the comment #12:
   You should update (read as: regenerate) your summary to see it on all
   applicable messages, or click one by one. I have no GroupWise test machine,
   so if someone can test it, then it would be great. Also if some GW
   invitation can be attached here, maybe from other client...

It's because the information is stored there, thus it should be regenerated.

> ->  Icon will be displayed for mail which has ics file as attachment. Before i
> click on particular message, it will show attachment icon but when i click on
> it, icon will be changed to meeting request icon.

I guess this is same as above.

> ->  There are no changes in icon after opening a request as Dave proposed in
> comment #6,#7
Yup, also mentioned in the comment #12 :)

------

What software generated the mail? Was it evolution? If not, can you check whether it contains those headers as mentioned in comment #12?
Comment 16 Milan Crha 2008-07-02 10:29:47 UTC
After a little online discussion with Akhil, it seems the GW client doesn't read any of "X-Calendar-Attachment" or "Content-class" headers, thus it doesn't work on the first read. We will need some GW expert to look at it (I guess it's not so hard, but I do not have the GW test machine thus I cannot test it).

The other thing, the icons of new/opened meeting. I used the Attachment column, thus one can see the status of the message in the other column, which shows whether the message was new/seen/answered/... so it is sort of the required behaviour. Maybe, when we will have the proper icons for that, then we can extend it.

Dave, I guess, when you mark as unread the message with the meeting in your GW client, then it will show the closed book again, right?
Comment 17 David Richards 2008-07-02 12:46:54 UTC
That is correct, when the meeting is marked Unread, the icon should change back.  I don't care if a handshake, or book icon is used.  In fact, that probably should come from the current theme.
Comment 18 Milan Crha 2008-07-03 11:14:44 UTC
As discussed with David, I tested with an Exchange and it works fine, when I receive new mail with one of the headers, then it marks it with "$has_cal".
I also noticed that when replying to the sender, then the status of the message changes as expected, thus either we will need more  icons (new/seen/replied) or keep it in an attachment column.
Comment 19 Milan Crha 2008-07-03 11:40:09 UTC
Created attachment 113912 [details] [review]
proposed eds patch ][

for evolution-data-server;

Same as before, just added part for the GroupWise (Sankar did advice how to do that).
Comment 20 Sankar P 2008-07-14 08:58:46 UTC
I will suggest to wait until On-disk-summary on trunk (which should not be long from now).

I will propose to store the flag in system flags rather than user flags so that it makes it easy to query only specific items, say "Calendar items alone" from the database.

There is a msg_type column in the per-folder table, in on-disk-summary facilitating this storage. 

Not just for meetings, you can have different icons for signed messages, notes, tasks, shared-folders-invites, signed-but-invalid-messages, signed-unverifiable, encrypted-messages etc.

The flag_names_t in camel-folder-summary.c needs to be expanded and the appropriate values (or its matching enums preferably) should be filled in the database's msg_type column.

It is upto the implementor to decide to give priority in case of conflicts , like: "if we have a meeting which is signed as well, what should the icon show ? meeting or signed ?"

Makes sense ?
Comment 21 Sankar P 2008-07-14 09:01:33 UTC
Marking the patches as needs-work. The patches are good. But it is better to make use of the db features for making it queriable (for other apps.) etc. So, we need to adapt it to disk-summary style.

The msg_type column (in sqlite db) patch will be committed in the madagascar branch by today. And, trunk will have on-disk summary running in a few days, anyway.
Comment 22 Milan Crha 2008-07-14 09:47:22 UTC
(In reply to comment #20)
> I will propose to store the flag in system flags rather than user flags so that
> it makes it easy to query only specific items, say "Calendar items alone" from
> the database.

Does this mean to add this to the enum CamelMessageFlags? I was thinking about that, but I decided to choose user flags, mainly because of so low number of free system flags. We have there 12 now, and 16 is for folder_flagged, thus only 3 left. That's not many, really.

(In reply to comment #21)
> Marking the patches as needs-work. The patches are good. But it is better to
> make use of the db features for making it queriable (for other apps.) etc. So,
> we need to adapt it to disk-summary style.

I thought the old and new summary will be interface-compatible, thus no special hacking in each provider whether I'm storing in SQL summary or the old summary.
Do I miss here anything? It seems I do...
Comment 23 Akhil Laddha 2008-08-11 05:52:12 UTC
*** Bug 314772 has been marked as a duplicate of this bug. ***
Comment 24 Milan Crha 2008-09-24 12:00:18 UTC
eds part committed to trunk. Committed revision 9598.
evo part committed to trunk. Committed revision 36445.

I think I cannot commit this to stable, because this is sort-of an enhancement.

Please note that you should either reload old messages from the server to have the icon marked in a mail view, because it is decided in time of the summary filling whether there should be an icon or not, or view the message with an appointment, whereas itip-formatter will mark the message as that when triggered.
Comment 25 Milan Crha 2008-09-24 13:33:14 UTC
Errr, there is a bug in the eds part, when reading data in the summary_build_content_info, I used the last parameter in camel_mime_parser_header, but that was other offset, thus this caused a crash :(
Comment 26 Milan Crha 2008-09-24 13:37:02 UTC
Created attachment 119305 [details] [review]
proposed eds patch for crash

for evolution-data-server;

just fixing the crash, aka additional to the last patch.
Comment 27 Matthew Barnes 2008-09-24 14:46:01 UTC
Looks correct to me.  Approved.
Comment 28 Milan Crha 2008-09-24 15:00:50 UTC
Anticrash patch committed to trunk. Committed revision 9599.

Thanks for the review, Matt.