[rt-devel] Attachments

Jonas Liljegren jonas at rit.se
Thu Jun 7 03:45:17 EDT 2001


Alex Krohn <alex at gossamer-threads.com> writes:

> > > What would such a piece of code look like :D
> > 
> > Unfortunately, I really don't have the time to write this code just now.
> > I'm just a little overly hosed.  You wanna look at iterating over
> > the Attachments in Transaction->Message.
> 
> This will do the trick:
> 
> { 
>   $Transaction->Attachments('text/plain')->First->Content ||
>   $Transaction->Attachments('text/html')->First->Content  ||
>   "No Viewable Message."
> }

No. It doesn not for me.  For HTML messages, I allways get "No
Viewable Message."

-- 
/ Jonas Liljegren

The Wraf project http://www.uxn.nu/wraf/
Sponsored by http://www.rit.se/




More information about the Rt-devel mailing list