🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Trond Kandal Wed, 17 Nov 1999 00:00
Perl-script which rejects articles with VCARDS included?
#41598
Author: Trond Kandal
Date: Wed, 17 Nov 1999 00:00
13 lines
1294 bytes
Hello!

Does anyone know of perl-scripts which rejects posting of articles with
VCARDS included?


Trond.
-- 
Trond Kandal*Nettseksjonen*ITEA*NTNU*7491 Trondheim*voice:  +47 73597497
                                                   *mobile: +47 91897110
The only stable in life is change.

Re: Perl-script which rejects articles with VCARDS included?
#41615
Author: Jeremy
Date: Thu, 18 Nov 1999 00:00
21 lines
1150 bytes
Trond Kandal  <Spam.Trond.Kandal@itea.ntnu.no> wrote:

> Does anyone know of perl-scripts which rejects posting of articles with
> VCARDS included?

You mean, for INN filters?

You can do something like this:

  if ($hdr{'Content-Type'} =~ /multipart\/(?:mixed|related)/i
      and $hdr{'__BODY__'} =~ /^Content-Type:[\t ]text/x-vcard/i) {
         return "Stupid vcard";
  }

Case-insensitive pattern matches are slow, so this can be optimized,
but it's a start.

-- 
Jeremy  |  jeremy@exit109.com

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads