Mejo wrote:

>After the 'pressure' from DLUG yesterday, I took sometime out and did 
>what I do the most - googling! As per the results I got, I think perl 
>will be the perfect language(for me) to get my work done. Perl can speak 
>to pop3 servers and can feed data into mysql database. I'm sure almost 
>all programming languages does that, but perl code looks easy to understand.
>
>This looks interesting:
>
>How to use POP3 in Perl scripts
>A Perl script showing how to use Net::POP3
>
>http://perl.about.com/od/emailandperlscripts/l/aa022700f.htm
>
>I was able to modify the program and do some test runs(no database 
>connectivity yet - I guess that's no big deal). But was wondering how to 
>handle mails with attachments. :(
>  
>
Database connectivity is simple, you will even find code snippets how to
do it, whether it be in C, Perl, Java, Python, CPP or anything for that
matter.

You will need to parse the mail to find the attachment info/data, If you
plan to use Perl, you could look at
Mail::Box::Parser::C  [1] or [3], perl modules, which uses C again to
parse the mail, or use the perl module [2] to straight away strip the
attachment

Well, too many options there. Choose one that fits you best.


If you need to search for more perl modules, look here ..
        http://cpan.org/modules/01modules.index.html




One of things that i came up with Perl was that, many of the tasks
require a Perl module written in C, by the time you understand what
someone's module, it would be as easy as writing the entire thing in C
itself. But in some cases, many people who are not into C will feel
comfortable using the modules too.

This was my case, others would have different opinions though.

>Seems like it's going to take a lot of time for me to get this 'simple' 
>task done.
>
>  
>
It will need some amount of testing too ..


Manu


[1]
http://cpan.org/authors/id/M/MA/MARKOV/Mail-Box-Parser-C-3.006.tar.gz
http://cpan.org/authors/id/M/MA/MARKOV/Mail-Box-2.062.tar.gz
http://cpan.org/authors/id/M/MA/MARKOV/MailTools-1.67.tar.gz

[2]
http://cpan.org/authors/id/T/TM/TMTM/Mail-Message-Attachment-Stripper-1.0.tar.gz

[3]
http://cpan.org/authors/id/V/VP/VPARSEVAL/Mail-MboxParser-0.54.tar.gz




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/0XFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/dubailug/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to