Skip to content

Fix groups receipts#107

Merged
rimas-kudelis merged 4 commits into
vexim:masterfrom
ultreia-es:fix-groups-receipts
Feb 9, 2016
Merged

Fix groups receipts#107
rimas-kudelis merged 4 commits into
vexim:masterfrom
ultreia-es:fix-groups-receipts

Conversation

@chusopr

@chusopr chusopr commented Feb 9, 2016

Copy link
Copy Markdown
Contributor

If you are using a user table where the username of each user is not their e-mail address (for example #106), groups won't work because provided exim configuration resolves group addresses to the usernames of their members, instead of their e-mail addresses. This works when their usernames are their e-mail addresses, but will fail otherwise.
This patch also fixes forms that assume that username = e-mail address to correctly show e-mail addresses.

Comment thread docs/configure Outdated
g.name = '${quote_mysql:$local_part}'}}} \
{$sender_address} \
{${lookup mysql{select u.username \
{${lookup mysql{select concat_ws('@', localpart, d.domain) \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use u.localpart instead of just localpart where SELECTs use data from multiple tables.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in commit 6e5ef52.

rimas-kudelis added a commit that referenced this pull request Feb 9, 2016
Prepare groups for non-email-address usernames.
@rimas-kudelis rimas-kudelis merged commit e2bb054 into vexim:master Feb 9, 2016
@Udera Udera added this to the Version 2.3 milestone Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants