~abompard/mailman/import21

« back to all changes in this revision

Viewing changes to src/mailman/utilities/importer.py

  • Committer: Aurélien Bompard
  • Date: 2013-10-11 15:48:05 UTC
  • Revision ID: aurelien@bompard.org-20131011154805-9dov6x893k27jrnx
Handle 'local-part-only' acceptable aliases

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        addr = addr.strip()
251
251
        if not addr:
252
252
            continue
253
 
        IAcceptableAliasSet(mlist).add(str_to_unicode(addr))
 
253
        addr = str_to_unicode(addr)
 
254
        try:
 
255
            IAcceptableAliasSet(mlist).add(addr)
 
256
        except ValueError:
 
257
            IAcceptableAliasSet(mlist).add("^" + addr)
254
258
    # Handle conversion to URIs
255
259
    convert_to_uri = {
256
260
        "welcome_msg": "welcome_message_uri",