Skip to Content.
Sympa Menu

en - Re: [sympa-users] Question on Looping (possible bug)?

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: IKEDA Soji <address@concealed>
  • To: Amos <address@concealed>
  • Cc: "address@concealed >> address@concealed" <address@concealed>
  • Subject: Re: [sympa-users] Question on Looping (possible bug)?
  • Date: Mon, 26 Sep 2016 11:13:15 +0900

Amos,

On Sun, 25 Sep 2016 07:16:24 -0500
Amos <address@concealed> wrote:

> I guess I still have a question about these lines in the diff I sent:
>
>
> my $list_address;
> if ($message->{'listtype'} and $message->{'listtype'} eq 'listmaster')
> {
> $list_address =
> Conf::get_robot_conf($robot, 'listmaster_email') . '@'
> - . Conf::get_robot_conf($robot, 'host');
> + . Conf::get_robot_conf($robot, 'domain');
> } elsif ($message->{'listtype'} and $message->{'listtype'} eq 'sympa')
> {
> $list_address =
> Conf::get_robot_conf($robot, 'email') . '@'
> - . Conf::get_robot_conf($robot, 'host');
> + . Conf::get_robot_conf($robot, 'domain');
> } else {
> unless (ref $list eq 'Sympa::List') {
> $log->syslog('err', 'List %s does not exist', $listname);
>
>
>
> I thought 'host' in sympa.conf was replaced by 'domain'? More curiosity at
> this point....

Currently 'host' is the synonym of 'domain', and vice versa. You
may use either. However, in sympa.conf, 'domain' is preferred.

Exceptions are list addresses: domain part of addresses belonging to
particular list, LISTNAME@host, LISTNAME-request@host and so on, may
be overridden by the 'host' list config parameter. (This feature is
slightly confusing and probably may be deprecated in the future.)

Anyway, you might want to use get_address() function in Sympa module
to generate e-mail addresses in the code not suffering from relics
of the past described above. For example in current code in SCM:

https://sourcesup.renater.fr/scm/viewvc.php/branches/sympa-6.2-branch/src/lib/Sympa/Spindle/ProcessIncoming.pm?root=sympa&r1=12846&r2=12845
For more details type "man Sympa".

Regards,

-- Soji

> Amos


--
株式会社 コンバージョン セキュリティ&OSSソリューション部 池田荘児
〒140-0014 東京都品川区大井1-49-15 アクセス大井町ビル4F
e-mail address@concealed TEL 03-6429-2880
http://www.conversion.co.jp/



Archive powered by MHonArc 2.6.19+.

Top of Page