Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering of Incoming messages [$699] #44

Open
hitam4450 opened this Issue Sep 5, 2016 · 79 comments

Comments

Projects
None yet
@hitam4450
Copy link

hitam4450 commented Sep 5, 2016

for organizing message it would be very useful to incorporate a filtering mechanism, based on different conditions e.g. specific account, specific sender, Subject, etc., which will be applied to all incoming messages!

regards, hitam4450


There is a $699 open bounty on this issue. Add to the bounty at Bountysource.

@zeugmatis

This comment has been minimized.

Copy link

zeugmatis commented Sep 5, 2016

This is a nice idea but it is important to draw a clear distinction between the MUA (Mail User Agent) and MDA (Mail Delivery Agent - filtering). MDA solutions on the server side already exist e.g. procmail, maildrop, Dovecot LDA module and others - if you have SSH access to your server, you can set up your rules to do this today. 😄

Using an MDA, your filters are only maintained in one place and you have consistent behavior across all of your devices / email clients. Otherwise you have to maintain the same rulesets across all your devices, and can have confusion / possible race conditions when checking on e.g. the cellphone, then check on webmail and suddenly emails moved around. Finally, when using an MDA rules will execute immediately when mail is delivered - so things like vacation autoresponders, forward-to based on From: etc. do not have to wait for you to login.

It is a good idea, but warrants it's own app I think? Since MDA's can have a lot of accidental complexity - it seems simple at first glance but can get so much more complex, see for example the number of options in the native clients like apple's Mail.app.

@zeugmatis

This comment has been minimized.

Copy link

zeugmatis commented Sep 5, 2016

BTW if this is to be pursued either in Mail app or a separate MDA app for NC, I would like to mention Sieve, which is based on RFC 5228 - already has existing support in many clients/servers/existing API's etc.

@laurentdinclaux

This comment has been minimized.

Copy link

laurentdinclaux commented Sep 26, 2016

Of course, a sieve UI is much needed.
A library that could be used: http://sieve-php.sourceforge.net/
Horde does it: https://www.horde.org/apps/ingo

@pierreozoux

This comment has been minimized.

Copy link
Member

pierreozoux commented Nov 24, 2016

Also be able to filter read/unread on inbox.

@ediazcomellas

This comment has been minimized.

Copy link

ediazcomellas commented Jun 30, 2017

A sieve management screen is pretty much a standard in webmail systems. I am willing to setup a bounty for this feature. Please contact me for details.

@jancborchardt

This comment has been minimized.

Copy link
Member

jancborchardt commented Jul 4, 2017

@ediazcomellas you can donate to the bounty at https://www.bountysource.com/issues/37588385-filtering-of-incoming-messages :)

cc @hitam4450 @zeugmatis @laurentdinclaux @pierreozoux if you’d like this feature too, any donation or contribution is appreciated! 🎉

@jospoortvliet jospoortvliet changed the title Filtering of Incoming messages Filtering of Incoming messages [$50] Jul 5, 2017

@jospoortvliet jospoortvliet added the bounty label Jul 5, 2017

@jospoortvliet jospoortvliet changed the title Filtering of Incoming messages [$50] Filtering of Incoming messages [$125] Jul 6, 2017

@ediazcomellas

This comment has been minimized.

Copy link

ediazcomellas commented Jul 6, 2017

Is there anyone willing to make a try on this issue? I've expanded the bounty to $125. I hope it helps

@jancborchardt

This comment has been minimized.

Copy link
Member

jancborchardt commented Jul 7, 2017

@ediazcomellas thanks a lot for the bounty! :)

@nextcloud/mail @ChristophWurst @Gomez @lcalaresu anyone up for solving this? :)

@jospoortvliet jospoortvliet changed the title Filtering of Incoming messages [$125] Filtering of Incoming messages [$250] Oct 11, 2017

@ChristophWurst

This comment has been minimized.

Copy link
Member

ChristophWurst commented Oct 11, 2017

FYI: there's a pretty high bounty set for this ticket. Thus, a potential bounty hunter might be interested in implementing this feature. If so, please contact us first here in this ticket and let us know how you want to solve this problem. This will ensure that it's done right and you don't waste too much time on a solution that won't be integrated. Hope that makes sense. Thanks.

@ediazcomellas

This comment has been minimized.

Copy link

ediazcomellas commented Oct 11, 2017

I've raised the bounty to $250... anyone willing to solve it? @denim2x @ChristophWurst @Gomez @lcalaresu @nextcloud/mail
Please contact @ChristophWurst to make sure it is integrated with the main tree. It wont be accepted as a solution if it is not merged into upstream.

@MG2R

This comment has been minimized.

Copy link

MG2R commented Dec 15, 2017

Added another 50 to the bounty. Would love this feature.

@ediazcomellas

This comment has been minimized.

Copy link

ediazcomellas commented Dec 15, 2017

I don't know why it is not an attractive bounty. Besides, there is a reference implementation in horde that can be used as a guide.

@jancborchardt

This comment has been minimized.

Copy link
Member

jancborchardt commented Dec 15, 2017

We tweeted about the issue to get people involved: https://twitter.com/Nextclouders/status/941701115195940865 – please retweet and spread the word to help make it happen. 😃

@nado

This comment has been minimized.

Copy link

nado commented Dec 15, 2017

https://github.com/Rainloop/rainloop-webmail has support for sieve filters, its another app, but it may be worth checking how to improve integration of rainloop within nextcloud or get a similar sieve ui from them.

@muppeth

This comment has been minimized.

Copy link

muppeth commented Dec 15, 2017

@pierlon

This comment has been minimized.

Copy link
Member

pierlon commented Jan 9, 2018

Hey @nextcloud/mail, I'd like to implement this.

Should this be under Settings as a section, or should it have its own page? I plan to use the pear/net_sieve package btw.

@ChristophWurst

This comment has been minimized.

Copy link
Member

ChristophWurst commented Jan 9, 2018

@jancborchardt

This comment has been minimized.

Copy link
Member

jancborchardt commented Jan 9, 2018

@pierlon cool stuff! :) Should definitely be in the Settings as a section caled "Filters". That is, the account-specific settings which can be opened through the 3-dot-menu, right? :)

@pierlon

This comment has been minimized.

Copy link
Member

pierlon commented Jan 9, 2018

@jancborchardt Right 👍

@loxK

This comment has been minimized.

Copy link

loxK commented Jan 9, 2018

@pierlon have a look at rainloop's implementation. I find their filter UI great and capable.

I just forgot to save some new rules a couple of time making me loose them, but I guess it is better than a mistake leading to a "lost in the folders jungle" email because of that.

@pierlon

This comment has been minimized.

Copy link
Member

pierlon commented Jan 9, 2018

@loxK OK thanks.

@kylepwarren

This comment has been minimized.

Copy link

kylepwarren commented Feb 2, 2018

Yeah this is pretty crucial. when I downloaded it, it was IMAP only. not sure if pop3 is supported now. either way, straight from host your own mail server - really needs filters. Probably hard to make. not sure $250 is enough. I'd do it for like $5000

@kylepwarren

This comment has been minimized.

Copy link

kylepwarren commented Feb 2, 2018

Would be cool if was built into cron or something, so this could be how you managed your IMAP mail (filters/sorting)

@nado

This comment was marked as off-topic.

Copy link

nado commented Sep 1, 2018

Im not sure to understand what you say. If I have to, I'll switch back to a "rainloop only" instance.
But my hope was to have it more integrated in my current nc install (login session, file picking for attachment, less checks needed to keep it all updated, etc).
I'd be happy to switch to nc/mail when the filters are developed because thats basically all Im waiting for.

@LemonAndroid

This comment was marked as off-topic.

Copy link

LemonAndroid commented Sep 1, 2018

@nado I'm saying rainloop could be integrated to share login etc. with nc install.

@nado

This comment was marked as off-topic.

Copy link

nado commented Sep 1, 2018

@LemonAndroid yes it could. Problem is manpower. So I'm looking for alternatives since I dont have time for personally managing it right now.
See pierre-alain-b/rainloop-nextcloud#64 (comment)

@LemonAndroid

This comment was marked as off-topic.

Copy link

LemonAndroid commented Sep 1, 2018

@nado thanks for linking the rainloop-nextcloud repo, let's continue discussion over there: pierre-alain-b/rainloop-nextcloud#72

@loxK

This comment was marked as off-topic.

Copy link

loxK commented Sep 1, 2018

I have the same rainloop dilemma. Just learning it won't be supported in NC14... 😫

Every webmail app has sieve filters support. Sogo, rainloop, roundcube etc. It is the de facto standard for IMAP mail filtering.

@LemonAndroid

This comment was marked as off-topic.

Copy link

LemonAndroid commented Sep 1, 2018

@loxK i was planning on putting up a bounty for the rainloop-nextcloud#45 issue for making it work on nc14. would you chime in? I thought 10$ each for now.

@plinss

This comment was marked as off-topic.

Copy link

plinss commented Sep 5, 2018

@LemonAndroid I'd be willing to put up $50 toward the bounty of getting rainloop working in NC14

@LemonAndroid

This comment was marked as off-topic.

Copy link

LemonAndroid commented Sep 5, 2018

@plinss I'll match that.

@ChristophWurst

This comment was marked as resolved.

Copy link
Member

ChristophWurst commented Sep 5, 2018

Please discuss these rainloop topics in the rainloop repo. Thanks ✌️

@Sanookmakmak

This comment has been minimized.

Copy link

Sanookmakmak commented Sep 5, 2018

There are a lot of solutions already done, just install sieve:

http://sieve.info/clients

@Krymson

This comment has been minimized.

Copy link

Krymson commented Sep 5, 2018

@ChristophWurst - firstly, I don't plan on supporting servers that don't support managesieve. In the same way that Nextcloud doesn't support mail servers that don't support IMAP.

From a UI point of view, I'm expecting that I'll provide ready to use rules and the parameters require for them rather than access the sieve language - in my mind this is an end-user tool, not poweruser/admins. For this reason I'll short-circuit the most common functions, such as setting an out-of-office message.

As for how technically - I need to investigate how the frontend works in Nextcloud. This would be my first Nextcloud contribution, and I need to familiarise.

@ChristophWurst

This comment has been minimized.

Copy link
Member

ChristophWurst commented Sep 5, 2018

@ChristophWurst - firstly, I don't plan on supporting servers that don't support managesieve. In the same way that Nextcloud doesn't support mail servers that don't support IMAP.

We at least have to show a info that rules cannot be edited on these server and disable the rules dialogue.

@Krymson

This comment has been minimized.

Copy link

Krymson commented Sep 5, 2018

Sure, that's a given. I'll have to add some settings in the account settings dialog.

@ediazcomellas

This comment has been minimized.

Copy link

ediazcomellas commented Sep 5, 2018

I am ok with a managesieve approach. Sieve is a sensible standard.
Please check how roundcube manages several sieve scripts, allowing to activate one or another.
screenshot_20180905_190935

@Gatak

This comment has been minimized.

Copy link

Gatak commented Sep 16, 2018

I raised bug #1101, but it was closed as duplicate of this bug. However, from reading above comments it seems that server side filtering is preferred through sieve. This makes me wonder two things:

  • Can sieve on the server side apply message filters across multiple accounts?
  • My use case is using mail app to read many external accounts, such as Gmail, outlook, and a few others, including private ones. AFAIK most public mail services doesn't support sieve server side. In this respect I think my original #1101 request should remain open.

Also, I do not think that most users that self host also self host email. Just think about the press release about expanding nextcloud on consumer devices in Japan. Why limit such an important mail feature to advanced users.

@bookmoons bookmoons referenced this issue Oct 18, 2018

Closed

Usage example #9

@ytzelf

This comment has been minimized.

Copy link

ytzelf commented Nov 29, 2018

@Krymson are you still working on this?

@omocinteractive

This comment has been minimized.

Copy link

omocinteractive commented Nov 29, 2018

I installed Dovecot/Sieve and use Thunderbird to edit the sieve-filters for each account. I think it's a good way. It would be nice to have a editor in the nextcloud mailer, of course ....

@plinss

This comment has been minimized.

Copy link

plinss commented Nov 30, 2018

I agree that filtering via Sieve on the mail server is the proper approach here. FWIW, I've been using RainLoop to edit sieve filters. Much better UX than Thunderbird, IMO.

Having a decent UI to edit Sieve filters via the managesieve protocol built in to the standard mail app would be great.

@omocinteractive

This comment was marked as off-topic.

Copy link

omocinteractive commented Nov 30, 2018

This is also a reason i use Roundcube (was installed on my Plesk system and has a better UI for multiple accounts) ...

@ediazcomellas

This comment has been minimized.

Copy link

ediazcomellas commented Nov 30, 2018

Hi,

No, Sieve only acts on message receival for a single account, so it wont work on external accounts or work across several local accounts.

Being mailserver-based, sieve is ideal if you access your email from several interfaces (which is the case of lots of users, using web, desktop and mobile MUAs).

I raised bug #1101, but it was closed as duplicate of this bug. However, from reading above comments it seems that server side filtering is preferred through sieve. This makes me wonder two things:

* Can sieve on the server side apply message filters across multiple accounts?

* My use case is using mail app to read many external accounts, such as Gmail, outlook, and a few others, including private ones. AFAIK most public mail services doesn't support sieve server side. In this respect I think my original #1101 request should remain open.

Also, I do not think that most users that self host also self host email. Just think about the press release about expanding nextcloud on consumer devices in Japan. Why limit such an important mail feature to advanced users.

@omocinteractive

This comment has been minimized.

Copy link

omocinteractive commented Nov 30, 2018

  • Can sieve on the server side apply message filters across multiple accounts?

yes, but you have to add the filtersetting for each account (copy and paste directly on the host or export/import in your editor). i forward mails from gmx, gmail to a self-hosted account with sieve filter.

@ytzelf

This comment has been minimized.

Copy link

ytzelf commented Nov 30, 2018

I'm currently using roundcube and there is a well made and functionnal managesieve plugin here https://github.com/roundcube/roundcubemail/tree/master/plugins/managesieve . To alleviate above concerns about sieve complexity, the way it works is with a graphical user-friendly filter editor translating comboboxes in sieve syntax.
I'd be really interested in this as I want to switch to nextcloud for contacts and calendar purpose but can't live without client-side edition and creation of server-side filters. I'll add 20€ to the bounty - I see that someone named daniilborovkov has started working on it some 20 days ago, has he pinged anyone from nextcloud?

@omocinteractive

This comment has been minimized.

Copy link

omocinteractive commented Nov 30, 2018

"I'd be really interested" - i too. I use a card-dav and web-dav in roundcube plugin to interact with nextcloud, but it would be better to do this in nextcloud mailer (if someday the signature feature available).

@ytzelf

This comment has been minimized.

Copy link

ytzelf commented Nov 30, 2018

"I'd be really interested" - i too. I use a card-dav and web-dav in roundcube plugin to interact with nextcloud, but it would be better to do this in nextcloud mailer (if someday the signature feature available).

Then maybe add to the bounty? if it goes high enough someone will pick it up ^^

@omocinteractive

This comment has been minimized.

Copy link

omocinteractive commented Nov 30, 2018

... i still waiting for the confirmation mail (greylisting active).

@omocinteractive

This comment has been minimized.

Copy link

omocinteractive commented Nov 30, 2018

... done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.