<br><br><div class="gmail_quote"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>> In order to create a custom scrip, I need to access to Attachment structure<br>
> because I would know the value of a header of the original request message.<br>
><br>
> So I try to do in custom cleanup code block:<br>
> my $headers = $self->TransactionObj->Attachments->Headers;<br>
><br>
<br>
</div>$self->TransactionObj->Attachments links to multiple attachements, you<br>
have to walk them with:<br>
<br>
while ( my $Attachment = $self->TransactionObj->Attachments->Next ) {<br>
my $headers = $Attachment->Headers;<br>
}<br>
<br>
Or use only the first one:<br>
<br>
my $headers = $self->TransactionObj->Attachments->First->Headers;<br>
<div><div><br>
</div></div></blockquote></div><div class="h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br></div>Thank you very much for the fast response!<br>
<br>I tryed both solution, the first one works, the second one doesn't work, the error is:<br>Can't call method "Headers" on an undefined value at (eval 962) line 3.<br clear="all">
<br>For me is sufficent the first one solution.<br>Still thank you<br>-- <br><font color="#888888">Alessandra Serrau<br><br>
</font></blockquote></div><br></div></div>Sorry, the last email is not the correct answer... <br>The first solution doesn't work like the second one.<div class="im"><br>If I exclude the while loop and write:<br><br>my $Attachment = $self->TransactionObj->Attachments->Next;<br>
my $headers = $Attachment->Headers;<br><br></div>the error is teìhe same:<br><br>Can't call method "Headers" on an undefined value at (eval 837) line 4.<br clear="all"><br>Infact, in Attachment.pm it is not present neither "First" nor "Next" methods.<br>
<br>How can I resolve my issue?<br>-- <br><font color="#888888">Alessandra Serrau<br></font></div><br>