On 10/10/10 3:50 AM, Shlomi Fish wrote:
Looking at your code, I see that you process the E-mail message using regular
expressions. Please don't do that and use a CPAN module.
I'm not sure I understand the admonishment. Is it that, if I use regex to process the e-mail, then I don't *need* a CPAN module? Is it that CPAN modules and regex don't like each other?...

Some options to
investigate are:

*http://search.cpan.org/dist/MIME-Lite/

*http://search.cpan.org/dist/Email-Sender/

*http://search.cpan.org/dist/Mail-Box/

I've been trying to use the second one: Email-Sender. But I can't install it on my Macbook Pro in order to test it locally. I've tried to install several different ways, the latest being a manual compile & install of 'Bundle-Email'. When I tried 'make test', I got the output below. What am I doing wrong?

- Mark

$ make test
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Email::Address,0,Email::MIME::Encodings,0,Email::MIME::ContentType,0,Email::MessageID,0,Email::Simple,0,Email::Date,0,Email::Abstract,0,Email::MIME,0,Email::Simple::Creator,0,Email::MIME::Modifier,0,Email::MIME::Creator,0,Email::Send,0,Email::Send::Test,0,Email::FolderType,0,Email::FolderType::Net,0,Email::LocalDelivery,0,Email::Folder,0,File::Type,0,Email::Stuff,0
CPAN: File::HomeDir loaded ok (v0.93)
*** Installing dependencies...
*** Installing Email::Send...
CPAN: Storable loaded ok (v2.15)
Going to read '/Users/My_White_Plume/Library/Application Support/.cpan/sources/authors/01mailrc.txt.gz' gzip: /Users/My_White_Plume/Library/Application.gz: No such file or directory gzip: Support/.cpan/sources/authors/01mailrc.txt.gz: No such file or directory
DONE
Going to read '/Users/My_White_Plume/Library/Application Support/.cpan/sources/modules/02packages.details.txt.gz' gzip: /Users/My_White_Plume/Library/Application.gz: No such file or directory gzip: Support/.cpan/sources/modules/02packages.details.txt.gz: No such file or directory Warning: Your /Users/My_White_Plume/Library/Application Support/.cpan/sources/modules/02packages.details.txt.gz does not contain a Line-Count header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
Warning: Your /Users/My_White_Plume/Library/Application Support/.cpan/sources/modules/02packages.details.txt.gz does not contain a Last-Updated header.
Please check the validity of the index file by comparing it to more
than one CPAN mirror. I'll continue but problems seem likely to
happen.
DONE
Going to read '/Users/My_White_Plume/Library/Application Support/.cpan/sources/modules/03modlist.data.gz' gzip: /Users/My_White_Plume/Library/Application.gz: No such file or directory gzip: Support/.cpan/sources/modules/03modlist.data.gz: No such file or directory Can't locate object method "data" via package "CPAN::Modulelist" (perhaps you forgot to load "CPAN::Modulelist"?) at (eval 69) line 1.
 at /Library/Perl/Updates/5.8.8/CPAN/Index.pm line 518
CPAN::Index::rd_modlist('CPAN::Index', '/Users/My_White_Plume/Library/Application Support/.cpan/sourc...') called at /Library/Perl/Updates/5.8.8/CPAN/Index.pm line 85 CPAN::Index::reload('CPAN::Index') called at /Library/Perl/Updates/5.8.8/CPAN.pm line 955 CPAN::exists('CPAN=HASH(0xb11638)', 'CPAN::Module', 'Email::Send') called at /Library/Perl/Updates/5.8.8/CPAN/Shell.pm line 1343 CPAN::Shell::expand_by_method('CPAN::Shell', 'CPAN::Module', 'ARRAY(0xa34cb4)', 'Email::Send') called at /Library/Perl/Updates/5.8.8/CPAN/Shell.pm line 1260 CPAN::Shell::expand('CPAN::Shell', 'Module', 'Email::Send') called at inc/Module/AutoInstall.pm line 470 Module::AutoInstall::_install_cpan('ARRAY(0x906260)', 'ARRAY(0x5e51f4)') called at inc/Module/AutoInstall.pm line 318 Module::AutoInstall::install('Module::AutoInstall', 'ARRAY(0x8ffc54)', 'undef', 'undef', 'undef', 'undef', 'undef', 'undef', 'undef', ...) called at inc/Module/AutoInstall.pm line 60 Module::AutoInstall::_init() called at inc/Module/AutoInstall.pm line 25 require Module/AutoInstall.pm called at inc/Module/Install/AutoInstall.pm line 37 Module::Install::AutoInstall::auto_install('undef') called at Makefile.PL line 37
Compilation failed in require at inc/Module/Install/AutoInstall.pm line 37.
make: *** [installdeps] Error 1

Reply via email to