summaryrefslogtreecommitdiff
path: root/src/mailman/commands/eml_confirm.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix confirmation of unsubscription requests. (Closes: #294)Barry Warsaw2017-01-161-1/+4
|
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Use `atpublic` for @public instead of internal copy.Barry Warsaw2016-11-291-1/+1
|
* Simplify the implementation.Barry Warsaw2016-10-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | This merges the SubscriptionManager and UnsubscriptionManager into a single SubscriptionManager implementation that handles both register() and unregister(). This allows us to use direct class-based adaptation instead of the more clunky getAdapter() API. We can also eliminate the funky _get_workflow() implementation detail. This has a couple of side-effects. .confirm() must lookup the token in the pendings database and pull out the pending type, dispatching to the proper class depending on the type, or raising a LookupError if the token is None or there is no pendable associated with the given token. This feels like an acceptable trade-off. However, this *also* means that IWorkflowStateManager must lose its 'name' argument in its methods. That's because we won't actually know the name until its too late. Honestly, the name wasn't providing much value anyway (it was always the subclass's name), so losing that seems fine too. The complication here is that the name was a primary key in the 'workflowstate' table, so we need to add its removal in the database migration.
* IWorkflowManager -> ISubscriptionManagerBarry Warsaw2016-09-011-3/+2
|
* Intermediate CommitAbhilash Raj2016-09-011-2/+4
|
* Clean up the commands subdirectory.Barry Warsaw2016-03-241-6/+2
|
* Happy New Year.Barry Warsaw2016-01-021-1/+1
|
* * Fix the processing of subscription confirmation messages when the mailingBarry Warsaw2015-10-311-2/+7
| | | | list is set to confirm-then-moderate. (Closes #114)
* Plumb the subscription policy through the REST API.Barry Warsaw2015-04-151-1/+10
|
* Prevent replay attacks with the confirmation token.Barry Warsaw2015-04-151-1/+1
|
* Full test suite passes.Barry Warsaw2015-04-141-2/+5
| | | | | | | | | | | | | * Make sure Registrar.discard() removces any workflow state manager state associated with the token, and that this is flushed to SA. * Adjust the email commands to the new IRegistrar API. * Update the IRegistrar interface. * Add IWorkflowStateManager.discard() and make `count` an attribute/property. * Mark two tests as expected failures due to LP: #1444184.
* Checkpointing.Barry Warsaw2015-04-141-1/+1
|
* Bump copyright years.Barry Warsaw2015-01-041-1/+1
|
* Remove huge amounts of now unnecessary file boilerplate.Barry Warsaw2014-12-221-7/+3
|
* Bump copyright years.Barry Warsaw2014-01-011-1/+1
|
* Bump copyright years.Barry Warsaw2013-01-011-1/+1
|
* General code cleanup.Barry Warsaw2012-04-251-7/+6
| | | | | | | | - Add explicit dependency on zope.event in setup.py. - Use Python 3 compatible syntax for specifying that a class implements an interface, i.e. the @implementer class decorator. - print_function futures. - Whitespace normalization.
* * Added a `help` email command.Barry Warsaw2012-03-011-2/+3
| | | | | | | Also: - updated the 'join' command's descriptions - email commands should now have a short_description. The description (i.e. long description) should not repeat this information.
* Prevent the `confirm` command from running more than once on the same token.Barry Warsaw2012-03-011-1/+9
| | | | | Also add some debugging to the verification message, IOW, which template is it using (this may be more generally useful, but for now, it's an experiment).
* copybumpBarry Warsaw2012-01-011-1/+1
|
* Happy New Year.Barry Warsaw2011-01-011-1/+1
|
* Happy New Year.Barry Warsaw2010-01-011-1/+1
|
* IRegistrar is now a utility; it doesn't need to be adapted from an IDomain.Barry Warsaw2009-12-121-1/+2
| | | | | | | This is because registration confirmation messages must come from the mailing list that the subscription request came from. Remove IDomain.confirm_address() since this lives only on the IMailingList now.
* * Make IDomainManager a utility, since the config object is global.Barry Warsaw2009-12-081-2/+11
| | | | | | | | * Give IMailingList a .domain attribute which looks up the IDomain for its .host_name. This cleans up a lot of code. * Add a test for the 'confirm' email command. * Suppress blank lines in email command responses. * Make the IDomainCollection a utility.
* * Fix a test based on updated output.Barry Warsaw2009-12-061-0/+47
* Add a stub for the -confirm email command * Add stubs for -leave and -unsubscribe * Remove the crufty (and broken) 'tojoin' 'toleave' and 'toconfirm' metadata keys for synchronizing between lmtp and the command runner. Replace this by putting the subaddress recognized by lmtp into the metadata and having the command runner look at the subaddress.