Univention Bugzilla – Attachment 7593 Details for
Bug 41055
postfix listfilter.py fails for email addresses as sasl_username
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allow to filter with sasl_username=email@address
listfilter_allow_email_address.patch (text/plain), 938 bytes, created by
Daniel Tröder
on 2016-04-14 16:12:05 CEST
(
hide
)
Description:
allow to filter with sasl_username=email@address
Filename:
MIME Type:
Creator:
Daniel Tröder
Created:
2016-04-14 16:12:05 CEST
Size:
938 bytes
patch
obsolete
>Index: branches/ucs-4.1/ucs-4.1-1/mail/univention-mail-postfix/share/listfilter.py >=================================================================== >--- branches/ucs-4.1/ucs-4.1-1/mail/univention-mail-postfix/share/listfilter.py (Revision 68624) >+++ branches/ucs-4.1/ucs-4.1-1/mail/univention-mail-postfix/share/listfilter.py (Arbeitskopie) >@@ -98,7 +98,10 @@ > > # get dn and groups of sender > if check_sasl_username: >- ldap_filter = '(&(uid=%s)(objectclass=posixAccount))' % sender >+ if "@" in sender: >+ ldap_filter = '(&(mailPrimaryAddress=%s)(objectclass=posixAccount))' % sender >+ else: >+ ldap_filter = '(&(uid=%s)(objectclass=posixAccount))' % sender > else: > ldap_filter = '(&(|(mailPrimaryAddress=%s)(mailAlternativeAddress=%s)(mail=%s))(objectclass=posixAccount))' % (sender, sender, sender) > user_result = ldap.search(base=options.ldap_base, filter=ldap_filter, attr=["dn"])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41055
: 7593