Send inn-workers mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."


Today's Topics:

   1. Re: Inews and long headers (Kamil =?iso-8859-2?Q?Jo=F1ca?=)
   2. Re: Inews and long headers (Julien ?LIE)


----------------------------------------------------------------------

Message: 1
Date: Mon, 10 Jul 2017 18:19:35 +0200
From: [email protected] (Kamil =?iso-8859-2?Q?Jo=F1ca?=)
To: [email protected]
Subject: Re: Inews and long headers
Message-ID: <[email protected]>
Content-Type: text/plain; charset=iso-8859-2

Julien ?LIE <[email protected]> writes:

>> +    # Remove empty header lines within header body.
>> +    s/\n[ \t]+\n/\n/g;          # middle
>> +    s/\n[ \t]+$//;              # last line
>> +    s/^([^:]+):[ \t]+\n/$1/;    # first line
>
> s/^([^:]+:[ \t]+)\n/$1/;
> with wider scope for $1 will be far better!

Your patches are ok for my purposes :) I have had some dobuts about "middle"
pattern, but I thinks is ok.
KJ

-- 
http://wolnelektury.pl/wesprzyj/teraz/
"MacDonald has the gift on compressing the largest amount of words into
the smallest amount of thoughts."
                -- Winston Churchill


------------------------------

Message: 2
Date: Mon, 10 Jul 2017 20:46:36 +0200
From: Julien ?LIE <[email protected]>
To: [email protected]
Subject: Re: Inews and long headers
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi Kamil,

>>> +    # Remove empty header lines within header body.
>>> +    s/\n[ \t]+\n/\n/g;          # middle
>>> +    s/\n[ \t]+$//;              # last line
>>> +    s/^([^:]+):[ \t]+\n/$1/;    # first line
>>
>> s/^([^:]+:[ \t]+)\n/$1/;
>> with wider scope for $1 will be far better!
> 
> Your patches are ok for my purposes :) I have had some dobuts about "middle"
> pattern, but I thinks is ok.

The "middle" pattern will remove the 2nd and 4th lines of the following 
example:

Header: test\n
        \n
   non-empty header line   \n
     \n
        last line\n

(in mailpost, \r is removed)

Thanks for the confirmation the patch works for your purposes.
I'll commit it, and it will be shipped with INN 2.6.2.

If you see other stuff to fix in mail-to-news gatewaying (or any other 
feature), do not hesitate to drop a mail.

-- 
Julien ?LIE

? Allons, reprends du poil de l'homme ! ? (Ast?rix)


------------------------------

Subject: Digest Footer

_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers

------------------------------

End of inn-workers Digest, Vol 96, Issue 4
******************************************

Reply via email to