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 601526 - Message filters that 'Run Program' don't
Message filters that 'Run Program' don't
Status: RESOLVED INCOMPLETE
Product: evolution
Classification: Applications
Component: Mailer
2.28.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[filters]
Depends on:
Blocks:
 
 
Reported: 2009-11-11 12:17 UTC by alito
Modified: 2012-02-06 13:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description alito 2009-11-11 12:17:41 UTC
I've got a filter set up so that whenever an email with a specific subject line is received, a specific program should be run and the mail should be moved to a folder.  This worked well in the 2.26.x series.  

I am now running 2.28.1 and, while the mail gets moved to the folder, the program no longer gets run.

I've tried running the program from the command line, and it runs fine.
Comment 1 André Klapper 2009-11-13 10:39:56 UTC
Check the order - app has to run before mail gets moved.
Comment 2 alito 2009-11-13 13:47:58 UTC
It is listed first.  It also doesn't work if the program is the only thing listed to be done.

I've now replicated this problem in another machine (one is Ubuntu Karmic, one is Gentoo).
Comment 3 alito 2009-11-18 08:29:03 UTC
It seems like the bug is intermittent.  It happens most of the time, but sometimes the program does run.
Comment 4 André Klapper 2012-02-06 12:36:35 UTC
alito: 

If you have time, could you please check again whether this issue still happens in Evolution 3.2.2 or 3.0.3 and update this report by adding a comment and changing the "Version" field and provide information about your distribution? 

Maybe you could find out if either your script sometimes fails, or if it is Evolution that fails to call the script, by setting to keys in GNOME's "gconf" registry.

The relevant gconf keys are:
/apps/evolution/mail/filters/log = true
/apps/evolution/mail/filters/logfile = "/path/to/your/logfile"

Unfortunately there is no interface in Evolution to access this functionality directly. You have to edit the Gconf database, preferably by using one of the specialized configuration editors such as "gconf-editor". Make sure to change "/path/to/your/logfile" to a real path (like your user's home directory), it is just an example path.
Unfortunately the log is written buffered and only written to the file when,
for example, Evolution ends. Monitoring the file with something like "tail -f
/path/to/your/logfile" will NOT show any output.

The other option would be to provide your script, but keep in mind that this bugtracker is totally public.
Comment 5 alito 2012-02-06 13:07:40 UTC
Hi,

Sorry, I defected from evolution a couple of years ago now.  The problem wasn't the script though, since the details of the script weren't important (eg I remember substituting the contents of the script with a single 'touch ~/amarkerfile.txt' line and that wouldn't work either).

Thanks for taking a look though.
Comment 6 André Klapper 2012-02-06 13:41:22 UTC
Hmm, I see. That makes it hard to reproduce, so closing as INCOMPLETE for the time being, but thanks for the quick answer and sorry that this report was not handled in time when you reported it.