* Re: [mlmmj] access::Deny seems to have stopped working ?
2020-06-14 14:18 [mlmmj] access::Deny seems to have stopped working ? Per Jessen
@ 2020-06-15 6:45 ` Mads Martin Jørgensen
2020-06-15 6:55 ` Per Jessen
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Mads Martin Jørgensen @ 2020-06-15 6:45 UTC (permalink / raw)
To: mlmmj
Have you checked the source of mails going through that it actually matches?
Maybe with. Hex editor.
> On 14 Jun 2020, at 16.19, Per Jessen <per@opensuse.org> wrote:
>
> For years we have had a standard set of access rules, the previous list
> manager at openSUSE set them up. Somehow those rules seems to have
> stopped working - example:
>
> deny ^Content-Type:.*image/png
>
> simply does not deny a mail with a png attached. I was just wondering
> if anybody else had observed this?
>
> We're on mlmmj 1.2.19.
>
>
> thanks
> Per
>
> --
> Per Jessen, Zürich (18.2°C)
> Member, openSUSE Heroes
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [mlmmj] access::Deny seems to have stopped working ?
2020-06-14 14:18 [mlmmj] access::Deny seems to have stopped working ? Per Jessen
2020-06-15 6:45 ` Mads Martin Jørgensen
@ 2020-06-15 6:55 ` Per Jessen
2020-06-16 7:06 ` Per Jessen
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Per Jessen @ 2020-06-15 6:55 UTC (permalink / raw)
To: mlmmj
Mads Martin Jørgensen wrote:
> Have you checked the source of mails going through that it actually matches?
>
> Maybe with. Hex editor.
Oh yes, it matches just fine. That's the weird thing. I've tested with
standard emails from Thunderbird. Other people have noticed the same because we
suddenly had emails with e.g. pngs turning up on our mailing lists.
brgds
Per
--
Per Jessen, Zürich (17.7°C)
Member, openSUSE Heroes
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [mlmmj] access::Deny seems to have stopped working ?
2020-06-14 14:18 [mlmmj] access::Deny seems to have stopped working ? Per Jessen
2020-06-15 6:45 ` Mads Martin Jørgensen
2020-06-15 6:55 ` Per Jessen
@ 2020-06-16 7:06 ` Per Jessen
2020-06-16 9:09 ` Roderick
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Per Jessen @ 2020-06-16 7:06 UTC (permalink / raw)
To: mlmmj
Per Jessen wrote:
> For years we have had a standard set of access rules, the previous
> list manager at openSUSE set them up. Somehow those rules seems to
> have stopped working - example:
>
> deny ^Content-Type:.*image/png
>
> simply does not deny a mail with a png attached. I was just wondering
> if anybody else had observed this?
This morning I added some debug output to mlmmj-process - the reason
the "deny" above isn't working is simply that MIME headers in the email
body are not being tested :-)
I guess our many 'deny' rules (to refuse various attachments) quite
simply _never_ worked.
--
Per Jessen, Zürich (17.4°C)
Member, openSUSE Heroes
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [mlmmj] access::Deny seems to have stopped working ?
2020-06-14 14:18 [mlmmj] access::Deny seems to have stopped working ? Per Jessen
` (2 preceding siblings ...)
2020-06-16 7:06 ` Per Jessen
@ 2020-06-16 9:09 ` Roderick
2020-06-16 9:19 ` Per Jessen
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Roderick @ 2020-06-16 9:09 UTC (permalink / raw)
To: mlmmj
On Tue, 16 Jun 2020, Per Jessen wrote:
> This morning I added some debug output to mlmmj-process - the reason
> the "deny" above isn't working is simply that MIME headers in the email
> body are not being tested :-)
>
> I guess our many 'deny' rules (to refuse various attachments) quite
> simply _never_ worked.
Is that really the case? Is there the functionality to test the body
of a mail, here MIME headers of an attachment? I read in
README.access only:
"""
Each header in the mail is tested against each rule, rule by rule.
That is, all headers are first tested against the first rule, then
all headers are tested against the second rule, and so on.
""""
Rodrigo
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [mlmmj] access::Deny seems to have stopped working ?
2020-06-14 14:18 [mlmmj] access::Deny seems to have stopped working ? Per Jessen
` (3 preceding siblings ...)
2020-06-16 9:09 ` Roderick
@ 2020-06-16 9:19 ` Per Jessen
2020-06-16 9:27 ` Mads Martin Jørgensen
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Per Jessen @ 2020-06-16 9:19 UTC (permalink / raw)
To: mlmmj
Roderick wrote:
> On Tue, 16 Jun 2020, Per Jessen wrote:
>
>> This morning I added some debug output to mlmmj-process - the reason
>> the "deny" above isn't working is simply that MIME headers in the email
>> body are not being tested :-)
>>
>> I guess our many 'deny' rules (to refuse various attachments) quite
>> simply _never_ worked.
>
> Is that really the case?
As far as I can tell from the source code and my debugging, yes - headers are
only collected until the empty line between header and body.
I don't know if there is any other way.
--
Per Jessen, Zürich (19.2°C)
Member, openSUSE Heroes
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [mlmmj] access::Deny seems to have stopped working ?
2020-06-14 14:18 [mlmmj] access::Deny seems to have stopped working ? Per Jessen
` (4 preceding siblings ...)
2020-06-16 9:19 ` Per Jessen
@ 2020-06-16 9:27 ` Mads Martin Jørgensen
2020-06-16 9:41 ` Roderick
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Mads Martin Jørgensen @ 2020-06-16 9:27 UTC (permalink / raw)
To: mlmmj
That's because it's kind of headers, in the body. IIRC you're right Per. Only headers are checked.
> On 16 Jun 2020, at 11.19, Per Jessen <per@opensuse.org> wrote:
>
> As far as I can tell from the source code and my debugging, yes - headers are only collected until the empty line between header and body.
--
Mads Martin Jørgensen
“Why make things difficult, when it is possible to make them cryptic and totally illogical, with just a little bit more effort?” - A. P. J
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [mlmmj] access::Deny seems to have stopped working ?
2020-06-14 14:18 [mlmmj] access::Deny seems to have stopped working ? Per Jessen
` (5 preceding siblings ...)
2020-06-16 9:27 ` Mads Martin Jørgensen
@ 2020-06-16 9:41 ` Roderick
2020-06-16 9:46 ` Per Jessen
2020-06-16 9:49 ` Per Jessen
8 siblings, 0 replies; 10+ messages in thread
From: Roderick @ 2020-06-16 9:41 UTC (permalink / raw)
To: mlmmj
On Tue, 16 Jun 2020, Per Jessen wrote:
> As far as I can tell from the source code and my debugging, yes - headers are
> only collected until the empty line between header and body.
And that corresponds to what I read in README.access. That is what I
wanted to say: no bug. The OP expects a feature neither implemented
nor documented: to filter according to contents in the body. For
trateing headers in attachments with RE one needs perhaps something
like a variable in it with the boundary.
Rodrigo
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [mlmmj] access::Deny seems to have stopped working ?
2020-06-14 14:18 [mlmmj] access::Deny seems to have stopped working ? Per Jessen
` (6 preceding siblings ...)
2020-06-16 9:41 ` Roderick
@ 2020-06-16 9:46 ` Per Jessen
2020-06-16 9:49 ` Per Jessen
8 siblings, 0 replies; 10+ messages in thread
From: Per Jessen @ 2020-06-16 9:46 UTC (permalink / raw)
To: mlmmj
Mads Martin Jørgensen wrote:
> That's because it's kind of headers, in the body. IIRC you're right
> Per. Only headers are checked.
>
Thanks for confirming it, Mads.
--
Per Jessen, Zürich (19.2°C)
Member, openSUSE Heroes
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [mlmmj] access::Deny seems to have stopped working ?
2020-06-14 14:18 [mlmmj] access::Deny seems to have stopped working ? Per Jessen
` (7 preceding siblings ...)
2020-06-16 9:46 ` Per Jessen
@ 2020-06-16 9:49 ` Per Jessen
8 siblings, 0 replies; 10+ messages in thread
From: Per Jessen @ 2020-06-16 9:49 UTC (permalink / raw)
To: mlmmj
Roderick wrote:
> On Tue, 16 Jun 2020, Per Jessen wrote:
>
>> As far as I can tell from the source code and my debugging, yes -
>> headers are only collected until the empty line between header and
>> body.
>
> And that corresponds to what I read in README.access. That is what I
> wanted to say: no bug.
Oh yes, I agree. If anything, the bug is on our side, that we have
expected it to work for more than 13 years :-)
--
Per Jessen, Zürich (19.1°C)
Member, openSUSE Heroes
^ permalink raw reply [flat|nested] 10+ messages in thread