[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] How to block cancel messages ?



christophe Raverdy <craverdy@xxxxxxxxx> writes:

> Hello.
>
> I'm a leafnode 1.9.19 happy user.

Update to 1.9.30... 1.9.19 can corrupt your data.

> I would like to accept *my* cancel but I would like
> to set my own rules for the cmsg I receive
>
> My main purpose is I want to reject rogue-cancels
>
> I have setted my /etc/leafnode/filters with
>
> -------------------------------------------
> ^Control: Cancel *
> --------------------------------------------
>
> is it enough ? is there a misunderstanding ?

leafnode-1 treats cancels as regular messages, so no-one can cancel
articles from your leafnode-1 spool. leafnode-1 also ignores the
Supersedes: header. (leafnode-2 handles either, but with a similar
filter in place, it would not accept your own cancel either. I'll need
to fix that one, because this scenario was not taken into account when I
wrote the new store() function for leafnode-2).

If you want to hide these cancels, then unsubscribe from
control.cancel: rm /var/spool/news/interesting.groups/control.cancel :-)

Or, if your upstream sorts them into the groups (some do), use:

^Control:\s+cancel\s+

The expressions are regular expressions (similar to those in Perl, see
man pcre for an explanation), and the \s+ means "1 or more whitespace
characters".

-- 
Matthias Andree
leafnode-1 download: http://sourceforge.net/projects/leafnode/
leafnode-1 docs/new: http://mandree.home.pages.de/leafnode/
leafnode-2 homepage: http://mandree.home.pages.de/leafnode/beta/

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list