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 611100 - Forward-to filter stops at outbox
Forward-to filter stops at outbox
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.26.x (obsolete)
Other Linux
: Normal enhancement
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[filters]
: 628498 634546 663218 703548 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-02-25 16:48 UTC by ka1wpm
Modified: 2013-07-03 15:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed addition to filter option window (28.40 KB, image/png)
2010-05-31 17:27 UTC, adama
  Details
evo patch (2.24 KB, patch)
2010-06-07 18:15 UTC, Milan Crha
committed Details | Review

Description ka1wpm 2010-02-25 16:48:34 UTC
I have created a filter to forward a message received from a particular source.  The message is correctly placed into the outbox, but does not get sent unless I push the send/receive button.

I would like it to be sent automatically, since I am usually away from the computer when I receive the message.  Am I missing something in my setup?
Comment 1 Milan Crha 2010-05-27 20:17:29 UTC
As we spoke on IRC, it was intentional, but seems to be better to change. The best seems to be to add an option somewhere to preferences or where, about "flush messages from outbox after filtering done when added something to outbox during filtering", which might be done by default, but for accounts with a timeout for connection it might to more trouble than fun.

The problem is how to name the option and where to place it, as I do not see the best place for it in Preferences. Any idea?
Comment 2 ka1wpm 2010-05-27 20:34:08 UTC
If I might offer a small suggestion, could it be an alternative action in the filter?  For example, "Forward immediately to".
Comment 3 Milan Crha 2010-05-28 09:18:31 UTC
Sure, you can suggest :)

Your suggestion is easy to implement, though I'm wondering whether it'll not be confusing for other people to see "Forward to" and "Forward immediately to". One might ask: what is that "Forward to" then? The other problem is that you cannot flush Outbox selectively (only some messages), only whole Outbox can be flushed.

The other question is whether server supports multiple connections in one time, because filters are treated while fetching emails, thus when connected to the server, and flushing Outbox can open yet another connection. (It doesn't open it for most providers, though.)
Comment 4 adama 2010-05-31 17:27:22 UTC
Created attachment 162391 [details]
Proposed addition to filter option window

I suggest adding this checkbox option to the "forward to" filter action.

-Adam
Comment 5 adama 2010-05-31 17:28:43 UTC
Comment on attachment 162391 [details]
Proposed addition to filter option window

That was me (retrospectacus) talking to mcrha on IRC.
Comment 6 Milan Crha 2010-06-07 17:03:17 UTC
After some investigation, testing and chatting it'll be better to have a hidden option for this. The above mock-up looks good, but if you imagine more than one filter rules with forward-to and you do not check "flush outbox" in all of them, will you expect the outbox be flushed or not? In other words the option placement seems like being used with the given address only. I chose a hidden option because there is no good place to it, thus it would be hard to find anyway.

I'm trying to produce a fix with a hidden option now.
Comment 7 Milan Crha 2010-06-07 18:15:43 UTC
Created attachment 162961 [details] [review]
evo patch

for evolution;

Here it is. There was not many options to choose from on this.
Comment 8 Milan Crha 2010-06-07 18:18:03 UTC
Created commit 1837179 in evo master (2.31.4+)

The hidden option name is "/apps/evolution/mail/filters/flush-outbox", set it to true (default is false) to flush Outbox after a minute of the last "forward-to" usage.
Comment 9 ka1wpm 2010-06-30 12:25:50 UTC
Thank you all for this work!  I appreciate it.

-- Dana
Comment 10 Milan Crha 2010-10-21 06:23:27 UTC
*** Bug 628498 has been marked as a duplicate of this bug. ***
Comment 11 Milan Crha 2010-11-29 19:46:28 UTC
*** Bug 634546 has been marked as a duplicate of this bug. ***
Comment 12 Milan Crha 2011-11-21 17:52:45 UTC
*** Bug 663218 has been marked as a duplicate of this bug. ***
Comment 13 to8utes 2012-01-31 11:22:56 UTC
Hi , is it possible to apply the fix on a Ubuntu 11.04 machine with Evolution 2.32.2 ? 
If yes, can you please tell me how this kind of patch can be applied?
I'm trying to use Evolution client for some automated notifications, so I need  the outbox mails to be flushed automatically.  


Thank You
Comment 14 Milan Crha 2012-01-31 13:01:05 UTC
With custom patches to various distributions it's always better to ask maintainers of that distribution to include the patch, but in your case yours 2.32.2 has this patch already included, just do this while evolution is off:
 $ gconftool-2 --set --type=bool /apps/evolution/mail/filters/flush-outbox true
Comment 15 to8utes 2012-01-31 13:16:48 UTC
First of all , thank you for your quick reply

It's not working..., I think It has something to do with the fact that the paths in Ubuntu are different for Evolution
I could not find a folder called filters or a flush-outbox file either.
I found this folder /home/nagios/.gconf/apps/evolution/mail


with this subfolders

composer  display  format  %gconf.xml  junk  prompts  trash
Comment 16 to8utes 2012-01-31 13:27:17 UTC
My bad, it's working

Thank You, this is a big deal for me
Comment 17 Mike 2012-04-04 19:31:35 UTC
I must be doing something wrong. I'm running Evolution 3.2.2 and have tried the following:

1. Close Evolution
2. sudo vi file "/usr/share/gconf/schemas/evolution-mail.schemas"
    - found "schema" flush-outbox
    - changed the default from "false" to "true"
    - saved and closed the file
3. Restarted Evolution
4. Created a new filter with "Forward to"
5. Apply the filter

And the forwarded email goes from the exchange account Inbox to the "On This Computer" Outbox and remains there indefinitely (or until I manually flush it with the "Send/Receive" button.

What am I doing wrong?
Comment 18 Milan Crha 2012-04-05 08:54:43 UTC
Why to change the scheme? Command from comment #14 should do the right thing, and for the current user only (is it a problem that it's for the current user only?). By the way, my schemas are stored at /etc/gconf/schemas/, but that can be just the system thing, mine is Fedora. Note the gconfd can have the schema files cached, thus even if you change its content, the daemon will not get it till it's also restarted.
Comment 19 Mike 2012-04-05 13:31:56 UTC
Wow. You have no idea how many times I tried executing the command from comment #14 and kept getting an error message regarding the client failing to connect to the D-BUS daemon. It turns out that I was trying to execute it as root. 

I executed the command this morning as "myself" and it works like a champ.

I was editing the scheme because once the command wasn't working I went into the attached diff (evo patch) to see if I could figure out where the changes were made and thought I'd just try it (I'm a newb).


Thanks for the reply and the work you've done.
Comment 20 Milan Crha 2012-04-06 12:17:42 UTC
Playing with schema files is harder, from my point of view, but if it's done right (which I actually do not know what it means with GConf), then it should work too. Good you have it finally running. :)
Comment 21 Matthew Barnes 2013-07-03 14:54:59 UTC
*** Bug 703548 has been marked as a duplicate of this bug. ***
Comment 22 Reid Thompson 2013-07-03 15:55:37 UTC
$ dconf write /apps/evolution/mail/filters/flush-outbox true


$ dconf dump /apps/evolution/mail/filters/
[/]
flush-outbox=true