Cannot enable Jean-Yves Lefort's Mail Notification plugin in Evolution

Bug #1741931 reported by Christian
84
This bug affects 17 people
Affects Status Importance Assigned to Milestone
mail-notification (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu 17.10
Release: 17.10

mail-notification-evolution:
  Installato: 5.4.dfsg.1-14build10
  Candidato: 5.4.dfsg.1-14build10
  Tabella versione:
 *** 5.4.dfsg.1-14build10 500
        500 http://it.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
        100 /var/lib/dpkg/status

mail-notification:
  Installato: 5.4.dfsg.1-14build10
  Candidato: 5.4.dfsg.1-14build10
  Tabella versione:
 *** 5.4.dfsg.1-14build10 500
        500 http://it.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
        100 /var/lib/dpkg/status

evolution:
  Installato: 3.26.1-1
  Candidato: 3.26.1-1
  Tabella versione:
 *** 3.26.1-1 500
        500 http://it.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
        100 /var/lib/dpkg/status

Jean-Yves Lefort's Mail Notification plugin is present in Evolution plugins list, but it is impossible to enable it by checking the corresponding checkbox in the plugin list.
Launching Evolution from console, the following messages appear:

(evolution:12966): module-plugin-lib-WARNING **: can't load plugin '/usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so': /usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so: undefined symbol: camel_message_info_uid

(evolution:12966): module-plugin-lib-WARNING **: Cannot resolve symbol 'org_jylefort_mail_notification_folder_changed' in plugin '/usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so' (not exported?)

Tags: patch
Revision history for this message
Christian Romberg (distjubo) wrote :

Same here. Also Ubuntu 17.10, same command line output

Revision history for this message
Christian Romberg (distjubo) wrote :

I suspect the cause of this problem to be a function rename. I'm not 150% sure, but I think camel_message_info_uid got renamed to camel_message_info_get_uid. Can anyone confirm this? I tried recompiling the mail notification plugin but the build system is kinda broken and the source code I tried compiling is already 6 years old.

Revision history for this message
Christian Romberg (distjubo) wrote :

It seems I'm onto something. I changed the source files I got from apt, and I get a new message saying that the symbol camel_message_info_message_id was unavailable. I think I might be able to fix this

Revision history for this message
Christian Romberg (distjubo) wrote :

Ok, chased those function names down and changed them all, and now the plugin loads successfully. However, a new error has arisen, which is that once I select "evolution" as the mail provider for mail-notification, it tries to embed a table with the available mail folders using a GtkSocket, which is not available when using wayland.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mail-notification (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fix old function names" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Mars G (mars01) wrote :

Hi Team,

I'm new to linux and very skilled.
Trying to apply the patch above to fix the same issues experienced reported here.

The command I run is:
sudo patch /usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so < mail-notification.diff

The result I get is:
patching file /usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so
Hunk #1 FAILED at 223.
Hunk #2 FAILED at 273.
2 out of 2 hunks FAILED -- saving rejects to file /usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so.rej

And this is the reject file:
mars@workbook:~/Desktop$ cat /usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so.rej
--- mn-evolution-server.gob 2018-02-08 19:16:36.880357838 +0100
+++ mn-evolution-server.gob 2018-02-08 20:21:39.000000000 +0100
@@ -223,24 +223,24 @@
     char hexhash[sizeof(CamelSummaryMessageID) * 2 + 1];
     int i;

- id = camel_message_info_get_message_id(info);
+ id = camel_message_info_message_id(info);
     for (i = 0; i < sizeof(id->id.hash); i++)
       sprintf(hexhash + i * 2, "%.2x", id->id.hash[i]);

- g_assert(camel_message_info_get_uid(info) != NULL);
+ g_assert(camel_message_info_uid(info) != NULL);

     return self_value_array_new(/* char *uid */
- G_TYPE_STRING, camel_message_info_get_uid(info),
+ G_TYPE_STRING, camel_message_info_uid(info),
     /* unsigned int sent_time */
- G_TYPE_UINT, (unsigned int) camel_message_info_get_date_sent(info),
+ G_TYPE_UINT, (unsigned int) camel_message_info_date_sent(info),
     /* unsigned int received_time */
- G_TYPE_UINT, (unsigned int) camel_message_info_get_date_received(info),
+ G_TYPE_UINT, (unsigned int) camel_message_info_date_received(info),
     /* char *id */
     G_TYPE_STRING, hexhash,
     /* char *from */
- G_TYPE_STRING, camel_message_info_get_from(info),
+ G_TYPE_STRING, camel_message_info_from(info),
     /* char *subject */
- G_TYPE_STRING, camel_message_info_get_subject(info),
+ G_TYPE_STRING, camel_message_info_subject(info),
     (GType) 0);
   }

@@ -273,7 +273,7 @@
      CamelMessageInfo *info = summary->pdata[i];
 #endif

- if ((camel_message_info_get_flags(info) & (CAMEL_MESSAGE_SEEN | CAMEL_MESSAGE_JUNK)) == 0)
+ if ((camel_message_info_flags(info) & (CAMEL_MESSAGE_SEEN | CAMEL_MESSAGE_JUNK)) == 0)
        g_ptr_array_add(*ret, self_camel_message_info_to_dbus_struct(info));
    }

Revision history for this message
Mars G (mars01) wrote :

I meant to say "not very skilled" :)

Revision history for this message
Christian Romberg (distjubo) wrote : [Bug 1741931] Re: Cannot enable Jean-Yves Lefort's Mail Notification plugin in Evolution

Lol for the "I am very skilled"
I'm (obviously) also not very skilled, at least I never really learned how
to create patch files correctly. But at least I know for a fact that the
patch I created was for the plugin source, not for the shared object file
which you tried to patch. I think (don't quote me on this) that you have to
patch the source by going into the source main directory and running "patch
-p0 < mail-notification.diff". I can try creating a binary diff, just tell
me if you need it.

Am Montag, 7. Mai 2018 schrieb Mars G <email address hidden>:

> I meant to say "not very skilled" :)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1741931
>
> Title:
> Cannot enable Jean-Yves Lefort's Mail Notification plugin in Evolution
>
> Status in mail-notification package in Ubuntu:
> Confirmed
>
> Bug description:
> Description: Ubuntu 17.10
> Release: 17.10
>
> mail-notification-evolution:
> Installato: 5.4.dfsg.1-14build10
> Candidato: 5.4.dfsg.1-14build10
> Tabella versione:
> *** 5.4.dfsg.1-14build10 500
> 500 http://it.archive.ubuntu.com/ubuntu artful/universe amd64
> Packages
> 100 /var/lib/dpkg/status
>
> mail-notification:
> Installato: 5.4.dfsg.1-14build10
> Candidato: 5.4.dfsg.1-14build10
> Tabella versione:
> *** 5.4.dfsg.1-14build10 500
> 500 http://it.archive.ubuntu.com/ubuntu artful/universe amd64
> Packages
> 100 /var/lib/dpkg/status
>
> evolution:
> Installato: 3.26.1-1
> Candidato: 3.26.1-1
> Tabella versione:
> *** 3.26.1-1 500
> 500 http://it.archive.ubuntu.com/ubuntu artful/universe amd64
> Packages
> 100 /var/lib/dpkg/status
>
>
> Jean-Yves Lefort's Mail Notification plugin is present in Evolution
> plugins list, but it is impossible to enable it by checking the
> corresponding checkbox in the plugin list.
> Launching Evolution from console, the following messages appear:
>
> (evolution:12966): module-plugin-lib-WARNING **: can't load plugin
> '/usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so':
> /usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so:
> undefined symbol: camel_message_info_uid
>
> (evolution:12966): module-plugin-lib-WARNING **: Cannot resolve symbol
> 'org_jylefort_mail_notification_folder_changed' in plugin
> '/usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so' (not
> exported?)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/mail-notification/
> +bug/1741931/+subscriptions
>

Revision history for this message
Christian Romberg (distjubo) wrote :

I just noticed that my patch file is kinda back to front. So if you decide to use it, it will tell you that the file is already patched. But if you specify the option -R ("patch -R -p0 < mail-notification.diff"), things should work. My bad xD
Anyways, here are patched deb packages.

Revision history for this message
Christian Romberg (distjubo) wrote :

And the mail-notification package...

Revision history for this message
marun_cz (marun1) wrote :

hi
i have ubuntu 18.04
mail-notification:
  Instalovaná verze: 5.4.dfsg.1-14ubuntu2
mail-notification-evolution:
  Instalovaná verze: 5.4.dfsg.1-14ubuntu2

and bug is still here, will this package be fixed?

Revision history for this message
Bert (bertdj) wrote :

I have the same versions as Launchpad user marun1 above.
I'd also like to know if this will be fixed.
More than half a year has passed since the bug was reported.

Revision history for this message
Evan Black (evanblack) wrote :

Still broken as ever in ubuntu 18.04
With the lack of plugins for the latest thunderbird, evolution seems to be about the only real alternative.

Revision history for this message
Saliya Hamparawa (hamparawa) wrote :

Any updates on this? Thanks.

Revision history for this message
xcape77 (xcape77) wrote :

Has anyone found a solution or a workaround?

Revision history for this message
Christian Romberg (distjubo) wrote :

Yes, see above. It’s not in the repos though.

Revision history for this message
Brian (thwaller) wrote :

Same as reported in most recent replies for me. Using 18.04 and the patches listed above are outdated thus do not correct the issues here.

Revision history for this message
Brian (thwaller) wrote :

@evanblack- I had stopped using Thunderbird a while back and went to online mail suites. I have recently started to try Evolution because of the integrations it offers with low overhead. It is unfortunate that such a basic feature is not functioning for so long. Ubuntu replaced TB now with Evolution, so hopefully we will see some of these core functions returned.

Revision history for this message
Mimmo (cosimo-simeone) wrote :

Same problem here
Ubuntu Mate 18.04

Revision history for this message
Mimmo (cosimo-simeone) wrote :

```
(evolution:3214): module-plugin-lib-WARNING **: 16:19:11.599: can't load plugin '/usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so': /usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so: undefined symbol: camel_message_info_uid

(evolution:3214): module-plugin-lib-WARNING **: 16:19:11.599: Cannot resolve symbol 'org_jylefort_mail_notification_folder_changed' in plugin '/usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so' (not exported?)

(evolution:3214): module-plugin-lib-WARNING **: 16:19:15.713: can't load plugin '/usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so': /usr/lib/evolution/plugins/liborg-jylefort-mail-notification.so: undefined symbol: camel_message_info_uid
```

Revision history for this message
Christian Romberg (distjubo) wrote :

I don't believe you'll ever get this bug fixed by just complaining about it here. Get someone assigned or do something yourself. That's how I think open source should work. A patch is above.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.