yes, it seems like just attached the file "disclaimer.txt" in e-mail.
anyone have idea so that the message in "/service/qpsmtpd/config/disclaimer" can be embedded in the mail.
some code showed in "/usr/share/qpsmtpd/plugins/disclaimer":
my $parser = new MIME::Parser;
$parser->output_under( $self->spool_dir() );
$parser->extract_uuencode(1);
my $ent = $parser->parse_open( $transaction->body_filename() );
$ent->make_multipart( 'mixed', Force => 1 ) if $ent->mime_type ne 'multipart/mixed';
$ent->attach( Data => join("\n", @lines),
Encoding => $self->{_args}->{mime_encoding} || '-SUGGEST',
Filename => $self->{_args}->{mime_filename} || 'disclaimer.txt',
Type => $self->{_args}->{mime_type} || 'text/plain');
if ($ent->parts <= 2) {
$transaction->header->empty();
$transaction->header($ent->head());
}
$transaction->header->replace( 'X-Qpsmtp-Disclaimer', $fromhost );
$self->log(LOGNOTICE, "Attached disclaimer for domain: $fromhost");
I am also a guy would like implement this email footer.
thanks.