mail-notification cannot connect to evolution

Bug #376812 reported by pietro2580
52
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Mail Notification
Incomplete
Undecided
Unassigned

Bug Description

After upgrading my ubuntu 8.10 to 9.04, I apparently obtained evolution 2.26.1. However, after upgrading the mail-notification software cannot connect anymore to Evolution. Running the command:
>mail-notification -p
gives the following information: "Unhandled Evolution mailbox (Unable to contact evolution)"
Trying to remove the old mailbox and adding a new mail-box gives the following warning:
"Mail Notification can not contact Evolution. Make sure that Evolution is running and that the Evolution Jean-Yves Lefort's Mail Notification plugin is loaded."
Reinstallation using the synaptic package manager of Ubuntu does not solve the problem. However, the command
>mail-notification -v
indicates that the evolution backend is available.

However, when installing mail-notification from the source code, it cannot find evolution installed during configuration (./jb configure). Also adding the evolution-plugin-dir did not solve the problem...

WARNING: Package evolution-plugin was not found in the pkg-config search path.
WARNING: Perhaps you should add the directory containing `evolution-plugin.pc'
WARNING: to the PKG_CONFIG_PATH environment variable
WARNING: No package 'evolution-plugin' found
WARNING: disabling option "evolution" since Evolution was not found

--- full output of configure script --

checking for ngettext(), dgettext(), bind_textdomain_codeset() in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for XML::Parser... yes
checking for gconftool-2... /usr/bin/gconftool-2
checking for scrollkeeper-preinstall... /usr/bin/scrollkeeper-preinstall
checking for scrollkeeper-update... /usr/bin/scrollkeeper-update
checking for scrollkeeper-config... /usr/bin/scrollkeeper-config
checking for the OMF directory... /usr/share/omf
checking for the ScrollKeeper database directory... /var/lib/rarian
checking for dbus-binding-tool... /usr/bin/dbus-binding-tool
checking for gob2... not found
checking the C compiler dependency style... GCC
checking for the GNU C library... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GNOME... yes
checking for D-Bus... yes
checking for GMime... yes
checking for GNOME Keyring... yes
checking the host system type... i686-pc-linux-gnu
checking if the DNS resolver is reentrant... yes
checking the host CPU endianness... little-endian
checking for Cyrus SASL >= 2.0... no
WARNING: disabling option "sasl" since Cyrus SASL was not found
checking for OpenSSL >= 0.9.6... yes
checking whether OpenSSL supports multi-threading... yes
checking for Evolution... no
WARNING: Package evolution-plugin was not found in the pkg-config search path.
WARNING: Perhaps you should add the directory containing `evolution-plugin.pc'
WARNING: to the PKG_CONFIG_PATH environment variable
WARNING: No package 'evolution-plugin' found
WARNING: disabling option "evolution" since Evolution was not found
checking for timegm() in libc... yes

Mail Notification 5.4 was configured successfully.
The following variables are in effect:

  Compiler options:

    cc: cc
    cflags: -O2
    cppflags:
    ldflags:
    libs:
    cc-dependency-tracking: yes

  Installation options:

    destdir:
    prefix: /usr
    bindir: $prefix/bin
    libdir: $prefix/lib
    libexecdir: $prefix/libexec
    datadir: $prefix/share
    sysconfdir: $prefix/etc
    localstatedir: $prefix/var
    data-mode: 0644
    data-owner:
    data-group:
    program-mode: 0755
    program-owner:
    program-group:
    library-mode: 0644
    library-owner:
    library-group:
    gconf-config-source: xml:merged:/etc/gconf/gconf.xml.defaults
    gconf-schemas-dir: $datadir/gconf/schemas
    install-gconf-schemas: yes
    help-dir: $datadir/gnome/help
    omf-dir: /usr/share/omf
    scrollkeeper-dir: /var/lib/rarian
    evolution-plugin-dir: autodetect

  External programs:

    msgfmt: /usr/bin/msgfmt
    perl: /usr/bin/perl
    gconftool-2: /usr/bin/gconftool-2
    scrollkeeper-preinstall: /usr/bin/scrollkeeper-preinstall
    scrollkeeper-update: /usr/bin/scrollkeeper-update
    dbus-binding-tool: /usr/bin/dbus-binding-tool
    gob2:

  Mailbox backends:

    evolution: no
    gmail: yes
    hotmail: yes
    imap: yes
    maildir: yes
    mbox: yes
    mh: yes
    mozilla: yes
    pop3: yes
    sylpheed: yes
    yahoo: yes

  IMAP and POP3 features:

    ipv6: yes
    sasl: no
    ssl: yes

Type "./jb build" to build Mail Notification 5.4.

summary:
Changed in mail-notification:
status: New → Confirmed
Revision history for this message
pietro2580 (pietro2580) wrote :

Apparently after upgrading of some evolution packages in Ubuntu, the problem is solved. I could again connect from mail-notification to evolution. Here is the log of the update (if needed):

Upgraded the following packages:
evolution (2.26.1-0ubuntu1) to 2.26.1-0ubuntu2
evolution-common (2.26.1-0ubuntu1) to 2.26.1-0ubuntu2
evolution-dbg (2.26.1-0ubuntu1) to 2.26.1-0ubuntu2
evolution-documentation-en (2.26.1-0ubuntu1) to 2.26.1-0ubuntu2
evolution-plugins (2.26.1-0ubuntu1) to 2.26.1-0ubuntu2
evolution-plugins-experimental (2.26.1-0ubuntu1) to 2.26.1-0ubuntu2

Revision history for this message
Andrew Conkling (andrewski) wrote :

pietro, that is not the case for me; I have all those versions of all of those packages and it still doesn't work.

Revision history for this message
thanhbv (thanhbv) wrote : Re: [Bug 376812] Re: mail-notification cannot connect to evolution
Download full text (5.7 KiB)

Yes, like Andrew, it still doesn't work for me.

On Thu, 2009-06-04 at 19:26 +0000, Andrew Conkling wrote:
> pietro, that is not the case for me; I have all those versions of all of
> those packages and it still doesn't work.
>
> --
> mail-notification cannot connect to evolution
> https://bugs.launchpad.net/bugs/376812
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Mail Notification: Confirmed
>
> Bug description:
> After upgrading my ubuntu 8.10 to 9.04, I apparently obtained evolution 2.26.1. However, after upgrading the mail-notification software cannot connect anymore to Evolution. Running the command:
> >mail-notification -p
> gives the following information: "Unhandled Evolution mailbox (Unable to contact evolution)"
> Trying to remove the old mailbox and adding a new mail-box gives the following warning:
> "Mail Notification can not contact Evolution. Make sure that Evolution is running and that the Evolution Jean-Yves Lefort's Mail Notification plugin is loaded."
> Reinstallation using the synaptic package manager of Ubuntu does not solve the problem. However, the command
> >mail-notification -v
> indicates that the evolution backend is available.
>
> However, when installing mail-notification from the source code, it cannot find evolution installed during configuration (./jb configure). Also adding the evolution-plugin-dir did not solve the problem...
>
> WARNING: Package evolution-plugin was not found in the pkg-config search path.
> WARNING: Perhaps you should add the directory containing `evolution-plugin.pc'
> WARNING: to the PKG_CONFIG_PATH environment variable
> WARNING: No package 'evolution-plugin' found
> WARNING: disabling option "evolution" since Evolution was not found
>
> --- full output of configure script --
>
> checking for ngettext(), dgettext(), bind_textdomain_codeset() in libc... yes
> checking for msgfmt... /usr/bin/msgfmt
> checking for perl... /usr/bin/perl
> checking for XML::Parser... yes
> checking for gconftool-2... /usr/bin/gconftool-2
> checking for scrollkeeper-preinstall... /usr/bin/scrollkeeper-preinstall
> checking for scrollkeeper-update... /usr/bin/scrollkeeper-update
> checking for scrollkeeper-config... /usr/bin/scrollkeeper-config
> checking for the OMF directory... /usr/share/omf
> checking for the ScrollKeeper database directory... /var/lib/rarian
> checking for dbus-binding-tool... /usr/bin/dbus-binding-tool
> checking for gob2... not found
> checking the C compiler dependency style... GCC
> checking for the GNU C library... yes
> checking for pkg-config... /usr/bin/pkg-config
> checking for GNOME... yes
> checking for D-Bus... yes
> checking for GMime... yes
> checking for GNOME Keyring... yes
> checking the host system type... i686-pc-linux-gnu
> checking if the DNS resolver is reentrant... yes
> checking the host CPU endianness... little-endian
> checking for Cyrus SASL >= 2.0... no
> WARNING: disabling option "sasl" since Cyrus SASL was not found
> checking for OpenSSL >= 0.9.6... yes
> checking whether OpenSSL supports multi-threading... yes
> checking for Evolution... no
> WARNING: Package evolution-plugin was not found in t...

Read more...

Revision history for this message
Max Riveiro (kavu) wrote :
Download full text (5.1 KiB)

I'll add my 5 cents.
What i tried to make mail-notification work.

System info:

!# uname -a
Linux horned 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:55:09 UTC 2009 x86_64 GNU/Linux

!# evolution --version
GNOME evolution 2.26.1

Then i installed on deps for mail-notification

!# sudo aptitude install gettext libdbus-glib-1-dev libgconf2-dev libgtk2.0-dev libgnomeui-dev libgnomevfs2-dev libglade2-dev libnotify-dev libgmime2-dev evolution-dev

Running ./jb configure

checking for ngettext(), dgettext(), bind_textdomain_codeset() in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for XML::Parser... yes
checking for gconftool-2... /usr/bin/gconftool-2
checking for scrollkeeper-preinstall... /usr/bin/scrollkeeper-preinstall
checking for scrollkeeper-update... /usr/bin/scrollkeeper-update
checking for scrollkeeper-config... /usr/bin/scrollkeeper-config
checking for the OMF directory... /usr/share/omf
checking for the ScrollKeeper database directory... /var/lib/rarian
checking for dbus-binding-tool... /usr/bin/dbus-binding-tool
checking for gob2... not found
checking the C compiler dependency style... GCC
checking for the GNU C library... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GNOME... yes
checking for D-Bus... yes
checking for GMime... yes
checking for GNOME Keyring... yes
checking the host system type... x86_64-unknown-linux-gnu
checking if the DNS resolver is reentrant... yes
checking the host CPU endianness... little-endian
checking for Cyrus SASL >= 2.0... no
WARNING: disabling option "sasl" since Cyrus SASL was not found
checking for OpenSSL >= 0.9.6... yes
checking whether OpenSSL supports multi-threading... yes
checking for Evolution... yes
checking for the Evolution plugin directory... /usr/lib/evolution/2.26/plugins
checking for timegm() in libc... yes

Mail Notification 5.4 was configured successfully.
The following variables are in effect:

  Compiler options:

    cc: cc
    cflags: -O2
    cppflags:
    ldflags:
    libs:
    cc-dependency-tracking: yes

  Installation options:

    destdir:
    prefix: /usr
    bindir: $prefix/bin
    libdir: $prefix/lib
    libexecdir: $prefix/libexec
    datadir: $prefix/share
    sysconfdir: $prefix/etc
    localstatedir: $prefix/var
    data-mode: 0644
    data-owner:
    data-group:
    program-mode: 0755
    program-owner:
    program-group:
    library-mode: 0644
    library-owner:
    library-group:
    gconf-config-source: xml:merged:/etc/gconf/gconf.xml.defaults
    gconf-schemas-dir: $datadir/gconf/schemas
    install-gconf-schemas: yes
    help-dir: $datadir/gnome/help
    omf-dir: /usr/share/omf
    scrollkeeper-dir: /var/lib/rarian
    evolution-plugin-dir: /usr/lib/evolution/2.26/plugins

  External programs:

    msgfmt: /usr/bin...

Read more...

Revision history for this message
Frank Abel (frankabel) wrote :

I have this bug too in 9.04, with all the updates.

Revision history for this message
Pug (pug226) wrote :

I believe this may be a duplicate of bug 355209 (https://bugs.launchpad.net/bugs/355209). The workaround provided by IanW (https://bugs.launchpad.net/ubuntu/+source/mail-notification/+bug/355209/comments/3) resolved this problem.

The problem is a simple version missmatch. You can confirm this by checking the version of the plugin directories for the following packages.

# dpkg -L mail-notification-evolution
...
/usr/lib/evolution/2.24/plugins
/usr/lib/evolution/2.24/plugins/org-jylefort-mail-notification.eplug
/usr/lib/evolution/2.24/plugins/liborg-jylefort-mail-notification.so

# dpkg -L evolution-plugins
...
/usr/lib/evolution/2.26
/usr/lib/evolution/2.26/plugins

However, after finally getting mail-notification to communicate with evolution, it still doesn't work as expected. If you use the "Evolution" mailbox type, mail-notification requires evolution to be running. I ended up adding the mailboxes into mail-notification, bypassing evolution for the notifications.

If this bug is about compiling mail-notification to work with evolution, then please ignore this post.

Revision history for this message
Miloš Mandarić (mandzo18) wrote :

Did anyone who still have issues tried this https://bugs.launchpad.net/ubuntu/+source/mail-notification/+bug/355209 solution?

Changed in mail-notification:
status: Confirmed → Incomplete
Revision history for this message
Raoul Verveer (lazy-r) wrote :

#7: The workaround creating symlinks resolved my issues in 9.04.

Revision history for this message
reliable-robin-22 (nicolasdiogo) wrote :

Hi,

just to inform that the same problem still happens in ubuntu Karmic x64.

i suppose it has been forgotten..

with regards,

Revision history for this message
thanhbv (thanhbv) wrote :

hi,
Here is my solution:
In Karmic:
1. install mail-notification-evolution (this is the Evolution Jean-Yves Lefort's Mail Notification plugin)
2. Copy 2 files:
   liborg-jylefort-mail-notification.so, org-jylefort-mail-notification.eplug
   in folder: /usr/lib/evolution/2.24/plugins/
   to folder: /usr/lib/evolution/2.28/plugins/
3. Run evolution. Menu Edit/ Plugins. Disable "Mail Notification", Enable "Jean-Yves Lefort's Mail Notification"
4. Run Mail Notification

Revision history for this message
Paulius Sladkevičius @ hbee (komsas) wrote :

thanks thanhbv,

Your solution works.

Revision history for this message
kenjiru (kenjiru) wrote :

It works, but this bug is embarrassing..

Revision history for this message
Rob (robatcb) wrote :

Did try this, still can't get the plugin to start.
Now i get:

(evolution:21043): evolution-plugin-lib-WARNING **: can't load plugin '/usr/lib/evolution/2.22/plugins/liborg-jylefort-mail-notification.so': libcamel-provider-1.2.so.11: cannot open shared object file: No such file or directory

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

Revision history for this message
cement_head (andorjkiss) wrote :

You have to re-roll the plugins with a patch from debian; done on Natty.

Attached as a zip file are the patched debs.

Cheers,
CH

Revision history for this message
Decaos (decaos-dk) wrote :

I apologize for my bad English, I'm using the google translator, I have the same problem as Rob (robatcb), is there any solution or packages for amd64?
thanks

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.