On Thu, 7 Mar 2002, Bobby Rose wrote:
> Does anyone have a script to sort files based on content? 

I tend to write them on the fly.

> I've been dumping copies of the spam messages into a directory. What
> I'd like to try to do is figure out how many times a From recipient
> shows so that it can be determined if it someone that should just be
> blocked or reported as Spam source.

] find . -name '[0-9]*' | xargs \
  awk -v FS=: '/^From:/ { from[$2]++ }
  END {
    for (addr in from)
        if (from[addr] > 1)
            printf "%d\t%s\n", from[addr], addr }'

That probably does what you want. Modify the find expression to taste.

        Daniel

-- 
We close our eyes and look in opposite direction.
We ignore the threats and hope they'll go away.
We refuse to pay attention to the dangers we create
in the name of our fathers we kill our children.
        -- Covenant, _Theremin_

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to