Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] [sympa-commits] sympa[11604] branches/sympa-6.2-branch/src/sbin/sympa.pl.in: [-bug] Fix automatic families message handling ( file name was not parsed correctly and not enough data was provided for file moving )

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: IKEDA Soji <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-developpers] [sympa-commits] sympa[11604] branches/sympa-6.2-branch/src/sbin/sympa.pl.in: [-bug] Fix automatic families message handling ( file name was not parsed correctly and not enough data was provided for file moving )
  • Date: Fri, 31 Oct 2014 10:16:29 +0900

Hi,

This change will make familyqueue not work. Sympa-milter looks not
compatible with familyqueue.

familyqueue
-----------

Configuration (aliases):

<regexp>: "|/path/to/familyqueue <list_name>@<robot> <family_name>"

Spool file name:

<list_name>@<robot>.<time>.<pid>

Attributes:

X-Sympa-Family: <family_name>
X-Sympa-To: <list_name@robot>

sympa-milter
------------

Configuration (family section of sympa-milter.conf):

<family_name> <regexp>@<robot>

Spool file name:

<family_name>.<time>.<random>

Attributes:

X-Sympa-Family: <family_name>
X-Sympa-To: <list_name@robot>


--- Soji

On Thu, 30 Oct 2014 17:10:52 +0100 (CET)
address@concealed wrote:

> sympa[11604] branches/sympa-6.2-branch/src/sbin/sympa.pl.in: [-bug] Fix
> automatic families message handling (file name was not parsed correctly and
> not enough data was provided for file moving)
> Revision 11604 Author etiennemeleard Date 2014-10-30 17:10:51 +0100 (jeu.
> 30 oct. 2014)
> Log Message[-bug] Fix automatic families message handling (file name was
> not parsed correctly and not enough data was provided for file moving)
> Modified Paths
> branches/sympa-6.2-branch/src/sbin/sympa.pl.in
> Diff
> Modified: branches/sympa-6.2-branch/src/sbin/sympa.pl.in (11603 => 11604)
> --- branches/sympa-6.2-branch/src/sbin/sympa.pl.in 2014-10-30 16:09:01
> UTC (rev 11603)
> +++ branches/sympa-6.2-branch/src/sbin/sympa.pl.in 2014-10-30 16:10:51
> UTC (rev 11604)
> @@ -1449,8 +1449,9 @@
> $t_spool,
> $t_filename,
>
> qr{\A([^\s\@]+)(?:\@([\w\.\-]+))?\.(\d+)\.\w+(?:,.*)?\z},
> - [qw(automatic_listname domainpart date)]
> + [qw(familyname domainpart date)]
> );
> + $t_metadata->{'familyname'} =~ s/^([^\@]+)\@.+$/$1/; # get
> rid of existing domain
> } else {
> $t_metadata = tools::unmarshal_metadata(
> $t_spool,
> @@ -1479,6 +1480,7 @@
>
> my $msg_string = do { local $RS; <$lock_fh> };
> my $message = Sympa::Message->new($msg_string, %$metadata);
> + $message->{filename} = $t_spool . '/' . $filename;
>
> # Compatibility: Message with checksum by Sympa <=6.2a.40
> # They should be migrated.


--
--
株式会社 コンバージョン セキュリティ&OSSソリューション部 池田荘児
〒231-0004 神奈川県横浜市中区元浜町3-21-2 ヘリオス関内ビル7F
e-mail address@concealed TEL 045-640-3550
http://www.conversion.co.jp/


  • Re: [sympa-developpers] [sympa-commits] sympa[11604] branches/sympa-6.2-branch/src/sbin/sympa.pl.in: [-bug] Fix automatic families message handling ( file name was not parsed correctly and not enough data was provided for file moving ), IKEDA Soji, 10/31/2014

Archive powered by MHonArc 2.6.19+.

Top of Page