[rt-users] Help with scrip for Custom Field

Kevin Falcone falcone at bestpractical.com
Mon Aug 8 12:38:45 EDT 2011

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110808/2122aea5/attachment.sig>

More information about the rt-users mailing list