Commit 71453393 authored by sikeda's avatar sikeda
Browse files

[bug][Reported by U. Buhvestov, Tartu Tamme Gymnasium] "sympa" alias prepared...

[bug][Reported by U. Buhvestov, Tartu Tamme Gymnasium] "sympa" alias prepared for earlier version of Sympa may not have domain part in argument of queue program.  Sympa rejects messages sent to such alias with error "robot * undefined".  Fixed by assigning default domain.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12342 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 78433917
......@@ -608,10 +608,15 @@ sub process_message {
my $robot;
my $listname;
$robot =
(ref $message->{context} eq 'Sympa::List')
? $message->{context}->{'domain'}
: $message->{context};
if (ref $message->{context} eq 'Sympa::List') {
$robot = $message->{context}->{'domain'};
} elsif ($message->{context} and $message->{context} ne '*') {
$robot = $message->{context};
} else {
# Older "sympa" alias may not have "@domain" in argument of queue
# program.
$robot = $Conf::Conf{'domain'};
}
$listname = $message->{'listname'};
## Ignoring messages with no sender
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment