[rt-devel] Attachments

Jesse jesse at fsck.com
Wed Jun 6 17:36:20 EDT 2001


On Wed, Jun 06, 2001 at 04:54:33PM -0400, Jason Slagle wrote:
> So the templates just take perl?

Yes. They're Text::Template templates.

> 
> 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.

        -j
> 
> Jason
> 
> -- 
> Jason Slagle - CCNP - CCDP
> Network Administrator - Toledo Internet Access - Toledo Ohio
> - raistlin at tacorp.net - jslagle at toledolink.com - WHOIS JS10172
> /"\ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> \ /   ASCII Ribbon Campaign  . If dreams are like movies then memories
>  X  - NO HTML/RTF in e-mail  .   are films about ghosts..
> / \ - NO Word docs in e-mail .     - Adam Duritz - Counting Crows
> 
> 
> On Wed, 6 Jun 2001, Jesse wrote:
> 
> > You can definitely put a bit of code into a template
> > to itterate through all Attachments to the Transaction
> > and include them if they're of type text. 
> > 
> > The fact that Message->First->Content doesn't do the right thing here
> > is a bug that will get fixed for ~2.2
> > 
> >         -j
> > 
> > 
> > On Wed, Jun 06, 2001 at 09:31:53AM -0400, Jason Slagle wrote:
> > > 
> > > If the user sends their email as a text+html (2 attachments) you don't get
> > > any content from the "Correspodence" template.
> > > 
> > > Is it possible to include the first (Or any) text/plain attachments in the
> > > content?
> > > 
> > > Of is there something I can shove in a template to do that?
> > > 
> > > Jason
> > > 
> > > -- 
> > > Jason Slagle - CCNP - CCDP
> > > Network Administrator - Toledo Internet Access - Toledo Ohio
> > > - raistlin at tacorp.net - jslagle at toledolink.com - WHOIS JS10172
> > > /"\ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> > > \ /   ASCII Ribbon Campaign  . If dreams are like movies then memories
> > >  X  - NO HTML/RTF in e-mail  .   are films about ghosts..
> > > / \ - NO Word docs in e-mail .     - Adam Duritz - Counting Crows
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Rt-devel mailing list
> > > Rt-devel at lists.fsck.com
> > > http://lists.fsck.com/mailman/listinfo/rt-devel
> > > 
> > 
> > 
> 
> 

-- 
jesse reed vincent -- root at eruditorum.org -- jesse at fsck.com 
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

"That package looks like what I wanted, but the site was down today, 
   so I decided to reimplement it in Perl."
							-me




More information about the Rt-devel mailing list