On Wed, Jul 30, 2008 at 07:52:05AM -0400, Roy Sowa wrote:
> JS,
>    It is text/plain.
>   Your modified version of ECFV seems to handle looping through the 
> attachments, but misses the initial first attachment,
>   The original ECFV handles the first attachment but in my case is not 
> looping through any additional attachments to the transaction.
>    I will try and merge the two versions today ( they are very different ) 
>    Again thanks for your  support and interest ...

Hm. That doesn't sound right. Turn on debugging in your syslog and check
the log. For example, in /etc/syslog.conf: *.debug /var/log/debug. Don't
forget to do a touch /var/log/debug before re-starting the syslogd.

I've added quite a few RT::Logger msgs in the module, so check the
/var/log/debug file for something like:

Jul 29 16:57:32 localhost RT: considering attachment #1 of type 
multipart/alternative
Jul 29 16:57:32 localhost RT: considering attachment #2 of type text/plain
Jul 29 16:57:32 localhost RT: accepted attachment #2 for consideration
Jul 29 16:57:32 localhost RT: considering attachment #3 of type text/html

Don't forget to either disable debug info after you're finished, of
rotate that file daily -- it can grow pretty big. :-)

js.

>>>> Jean-Sebastien Morisset <[EMAIL PROTECTED]> 29/07/2008 4:09 pm >>>
> On Tue, Jul 29, 2008 at 03:22:15PM -0400, Roy Sowa wrote:
>> JS, I spoke too soon...
>>  The issue now is that I extract fine from the attachment, but now if the 
>> matchstring is in the first attachment it is not found...
> 
> What's the MIME Type of your first attachment?
> 
> Line #100 might be skipping the first attachment:
> 
>     97          while (my $Message = $Attachments->Next) {
>     98                  $AttachNumber++;
>     99                  $RT::Logger->info("considering attachment 
> #".$AttachNumber." of type ".$Message->ContentType);
>    100                  next unless $Message->ContentType =~ 
> m!^(text/plain|message|text$)!i;
>    101                  next unless $Message->Content;
> 
> js.
> -- 
> Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]>
> 

-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <[EMAIL PROTECTED]>
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to