[Rt-devel] No MessageId set for Attachments?

Ruslan U. Zakirov cubic at acronis.ru
Fri Sep 3 07:22:03 EDT 2004


There is two cases message is multipart and not in 
Attachments_Overlay::Create(), you've added argument only in one place.

Petter Reinholdtsen wrote:
> [Petter Reinholdtsen]
> 
>>+    #Get the MessageID, or undef if not available
>>+    my $MessageId = $Attachment->head->get( 'messageid', 0 );
> 
> 
> Small typo here.  'messageid' should be 'message-id' to match the RFC
> 822 header name.
> 
> 
>>@@ -167,6 +170,7 @@
>>             Parent        => 0,
>>             ContentType   => $Attachment->mime_type,
>>             Headers => $Attachment->head->as_string,
>>+            MessageId => $MessageId,
>>             Subject => $Subject);
>>
>>         foreach my $part ( $Attachment->parts ) {
> 
> 
> This did not work.  Adding the value as an argument to Create() did
> not make it appear in the database.  Any idea what is wrong?



More information about the Rt-devel mailing list