diff options
| author | Barry Warsaw | 2009-12-12 23:57:10 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-12-12 23:57:10 -0500 |
| commit | 4d9afb3d1d4ae87bda4b833f6e46660722147f18 (patch) | |
| tree | e2baf3c1c2fce181305f649e2f3c520e233476d8 /src/mailman/docs | |
| parent | 88b9da7001a2f55465a16d299b021f1143857655 (diff) | |
| download | mailman-4d9afb3d1d4ae87bda4b833f6e46660722147f18.tar.gz mailman-4d9afb3d1d4ae87bda4b833f6e46660722147f18.tar.zst mailman-4d9afb3d1d4ae87bda4b833f6e46660722147f18.zip | |
* Refactor devmode settings, so that they live in one section.
* Fix some tests.
Diffstat (limited to 'src/mailman/docs')
| -rw-r--r-- | src/mailman/docs/registration.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mailman/docs/registration.txt b/src/mailman/docs/registration.txt index 8f473403e..a3dfc7004 100644 --- a/src/mailman/docs/registration.txt +++ b/src/mailman/docs/registration.txt @@ -29,7 +29,7 @@ Here is a helper function to extract tokens from confirmation messages. >>> import re >>> cre = re.compile('http://lists.example.com/confirm/(.*)') >>> def extract_token(msg): - ... mo = cre.search(qmsg.get_payload()) + ... mo = cre.search(msg.get_payload()) ... return mo.group(1) @@ -157,18 +157,18 @@ The confirmation token shows up in several places, each of which provides an easy way for the user to complete the confirmation. The token will always appear in a URL in the body of the message. - >>> sent_token = extract_token(qmsg) + >>> sent_token = extract_token(items[0].msg) >>> sent_token == token True The same token will appear in the From header. - >>> qmsg['from'] == 'alpha-confirm+' + token + '@example.com' + >>> items[0].msg['from'] == 'alpha-confirm+' + token + '@example.com' True It will also appear in the Subject header. - >>> qmsg['subject'] == 'confirm ' + token + >>> items[0].msg['subject'] == 'confirm ' + token True The user would then validate their registered address by clicking on a url or @@ -260,6 +260,9 @@ mind about registering. When discarded, no IAddress or IUser is created. >>> print user_manager.get_user('eperson@example.com') None + # Clear the virgin queue of all the preceding confirmation messages. + >>> ignore = get_queue_messages('virgin') + Registering a new address for an existing user ============================================== |
