Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring alias manager: Obsolete alias_manager.pl #118

Merged
merged 5 commits into from
Nov 15, 2017

Conversation

ikedas
Copy link
Member

@ikedas ikedas commented Nov 8, 2017

Introduced new class:

  • Sympa::Aliases
    Base class for aliases management.

Added these subclasses:

  • Sympa::Aliases::CheckSMTP
    Check addresses using SMTP
  • Sympa::Aliases::External
    Updating aliases by external program
  • Sympa::Aliases::Template
    Aliases file based on template

alias_manager.pl was obsoleted: If value of alias_manager parameter is full path to this utility, Sympa::Aliases::Template will be used instead. Though alias_manager.pl is left for compatibility, it would be better to be removed in the future.

Sympa::Admin was deprecated (removed).

Fixed bugs:

  • If list_check_suffixes is not set, list address verification is skipped.
  • return_path address won't be checked if list_check_suffixes doesn't include it.
  • Previously, the third parameter fed to external program was the value of host parameter of the list, not mail domain: If host parameter was not the same as domain name, external program could fail.
    Fixed by feeding mail domain instead of host value. And added [% list.host %] template variable to use host value in template.
    Note that host parameter may be deprecated in the future (See issue List parameter "host" should be abolished #43).

…_manager.pl

- If value of alias_manager parameter has full path of alias_manager.pl as value, Sympa::Aliases::Template module will be used instead of invoking alias_manager.pl.
- alias_manager.pl would be removed in the future.
… skipped.

[bug] return_path address won't be checked if list_check_suffixes doesn't include it.
@ikedas ikedas added this to the 6.2.24 milestone Nov 8, 2017
… value of ``host`` parameter of the list, not mail domain: If ``host`` parameter was not the same as domain name, external program could fail.

Fixed by feeding mail domain instead of ``host`` value. And added [% list.host %] template variable to use ``host`` value in template.
Note that ``host`` parameter may be deprecated in the future (See issue sympa-community#43).
@ikedas ikedas merged commit a27510a into sympa-community:sympa-6.2 Nov 15, 2017
@ikedas ikedas deleted the refactoring_alias_manager branch November 18, 2017 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant