smfi_replacebody(3N)smfi_replacebody(3N)NAME
smfi_replacebody() - replaces the data in the sendmail message body
SYNOPSIS PARAMETERS
ctx Specifies the opaque context structure.
bodyp Specifies a pointer to the start of the new body data, which does not have to be null-terminated. If bodyp is set to NULL, the
length of the body is considered to be 0 (zero). The body data must be in CR or LF form.
bodylen Specifies the number of data bytes pointed by bodyp.
DESCRIPTION
replaces the body of the current message. can be called only from the routine and can be called more than once. When is called more than
once, the subsequent calls append data to the new body of the message.
Notes
o As the message body may be very large, setting may significantly affect filter performance.
o If a filter sets but does not call the original body remains unchanged.
o The filter order is important for the routine. Filters placed later in the sequence will observe the changes
RETURN VALUE
fails and returns due to the following reasons:
o The value of bodyp is equal to NULL and the value of bodylen is greater than 0.
o Changing the body in the current connection state is invalid.
o Network error occurs.
o The is not set when the function is called.
AUTHOR
was developed by the Sendmail Inc.
SEE ALSO smfi_chgheader(3N), smfi_insheader(3N), smfi_addrcpt(3N), smfi_addheader(3N), smfi_delrcpt(3N).
on
smfi_replacebody(3N)
Check Out this Related Man Page
smfi_chgheader()(3N) smfi_chgheader()(3N)
NAME
smfi_chgheader() - changes or deletes a sendmail message header
SYNOPSIS PARAMETERS
ctx Specifies the opaque context structure.
headerf Specifies the header name, which is a non-NULL, null-terminated string.
hdridx Specifies the header index value (1-based). A hdridx value of 1 modifies the first occurrence of a header named If hdridx is
greater than the number of times appears, a new copy of is added.
DESCRIPTION
changes the value of a header for the current message. can be called only from the routine.
Notes
o While can be used to add new headers, it is more efficient to use
o A filter that calls must set the flag in the structure passed to
o The filter order is important for Filter placed later in the sequence will observer the changes already done by earlier filters.
o The name and the value of the header are not checked for standards compliance. However, each line of the header must be under 2048
characters. If longer headers are needed, multi-line header must be used. To make a multi-line header, insert a linefeed (ASCII 0x0a,
or
in C) followed by at least one whitespace character, such as, a space (ASCII 0x20) or tab (ASCII 0x09, or in C). The linefeed
must not be preceded by a carriage return (ASCII 0x0d); the MTA adds this automatically. It is the responsibility of the filter writer
to ensure that standards are not violated.
RETURN VALUE
returns due to the following reasons:
o headerf contains a NULL value.
o Modifying headers in the current connection state is invalid.
o Memory allocation fails.
o Network error occurs.
o is not set when is called.
returns on success.
EXAMPLES AUTHOR
was developed by the Sendmail Inc.
SEE ALSO smfi_addheader(3N), smfi_insheader(3N), smfi_addrcpt(3N), smfi_delrcpt(3N), smfi_replacebody(3N).
on
smfi_chgheader()(3N)
when sending the contents of a ascii file to the body of an email then sending it off. it seems sendmail is breaking up the lines with a "!" thus ruining the data. Has this ever happened to anyone?
i am guessing there is a line buffer limit in either the mail command or in sendmail itself.
... (3 Replies)
Find the messages with BLUE header, collect the telno, and dump to a file.
file below:
header 1 BLUE 11/20/01
body telno 555
body room1
trailer 1 xxx
header 2 BLUE 11/20/01
body telno 444
body room2
trailer 2 xxx
header 3 RED 11/20/01
body telno 666
body room3
trailer 3 xxx
... (2 Replies)
This is a follow-up re: this thread
As I mentioned, this script works very nicely, thanks again.
However, the ASCII data of the 'attached file' also shows below the body of the email message. Do you know of a way to 'disable' the attached text from showing? Although the file is attached,... (3 Replies)
Hello,
I`m new with the Unix and Linux stuff. But I want to learn something about it.
Now`s my question what does:
everthing is a file
means??
Could some body explane this to me?
thx (2 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 class name 1.c in tht i am using function n wich has his body in 2.c and declaration in 2.h
now how can i compile 1.c.
ex;
1.c
int main()
{
//some data
n(10);
//somedata
}
*****
2.c
int n(int k)
{
//some data
}
int main()
{
some data (2 Replies)
Hello every body, I have one tape library 3583 but I can't install this some body have ben installed??
when I tray to install it, the output is the next:
Method error (/etc/methods/cfgAtape):
0514-022 The specified connection is not valid.
some Idea??
thanks
greetings (5 Replies)
Hi,
Is there a way to suppress this message?
Null message body; hope that's ok
My email string is:
mailx -s "This is my subject" myemail@domain.com < /dev/null
It's just an annoyance to me that I would like see go away. (3 Replies)
Hi
I want to able to attach a file to a email and send it with a body
the body of the email is within the "body" file, and the attachment in "atch"
if i send like below it will send the email correctly
/usr/sbin/sendmail me@you.com< body
And when i send the attachment alone... (3 Replies)
I have an HTML file I am currently sending in the body of an email. I now have a need to send a csv attachment along with it. I can ONLY use sendmail as mutt and xmail etc are not on the server.
Here is what I am currently using: It is possible to add code to add an attachment ??!?
{
... (8 Replies)
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?
here body file contains message, it should display in email, please help
i am using HP-UX
(cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com"
... (4 Replies)
Hello All,
I know we can put body inside a mail using -i option for specifying the file which contains body message, is there an option for me to specify body content instead of a file specification only using mutt?
Below is not working and i don't see any options in manual page!
... (4 Replies)
Hi,
I'm using procmail to ingest incoming messages. The goal is to split the message body into chunks and forward those to a different adddress. Here's a sample of the message body:
Group: testgroup
---------------------------------------
Host: test1.local:30200
Type: conf
Alert:... (9 Replies)
Hi,
I was working on getting an HTML file in the mail body along with attaching a "csv" file to the mail.
Below are the 2 parts of the code.
I need help with the second part where I'm sending the mail. The HTML file as an attachment is perfect without any issues and with proper formatting.... (6 Replies)