Mail: Sending to groups [$150 awarded]

Created on 5 Sep 2016  路  29Comments  路  Source: nextcloud/mail

Typing a group name into the 禄to芦 field should autocomplete from the 禄Groups芦 in the Contacts app as well. This would allow you to write emails to your 禄Sports芦 or 禄Work芦 groups quickly.

cc @aspdye @Toub @virgilekat @ttjaden since you requested that. :)


The $150 bounty on this issue has been claimed at Bountysource.

1. to develop bounty enhancement

Most helpful comment

Added another 15 US$ at Bountysource. Would like to see this feature as well!

All 29 comments

Thanks @jancborchardt for this news. Maybe you have a little extra-information for me, 'cause I'm confused about the owncloud/nextcloud thing:

  1. Will the Mail-App be the same for owncloud and nextcloud?
  2. I tested the feature, but in mail 0.5.3 the autocomplete doenst work with the groups from the contacts apps.
    Would be great if you guys really can make this work! :-)

@ttjaden the main contributors to the Mail app (@ChristophWurst is the main maintainer) moved to Nextcloud as the more community-oriented project. Hence we don鈥檛 really test on ownCloud anymore and while the app might run there it鈥檚 not tested. So we decided to also move/fork the repository.
Same happened btw to the News and Gallery apps as the maintainers moved. And likely the Calendar is going to move soon too.

Regarding the feature, it鈥檚 not there yet. This is just an issue tracking the request. :) Also this is a community project so any contribution is welcome! :rocket:

Any news of this missing feature ? ;) Actually, rainloop and Mail don't allow to send mails to a group and it's a very missing feature...

I'm looking for a collaborative work platform and I'm thinking of using NextCloud. AFAIK, there is no support for mailing lists, already.

The "send to group" feature could provide that if it actually sent to [email protected]_nextcloud.tld rather than explicitly expanding to the group members.

For a complete mailing list support, it should also be able to receive e-mails to [email protected]_nextcloud.tld from the outside and redirect them.

I'm not sure what the best strategy would be. Maybe mailing lists should be a separate Nextcould app. And maybe it would be better to interface an existing solution like Mailman than reinventing the wheel.

Sorry if I'm off-topic. I thought this feature request might arise at some point, so rather mention it before the "sending to groups" feature reaches an advanced conception stage.

So @Ivansss @nickvergessen @schiessle @LukasReschke who of you implemented this in the Spreed video calls app? :) Basically here it would only be:

  • adding the contact groups to the autocomplete dropdown
  • populating the 禄to芦 (or 禄cc芦 field, depending on where the group name was typed) with all people from that group

yep, missing this feature too.
Let's put some bounty on this ;D

Currently we ping the Sharees endpoint:
https://github.com/nextcloud/spreed/blob/master/js/app.js#L42-L111

That returns users, groups and (maybe for a future feature) circles.
The actual work to get their email addresses has to be done manually.

I miss this feature every day =(
It has been requested a year ago.

Currently there is no way to send an email to a group. You have to type every member by hand. Kinda defeats the idea of contact groups. I am hoping somebody who knows how to code can put a little energy into this. I would soooo appreciated it ;DD

I'd give it a shot. Anybody working on this already?

@myrho I'm not aware of anybody working on this at the moment. Feel free to dive into this 馃槈

Let me know how you want to approach it, so that I can give you early feedback/guidance!

  1. Add a Service/GroupsIntegration using OCP/GroupInterface
  2. Group name is put in the recipient field as is.
  3. Let send expand the group name to its users' email addresses on the server side.

I would no expand the group on the client side since it might be many recipients which would be hard to handle (eg. if user wants to remove the group from the recipients).

Perhaps the group name should be prefixed or wrapped to avoid ambiguity with group names which look like email addresses?

OCP/GroupInterface

A quick look at https://github.com/nextcloud/server/blob/master/lib/public/GroupInterface.php shows that this interface is about Nextcloud groups, not contact groups. Those are different.

Ok, I just realized that this issue is about groups from the Contacts App not the nextcloud groups.

Anyway, since autocomplete also searches nextcloud user names besides contacts, shouldn't it - if we add this group search feature - search nextcloud groups too?

Anyway, since autocomplete also searches nextcloud user names besides contacts, shouldn't it - if we add this group search feature - search nextcloud groups too?

Yup, sure. That's the idea behind this. The main problem is that it probably requires changes to the Nextcloud server too because it doesn't expose groups right now.

I know in the original issue it says from the Contacts app, but ideally groups are taken from both Contacts _and_ the user management. :) As people would expect it to work for both if it works for one.

OCP/GroupInterface can't be used to access nextcloud groups?

Actually send a message to nextcloud group of users (not only contacts), would be very helpful.

Ok, I've implemented autocomplete for nextcloud groups so far.

Please, could someone have a quick look and let me know whether I'm on the right way?
https://github.com/nextcloud/mail/compare/master...myrho:autocomplete-groups

The next steps would be:

  • Add autocomplete for Contacts group
  • Expand groups to recepients before sending (on server side?)

@myrho your code looks very good! Could you please submit a pull request? Thanks!

It seems OCP\Contacts and OCP\Contacts\IManager don't expose a method

  • to get Contacts groups
  • and to get users for a Contacts group

So I think these need to be implemented for the server first. Am I right?

So I think these need to be implemented for the server first. Am I right?

Yes, you are (https://github.com/nextcloud/mail/issues/41#issuecomment-346601091).

I'm all for Nexcloud (Core or with an App) to allow easy on-the-Webserver-Mailing-Lists. It would be very workgroup oriented to even expand the functionality to (all) group members to create sub-groups for specific topics in which only a selection of the parental group is a member and receives emails.
A further step would be to integrate it with the Task (&Calendar) App to combine those functionalities with groups.
Office365>Planner/Hub gives those/similar functionalities but IMHO not in a very polished and good way yet (and closed source / no calDAV support etc.).

Wait, this issue is only partly fixed via pull request https://github.com/nextcloud/mail/pull/810
The implementatuon of contact groups was the actual bug report (scroll up), nextcloud group support was only added later in the discussion.

I am very happy that this is going forward, but we are not there yet. And while I really want to reward @myrho for his work, I don't think it's fair if he gets the full bounty cause the issue is not actually fixed yet. Btw the bounty should be waaaaay higher, if anyone has a dime to spare :-)

Yes, I agree. This issue is not fixed yet.

I am very happy that this is going forward, but we are not there yet. And while I really want to reward @myrho for his work, I don't think it's fair if he gets the full bounty cause the issue is not actually fixed yet. Btw the bounty should be waaaaay higher, if anyone has a dime to spare :-)

Sorry, my bad. Reopened the issue.

FYI bountysource requires a confirmation about whether the issue has been solved from the people who posted it.

Added another 15 US$ at Bountysource. Would like to see this feature as well!

I just noticed that the TO field recognizes user groups (thanks to @myrho's work), but IMO it should expand to the individual email addresses. Should I create a separate bug report for this, or does it belong here?

Added 40$ at Bountysource, since I would really love to see this feature coming to my NGOs Nextcloud server!

Added 50 $ at Bountysource, since I think such a feature is indispensible when adminstrating larger communities which are not necessarily nextcloud members.

I don't care if such a feature is implemented as circles or contact groups or even mail app. aliases!

Was this page helpful?
0 / 5 - 0 ratings