Hello Listers,

I am running, ARS 6.3, Oracle 9.2, Sun OS.


and I was wondering if anyone can point me in the right direction for using perl to save attachments to Remedy. I am using perl to parse incomming emails and then save the information to a Help Desk 6.3 ticket.

I am using the MIME::parser, Entity, Body and ARSPerl to do this and everything works great except for one thing, attachments. Without the attachments I am able to save and update just fine.

I have yet to figure out how to get the attachments to save to a ticket.
I can parse out everything, I can even grab the filename, filesize, file, but when I go to try to add it to the attachment field, it just fails. I have searched these archives, the web, and permonks and have found alot of great information that got me this far.

I have tried just submitting the file, or filename, tried using a simple struct to submit the file,fname, and size, and variations thereof with no luck.

Can anyone suggest something.


At this point my code is something like(changes as I test):

$hAttachStruct = {
                        name   => @attname,
                        file   => $attachment,
                        size   => length($attachment),
                };

Creating the ticket I am using at the moment:

$entry_id = ars_CreateEntry($ctl, $hdform, 0,
                    $fields{'Attachment1'}  => $hAttachStruct);


I have played with many variations of this theme, but am missing something. Any help would be greatly appreciated.

thank you,
Michael Hirst
University of Arizona
CCIT, Computing and Network Support
520-621-0867

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers 
Are"

Reply via email to