Hi List,<div><br><div>I have the following problem on an RT 3.8.8:</div><div>There is a simple scrip that notifies the owner on comments. Sometimes this scrip sends</div><div>"This transaction appears to have no content" instead of the real textural content of the incoming e-mail.</div>


<div><div>This problem mainly present if there are file attachements of the email.</div></div><div><br></div><div>But if I run the following code from CLI the outgoing mail contains the good content not the "This trans..." warning message:</div>


<div>-------------------------------------------------------------------</div><div>my $tic = RT::Ticket->new($RT::SystemUser);</div><div>$tic->Load(<i>id_of_ticket</i>);</div><div><br></div><div>my $tr = RT::Transaction->new($RT::SystemUser);</div>


<div>$tr->Load(<i>id_of_incoming_mail_comment_transaction</i>);</div><div><br></div><div>my $scrip = RT::Scrip->new($RT::SystemUser);</div><div>$scrip->Load(<i>id_of_notify_owner_scrip</i>);</div><div><br></div>

<div>
$scrip->Prepare(TicketObj => $tic, TransactionObj => $tr);</div><div><div>$scrip->Commit(TicketObj => $tic, TransactionObj => $tr);</div></div><div>-------------------------------------------------------------------</div>


<div><br></div><div>So it seems to me that scrip runs earlier than the attachements of transaction inserted into the DB</div><div>or there is some kind of MySQL cache problem which causes dirty read</div><div>but there aren't any special MySQL settings.</div>
<div><br></div><div>What do you think?</div><div><br></div><div>Thanks,</div><div>--<br>Bekeny<br>
</div></div>