Re: [greenstone-users] Emailplug error

From John R. McPherson
DateThu, 05 May 2005 15:43:31 +1200
Subject Re: [greenstone-users] Emailplug error
In-Reply-To (595b9ab2050504194554b14978-mail-gmail-com)
On Thu, 2005-05-05 at 12:15 +0930, Stephen DeGabrielle wrote:
> Hi,
>
> I am trying to process
> http://list.cs.brown.edu/pipermail/plt-scheme.mbox/plt-scheme.mbox
> (I download it first - it is 30mb)
>
> I am a bit stumped why this call fails
>
> 909> # convert to unicode
> 910> $self->convert2unicode($charset, $text);
>
> The only change from the default collection is to add mbox to the
> -process_exp for the EMAILPlug.pm plugin directive.
>
> I am tempted to disable that part of the plugin - but I think it is
> text to be found...so I'd rather not.
>
> --
>
> import.pl> segment 281 - EMAILPlug: processing plt-scheme.mbox
> import.pl> segment 282 - EMAILPlug: processing plt-scheme.mbox
> import.pl> segment 283 - EMAILPlug: processing plt-scheme.mbox
> import.pl> Can't call method "convert2unicode" without a package or
> object reference at C:Program
> FilesGreenstoneperllibpluginsEMAILPlug.pm line 910.
> import.pl> Command failed.

Hrm,
odd that this has never surfaced before.

On line 630 or nearby of EMAILPlug, there is a line that says
} else {$msg_text=text_from_part($text);}

Change that to say
} else {$msg_text=$self->text_from_part($text);}


John