#9 Built-in "head"

open
nobody
None
5
2002-11-27
2002-11-08
Anthony Lalande
No

I work for a site where incoming mail is a big part of our daily
operations. I have installed spamprobe on all of our user
accounts, and find that it generally works very well.

We accept a lot of attachments, however, from a lot of different
people. Spamprobe is great because it does not scan
attachments. The people who send us attachments are not always
very computer literate, however, and some of them send us
attachments within the message body. That means message
bodies of 1 Meg and up.

I would like to see a built-in "head" feature with spamprobe, so
that one could specify the maximum number of lines to scan. The
problem with simply piping the input through "head", is that it is
possible for an attachment to be included near the top, and so the
first lines of the encoded attachment are piped through to
spamprobe, which disregards these.

Thanks!
- Anthony

Discussion

  • Jem Berkes
    Jem Berkes
    2002-11-27

    Logged In: YES
    user_id=126262

    How on earth do they put binary encoded data in the message
    body? I'm pretty sure that any binary data will be within a
    MIME section that has Content-transfer-encoding: BASE64 and
    a filename parameter in another field, which indicates it's
    an attachment.

     
    • summary: Built-in "head" --> Built-in "head"
     
  • Logged In: YES
    user_id=617489

    I never said it was binary-encoded data. We receive, for example, large
    tab-delimited databases that are copied-and-pasted into the message
    body.

    My feature request simply asks for a way to only scan the first x lines of
    scannable message body, instead of the entire scannable message
    body.