comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Howto read line from a stream
Date: Tue, 2 Jun 2009 16:15:16 -0500
Date: 2009-06-02T16:15:16-05:00	[thread overview]
Message-ID: <h044pt$h8c$1@munin.nbi.dk> (raw)
In-Reply-To: 1dlvlys7r0tyh$.zyytlf2vt5zm.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message 
news:1dlvlys7r0tyh$.zyytlf2vt5zm.dlg@40tude.net...
> On Mon, 1 Jun 2009 18:30:31 -0500, Randy Brukardt wrote:
...
> I don't think it is a good idea, how to handle poorly designed and badly
> implemented protocols. We are living in a real world. It is silly to imply
> that an incoherent implementation should indicate a security problem. The
> problem is elsewhere, in the protocol itself. Anyways, I doubt that
> somebody could statistically confirm that the percentage of malformed line
> terminators is higher among unwanted postings.

Maybe in general, but in the case of spam, there is a very strong 
correlation, simply because the majority of all legitimate mail is sent by 
only a few mail clients (Outlook, Thunderbird, GMail, etc.) and these do in 
fact follow the protocol standards. So anything that doesn't follow it is 
much more likely to be junk. Indeed, spam filtering is 100% about apply 
statistical models, since there is really no way to predict what good mail 
will look like.

It's possible that there is more of this problem with other mail these days; 
I would think that spammers would be more careful these days if for no 
reason than such malformed mail never gets delivered. But there still is an 
amazing amount of malformed mail.

Note that I created and manage the spam filter (in Ada, of course) on our 
mail servers, and we average 100,000 spams per week (about 99% spam). So I 
see a lot of spam in a week, even now when 97% or so gets automatically 
blocked or deleted.

> P.P.S. There are lots of text-oriented protocols used in automotive. The
> device vendors just do not care to handle LFs and CRs as specified (if
> specified! (:-)). You buy a $10**5+ device and have to communicate with 
> it.
> Guess which side has to be fixed?

I would argue that is mainly a problem with the specifications, rather than 
the device. But I feel your pain; hardly anything in the real world quite 
follows the specifications. Generally, you have handle screwed up line 
endings, but remember that fact so that you can then quarantine the mail 
(the reason being that you still need to scan the mail to see if it would be 
automatically deleted for other reasons). So it's pretty much the worst of 
both worlds. Browsers and HTML are even worse; if they refused to display a 
lot of improper junk, filtering would not be so hard.

                                                         Randy.





  parent reply	other threads:[~2009-06-02 21:15 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-31 10:41 Howto read line from a stream Tomek Walkuski
2009-05-31 11:29 ` Tomek Wałkuski
2009-05-31 12:02   ` Dmitry A. Kazakov
2009-05-31 12:56     ` Tomek Wałkuski
2009-05-31 14:30       ` Tomek Wałkuski
2009-05-31 15:13       ` Dmitry A. Kazakov
2009-06-01 23:30         ` Randy Brukardt
2009-06-02  7:30           ` Dmitry A. Kazakov
2009-06-02  9:36             ` Georg Bauhaus
2009-06-02 10:24               ` Dmitry A. Kazakov
2009-06-02 21:15             ` Randy Brukardt [this message]
2009-06-01  6:34     ` Pascal Obry
2009-06-01  0:05   ` Jeffrey R. Carter
2009-06-03 15:49     ` Tomek Wałkuski
2009-06-03 18:04       ` Jeffrey R. Carter
2009-06-03 21:41         ` Maciej Sobczak
2009-06-04  8:56           ` Jean-Pierre Rosen
2009-06-04  9:05             ` Ludovic Brenta
2009-06-04 13:05             ` Maciej Sobczak
2009-06-04 14:16               ` Jean-Pierre Rosen
2009-06-04 19:48                 ` Ludovic Brenta
2009-06-04 14:24               ` Dmitry A. Kazakov
2009-06-03 19:07       ` sjw
2009-06-03 19:26         ` Dmitry A. Kazakov
2009-06-03 19:43           ` Georg Bauhaus
2009-06-03 20:11             ` Dmitry A. Kazakov
2009-06-03 22:09               ` Georg Bauhaus
2009-06-04  8:19                 ` Dmitry A. Kazakov
2009-06-04  9:41                   ` Georg Bauhaus
2009-06-04 10:23                     ` Dmitry A. Kazakov
2009-06-04 12:14                       ` Georg Bauhaus
2009-06-04 14:54                         ` Dmitry A. Kazakov
2009-06-04 16:33                           ` Georg Bauhaus
2009-06-05  9:57                             ` Dmitry A. Kazakov
2009-06-04 14:16         ` andrew
2009-06-01 19:12   ` björn lundin
2009-05-31 11:34 ` Dmitry A. Kazakov
2009-05-31 15:38   ` sjw
2009-05-31 16:07     ` Dmitry A. Kazakov
2009-05-31 20:39       ` Niklas Holsti
2009-05-31 22:00       ` sjw
2009-06-01  8:35         ` Dmitry A. Kazakov
2009-06-01 23:34     ` Randy Brukardt
2009-06-02  2:27 ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox