On 05/20/2011 02:56 PM, Jared Johnson wrote:
> We do the sort of signing that is a huge doozy, and Matt is right, it's a
> doozy :)  There are a couple of ways we've accomplished re-writing the
> body from a MIME::Entity.  Honestly it seems a bit non-standard to me
Why do you think this is non-standard? From a conceptual perspective or
just from a tooling view?
If conceptually, which other approach would you recommend?

> use File::Temp qw(tempfile);
> ( $txn->{_body_file}, my $filename ) = tempfile( DIR => $self->temp_dir() );
> $txn->body_fh->print("\n");
> $mime_entity->print_body( $txn->body_fh );
> $txn->{_body_size} = (stat($txn->{_body_file}))[7];
> $txn->{_body_start} = 0;
I did some preliminary tests and it works.
That also means there is no API or any other way to put an email into
the queue, isn't it?
Well, can I use this approach in a productive environment or could there
be any side effects?

Thanks for your support on this.
Mike

Reply via email to