Haineko::SMTPD::Milter::Nyaa - Haineko milter for rewriting email body using Acme::Nyaa module.
Haineko::SMTPD::Milter::Nyaa converts email body to text like which a cat talking using Acme::Nyaa module.
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.
body()
Haineko::SMTPD::Response
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.
https://www.milter.org/developers/api/
https://github.com/azumakuniyuki/Haineko
azumakuniyuki <perl.org [at] azumakuniyuki.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Haineko, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haineko
CPAN shell
perl -MCPAN -e shell install Haineko
For more information on module installation, please visit the detailed CPAN module installation guide.