NAME
Haineko::SMTPD::Milter::Nyaa - Haineko milter for rewriting email body using Acme::Nyaa module.
DESCRIPTION
Haineko::SMTPD::Milter::Nyaa converts email body to text like which a cat talking using Acme::Nyaa module.
SYNOPSIS
use Haineko::SMTPD::Milter;
my $r = Haineko::SMTPD::Response->new;
my $e = '猫がかわいい。';
Haineko::SMTPD::Milter->import( [ 'Nyaa' ]);
Haineko::SMTPD::Milter::Nyaa->body( $r, \$e );
print $e; # 猫がかわいいニャー
body( Haineko::SMTPD::Response, \EMAIL_BODY )
body()
method is for writing email body using Acme::Nyaa.
Arguments
Haineko::SMTPD::Response
object
If your milter program rejects a message, set 1 by ->error(1), set error message by ->message( [ 'Error message' ]), and override SMTP status code by ->code(), override D.S.N value by ->dsn(). Default SMTP status codes is 554, dsn is 5.6.0 in this method.
EMAIL_BODY
Value defined in "body" field in HTTP POST JSON data.
SEE ALSO
https://www.milter.org/developers/api/
REPOSITORY
https://github.com/azumakuniyuki/Haineko
AUTHOR
azumakuniyuki <perl.org [at] azumakuniyuki.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.