[rt-users] RT-Attach-Message

Jesse Vincent jesse at bestpractical.com
Mon Mar 15 11:50:26 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Mar 15, 2004, at 8:16 AM, Ruslan U. Zakirov wrote:

> Chris Ridd wrote:
>> On 15/3/04 11:05 am, Ruslan U. Zakirov <cubic at acronis.ru> wrote:
>>> Chris Ridd wrote:
>>>
>>>> The April 13 2003 draft of the manual notes that the "latest" 
>>>> version of RT
>>>> supports the inclusion of original messages as attachments instead 
>>>> of
>>>> inline.
>>>>
>>>> I tried changing the autoreply template so that the heading was 
>>>> just:
>>>>
>>>> RT-Attach-Message: yes
>>>
>>> This adds not all parts of mail as attachments.
>> What does it add?
> From code I see next:
> 1) It skips empty parts.
> 2) It skips Transaction->Content part. So you shouldn't remove it and 
> also can't attach this part not in inline style. "Feature/bug"
> 3) It skips all 'text/plain' parts. For me it's a bug, 'report.txt' 
> has type 'text/plain' but have to be attached. :(

             next
               if (    $transaction_content_obj
                    && $transaction_content_obj->Id == $attach->Id
                    && $transaction_content_obj->ContentType =~ 
qr{text/plain}i
                 );

Ah. It only skips text plain parts that are $transaction->Content.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAVd7SQaM/s3DrrJARAjJtAJ9KpWoUY/zOO8GxyfJ7dq/ZdqD1XQCdHX9n
+XS250l26EFjFYuOcxe7EcA=
=AiW9
-----END PGP SIGNATURE-----




More information about the rt-users mailing list