[rt-users] Help with scrip for Custom Field

Kenneth Crocker kfcrocker at lbl.gov
Mon Aug 8 12:57:55 EDT 2011


Kevin,

Thanks. Sorry for the ignorant questions. I'm not a perl programmer. I just
try to cobble examples together and test them out.

I'll look thru that. Hopefully there's an example of "limit" code for
images.

Thanks again.

Kenn
LBNL

On Mon, Aug 8, 2011 at 9:38 AM, Kevin Falcone <falcone at bestpractical.com>wrote:

> On Mon, Aug 08, 2011 at 09:23:03AM -0700, Kenneth Crocker wrote:
> >
> >    I don't understand the term "limitdown", but I'll try to create a
> loop. Am I correct with the
> >    code
> >    "Attachments->First->ContentType(Value => 'image/gif')" and should
> that be the main condition
> >    in the loop (got an example)?
>
> Limit meaning add Limits to only get images back first
>
> That code is not correct, see my description of what it is doing in my
> original mail (quoted below).
>
> >      Your code gets the first attachment and then calls the ContentType
> >      method on it (which takes no arguments) and that returns the
> >      Content-Type of multipart/mixed, which is expected.
>
> There should be examples in the wiki and the list archive of looping
> through attachments.
>
> -kevin
>
>
> --------
> 2011 Training: http://bestpractical.com/services/training.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110808/be1ffb78/attachment.htm>


More information about the rt-users mailing list