--- http.py.org	2008-02-20 13:53:50.000000000 -0800
+++ http.py	2008-02-20 13:38:21.000000000 -0800
@@ -16,6 +16,7 @@ def http(request, **kw):
     """ authenticate via http basic/digest/ntlm auth """
     user_obj = kw.get('user_obj')
     u = None
+    cfg = request.cfg
     # check if we are running Twisted
     if isinstance(request, request_twisted.Request):
         username = request.twistd.getUser().decode(config.charset)
@@ -43,6 +44,9 @@ def http(request, **kw):
             # we don't use the moin user profile for those attributes.
             u = user.User(request, auth_username=username,
                           auth_method='http', auth_attribs=('name', 'password'))
+            if cfg.auth_http_save_email and cfg.auth_http_email_suffix and u.email == '':
+                email = username + cfg.auth_http_email_suffix
+                u.email = email
 
     if u:
         u.create_or_update()
