It would help to know what the command syntax that you are running to determine whether or not the file is spam, and more importantly if it indicates that it is spam via exit code, or message or some other mechanism.
Modulo some real information like that, guessing that the command reads the file and exits bad (non-zero) if the message is considered spam, then this might do what you want:
It creates a temporary file that is one line less than the time before and invokes some magic spam command on the file. Assuming that if the command fails it means the file is spam, it will exit leaving the last tested email in foo.1.
If this isn't quite the situation, then post how you are testing for spam and someone will probably offer up a suggestion based on that.
Hi,
I need some help in removing the header (first line) and the trailer (last line) in a give file...
The data file actually comes in EBCDIC format and I converted it into ASCII..
Now I need to strip off the first line and the last line..
I think we can use sed to do something like this:... (2 Replies)
Aloha! I have just over 1k of users that have permissions that they shouldn't under our system. I need to parse a provided list of usernames, check their permissions file, and strip the permissions that they are not allowed to have. If upon the permissions strip they are left with no permissions,... (6 Replies)
Hi Folks,
I am new to ksh, i have informatica parameter file that i need to update everyday with shell script. i need your help updating this file with new parameters.
sample data
$$TABLE1_DATE=04-27-2011
$$TABLE2_DATE=04-23-2011
$$TABLE3_DATE=03-19-2011
.......Highligned... (4 Replies)
Hello everyone,
This is my first posting. I have read the rules of this forum. I have searched many various threads and haven't found one that applies to my situation or suggestions to fix the issue. I do appreciate the help.
I am trying to execute a basic UNIX script in a Solaris... (4 Replies)
Hi! I have been struggling with a large file that has stray end of line characters.
I am working on a Mac (Lion). I mention this only because I have been mucking around with fixing my problem using sed, and I have learned far more than I wanted to know about Unix and Mac eol characters.
I... (1 Reply)
I have a test file with the following format, It contains the username_date when the user was locked from the database.
$ cat lockedusers.txt
TEST1_21062016
TEST2_02122015
TEST3_01032016
TEST4_01042016
I'm writing a ksh script and faced with this difficult scenario for my... (11 Replies)
Hi,
i have a file with multiple entries. After some tests with sed i managed to get the file output as follows:
lsn=X-LINK-IN0,apc=661:0,state=avail,avail/links=1/1,
00,2110597,2094790,0,81,529,75649011,56435363,
lsn=TM1ITP1-AM1ITP1-LS,apc=500:0,state=avail,avail/links=1/1,... (5 Replies)
Discussion started by: nms
5 Replies
LEARN ABOUT CENTOS
mail::spamassassin::plugin::spamcop
Mail::SpamAssassin::Plugin::SpamCop(3) User Contributed Perl Documentation Mail::SpamAssassin::Plugin::SpamCop(3)NAME
Mail::SpamAssassin::Plugin::SpamCop - perform SpamCop reporting of messages
SYNOPSIS
loadplugin Mail::SpamAssassin::Plugin::SpamCop
DESCRIPTION
SpamCop is a service for reporting spam. SpamCop determines the origin of unwanted email and reports it to the relevant Internet service
providers. By reporting spam, you have a positive impact on the problem. Reporting unsolicited email also helps feed spam filtering
systems, including, but not limited to, the SpamCop blacklist used in SpamAssassin as a DNSBL.
Note that spam reports sent by this plugin to SpamCop each include the entire spam message.
See http://www.spamcop.net/ for more information about SpamCop.
USER OPTIONS
spamcop_from_address user@example.com (default: none)
This address is used during manual reports to SpamCop as the From: address. You can use your normal email address. If this is not
set, a guess will be used as the From: address in SpamCop reports.
spamcop_to_address user@example.com (default: generic reporting address)
Your customized SpamCop report submission address. You need to obtain this address by registering at "http://www.spamcop.net/". If
this is not set, SpamCop reports will go to a generic reporting address for SpamAssassin users and your reports will probably have less
weight in the SpamCop system.
spamcop_max_report_size (default: 50)
Messages larger than this size (in kilobytes) will be truncated in report messages sent to SpamCop. The default setting is the maximum
size that SpamCop will accept at the time of release.
perl v5.16.3 2011-06-06 Mail::SpamAssassin::Plugin::SpamCop(3)