Open hitam4450 opened 8 years ago
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.
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.
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
Also be able to filter read/unread on inbox.
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.
@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! :tada:
Is there anyone willing to make a try on this issue? I've expanded the bounty to $125. I hope it helps
@ediazcomellas thanks a lot for the bounty! :)
@nextcloud/mail @ChristophWurst @Gomez @lcalaresu anyone up for solving this? :)
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.
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.
Added another 50 to the bounty. Would love this feature.
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.
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. :smiley:
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.
Rainloop from what i saw has a specific way of saving and formatting filters. It would be good to follow the same scheme so that future migrations are painless.
On 15 December 2017 17:13:39 CET, Corentin Pazdera notifications@github.com wrote:
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.
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/nextcloud/mail/issues/44#issuecomment-352045425
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
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.
^ @jancborchardt
@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? :)
@jancborchardt Right 👍
@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.
@loxK OK thanks.
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
Would be cool if was built into cron or something, so this could be how you managed your IMAP mail (filters/sorting)
To the person who said dovecot can do this already: Do you expect any email user to create a dovecot mail rules congif?
Nextcloud being about self-hosting I think most of us are using the mail app on self hosted mail servers.
Sieve server-side filtering rules aren't exclusively supported by Dovecot, see here. Also Sieve server side filters are what most webmails add support for when talking about filtering (roundcube, rainloop, sogo etc.)
oh. In that case. sieve rules.
Was thinking about this again: sieve... not everyone will have access to that. I have to think eventually pop3 being supported would be a plan. Also, pretty sure a cron task wouldn't scale well. Feels funny, but I think the decision making should be offset to client - I guess it is just like every other email client. I guess it makes sense
is there a js sieve library?
POP3 support is out of that issue scope. Nextcloud Mail is an IMAP client for now.
IMHO sieve is the way to go. Server-side filters are extremely useful: email gets delivered to the correct folder automatically. It doesn't matter if you open the mail with thuderbird, netxtcloud or your email client in your mobile phone.
yeah, but not just server side, just in case they cant change their config - what if that server doesn't support sieve, or pretty sure not all sieve [server] support includes remote management by regular user. I saw a thunderbird plugin that looks like it does a good job - in the screen shots. Haven't tried it. See, I'm not sure if I'd have to install extra stuff for dovecot to support the remote management of sieve configs. I bet some people would have to. So, it should have client side fall back, feedback, instructions on how to edit the config, etc.
Server side and client side are two different tasks. I will consider this task done, and concede the bounty, if the server side is done.
Being nextcloud about selfhosting, there is a good chance that the admin can add sieve in the server, and any commercial service that is worth the money will already have sieve in the imap server anyway.
Anyone willing to take this issue? I really want to give the bounty :)
@ediazcomellas I made a quick look on the issue comments and I think I can help you with it. If this issue is still active and needs a solution - let me know. BTW: Is it still related to this bounty - https://www.bountysource.com/issues/37588385-filtering-of-incoming-messages?
@mezenok if it was solved the status of this issue would have reflected it. Also, you'll find the related bounty referenced in the first post of this issue.
@TheLastTech As there is no PR and this isn't closed, I would say yes.
Hey @TheLastTech @kylepwarren @pierlon @mezenok,
Any progress on this and are you interested in teaming up for completing this?
cc @ChristophWurst
You can add this line at the top of the issue description, it will update itself
![badge](https://api.bountysource.com/badge/issue?issue_id=37588385)
and it looks like
@PanderMusubi But it's a lie, the acutal bounty that can be cashed out is ~630$ because of the 10% bountysource fee.
🤔 Perhaps time for an API on top of this API that deducts the fee.
@ediazcomellas Why is this comment marked as outdated? :D https://gyazo.com/f9b55c46b4523bfefdc8c0b8904dd133
You can add this line at the top of the issue description, it will update itself
The issue description should update automatically. I notified the person who set this up to check if the integration has to be-enabled.
@LemonAndroid I have no idea... The bounty is still open and awaiting for someone to take it. Please note that only a solution that is accepted upstream will be awarded the bounty.
Hi - if no-one else is working on this, I'd like to volunteer to have a crack at it.
@Krymson awesome. Please let us know which approach you plan on implementing before starting your actual work so that we can make sure it's actually something we'd eventually integrate. Also, please see #1045 because we're restructuring/rewriting parts of this app at the moment and this might conflict.
It will be a settings page to manage sieve filters on the mail server via the managesieve protocol described in RFC5804.
Additionally there will be a page to set up a simple out of office notification using the same mechanism (but making it obvious as opposed to something you can do with filters).
Do you need more detail?
@ChristophWurst @Krymson Any progress on this?
It will be a settings page to manage sieve filters on the mail server via the managesieve protocol described in RFC5804.
You might want to wait for the completion of #1045 in this regard.
Other than that I'd like to see how you'd technically implement this. How will you build the UI? How will you configure sieve rules on the IMAP server? How do you handle servers that don't support sieve filtering?
Thanks.
So basically, still waiting? Rainloop for nextcloud is not supported in nc14 and official mail app doesnt support filters. I guess I’ll wait on nc13 for some time this year.
@nado why is rainloop not supported in nc14 and why is nextcloud/mail superior to rainloop?
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
Todo