projects
/
mutt-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9104a4
)
Return results in a format that mutt expects
author
Wade Berrier
<wberrier@gmail.com>
Sat, 19 Jan 2013 20:55:41 +0000
(13:55 -0700)
committer
Wade Berrier
<wberrier@gmail.com>
Sat, 19 Jan 2013 20:55:41 +0000
(13:55 -0700)
According to: http://www.mutt.org/doc/manual/manual-4.html#ss4.5
mutt-ldap.py
patch
|
blob
|
history
diff --git
a/mutt-ldap.py
b/mutt-ldap.py
index f7159378762e0f55ed009e8923cb0d3a143a6258..92607edb54900db99d546ee189f74e4519530d65 100755
(executable)
--- a/
mutt-ldap.py
+++ b/
mutt-ldap.py
@@
-103,7
+103,9
@@
def format_entry(entry):
if 'mail' in data:
name = data.get('displayName', data['cn'])[-1]
for m in data['mail']:
- yield email.utils.formataddr((name, m))
+ # http://www.mutt.org/doc/manual/manual-4.html#ss4.5
+ # Describes the format mutt expects: address\tname
+ yield "\t".join([m, name])
if __name__ == '__main__':