smfi_register(3N)smfi_register(3N)NAME
smfi_register() - registers a set of filter callbacks for sendmail
SYNOPSIS PAMAMETERS
descr Specifies a filter descriptor of type describing the filter's functions.
DESCRIPTION
The creates a filter using the information given in the smfiDesc argument. must be called before the routine. Multiple calls to the rou-
tine within a single process is not allowed.
The structure has the following members:
A NULL value for any callback function indicates that the filter does not wish to process the given type of information and the filter
returns the value.
Notes
The flags field must contain the bitwise OR of 0 (zero) or more of the following values:
This filter adds headers.
This filter changes and deletes headers.
This filter replaces the body of the message during the filtering process.
may have significant performance impact if other filters do body filtering after
This filter adds recipients to the message.
This filter removes recipients from the
message.
RETURN VALUE
The routine may return for any of the following reasons:
o Memory allocation failure
o Incompatible version or illegal flags value
AUTHOR
was developed by the Sendmail Inc.
SEE ASLO smfi_main(3N), smfi_setconn(3N), smfi_settimeout(3N), smfi_opensocket(3N), smfi_setbacklog(3N), smfi_setdbg(3N), smfi_stop(3N).
on
smfi_register(3N)
Check Out this Related Man Page
smfi_stop(3N)smfi_stop(3N)NAME
smfi_stop() - starts an orderly shutdown of the Milter for sendmail
SYNOPSIS PARAMETERS
void Specifies that the function does not accept any argument.
DESCRIPTION
The routine causes each thread to finish its current connection and then exit the connection. When all the threads have exited, the call
to the routine returns to the calling program, which may then exit or warm restart the function.
can be called from any callback routine or any error-handling routine at any time in the program. A new connection is not accepted after
calling
Notes
A Milter may also shutdown due the following reasons:
o An internal routine may ask the Milter to abort.
o Any other routine may also ask the Milter to stop.
The stop process cannot be canceled once it has begun.
RETURN VALUE
always returns
AUTHOR
The routine was developed by the Sendmail Inc.
SEE ALSO smfi_main(3N), smfi_register(3N), smfi_setconn(3N), smfi_settimeout(3N), smfi_opensocket(3N), smfi_setbacklog(3N), smfi_setdbg(3N).
on
smfi_stop(3N)
Many years ago while I was in college, there was a 'sexist' filter on our 3B2 to change words with sexual content to a more political correct form. eg: 'mailman' to 'postal carrier', 'policeman' to 'police officer' , etc. I believe it was part of the DWB, but I'm not sure. Can anyone point me to a... (5 Replies)
Hi ,
i am getting error message "illegal function call"
can any body help what are the reasons when can we get this error mesage.
Thanx in advance
Naren (6 Replies)
I have a file in which there are strings given below:
inode 1138932c(mqsiadm)
inode 1257904c(mqsiadm)
I want to get the nos. only form these.
The o/p should be
1138932
1257904
How to filter this out ?? (11 Replies)
Hi,
I am trying to filter out those paragraphs that contains 'CONNECT', 'alter system switch logfile'. That means say the input file is :
-------------------------------------------------------
Wed Jun 7 00:32:31 2006
ACTION : 'CONNECT'
CLIENT USER: prdadm
CLIENT TERMINAL:
Wed Jun 7... (7 Replies)
Hi,
I want to filter record from a file if the records in the second column matches the data in another file. I tried the below awk command but it filters the records in the filter file. I want the opposite, to include only the records in the filter file.
I tried this:
awk -F'|'... (8 Replies)
People,
Ive been trying to make a script but i just cant figure it out.
Problem/ Case:
I have a logfile.txt that contains data. The only two things i need to filter on = $1 (date), $6 (errorcode).
In the script i am trying to make, u need to fill in a date. So he searches on that date... (11 Replies)
Hi I have a file containing the below lines
1010001001639
1010001001789
1020001001927
1030001001928
1040001002033
1200001002609
1200001003481
1200001004935
I need to filter lines that starts with 101.
It would be of great help if its in awk. (6 Replies)
Hello Gurus,
I have a requirement where I have to filter a value from some field which has 99% or greater than '99%'..
For ex:
The Date (file -- sample.csv) will be like below
Field1,Field2,Field3,Field4
860440512,844284992,16155520,99%
860440512,844284992,16155520,94%... (4 Replies)
Hi...
I would like to filter out my data file....in two different way
1st way is like this, I will take one example..here...
The script should ask like this.
Enter min value in first column
Enter max value in first column
Enter min value in second column
Enter max value in... (5 Replies)
Hi,
I've no problems filtering text in awk but whenever I try to filter date format such as 03022013, I couldn't get awk to filter the item out.
Any tips? (8 Replies)
I need to filter the text in between two patterns and output that to a different file. Please help me how to do it.
Ex:
.............
<some random text>
.............
Pattern_1
<Few lines that need to be output to different file>
Pattern_2
................
...............
<more text in... (4 Replies)
I have a file from which I need to filter out certain lines when field 17 is less than sysdate. The file has date in YYYYMMDD HH:MI:SS format.
Sample file is as below:
PRUM,67016800 ,CC ,C1,67016800 ,00,Y,Y,2 ,US,BX,BOX ... (5 Replies)
Hello Group,
We want to create a script in order to filter process in the system with more than five days (STIME) and then kill them under Solaris 10.
How can we filter these kind of process ?
ps -efa
Thanks in advance for your help (4 Replies)
First, please excuse my apparent lack of attempt as this is NOT the case. I have attempted to research this for hours and realize I am way out of my league. I am not a programmer, especially in Unix.
I have an old Alpha Unix system with a program that prints to a network printer using the LPR... (4 Replies)