Please help with MIME::Parser and MIME::Entity 
Author Message
 Please help with MIME::Parser and MIME::Entity

Ok i have a loop that reads multiple email messages
inside the loop it does a
new MIME::Parser each tim in the loop

The output directory for each time through the loop is different
f.e. /mime/out-1 first time through
and /mime/out-2 for second time through etc....

heres the problem, say out-1 has 3 attachments
so its like ....bla-1.txt blah-2.html blah-3.html
then, the next time trhough the loop in out-2 directory they will start at
blah-4.html blah-5.html etc..
i need it to start at 1 in each time through the loop! this is driving me
nuts please help!

Ryan



Thu, 05 Aug 2004 23:56:59 GMT  
 Please help with MIME::Parser and MIME::Entity

Quote:

> Ok i have a loop that reads multiple email messages
> inside the loop it does a
> new MIME::Parser each tim in the loop

[...]

Please reveal a little bit of the code you are using (cut-and-paste).

Tassilo
--
$_=q!subJust{another()};subanother{Perl()};subPerl{hacker()};subhacker{map

b/(reverse"bus").chr(32)/xge;tr~\n~~d;eval;



Fri, 06 Aug 2004 00:02:40 GMT  
 Please help with MIME::Parser and MIME::Entity
             $parse{$count} = new MIME::Parser;

$parse{$count}->output_dir("/home/hotrod/email/mail/$Userid/mime/mime-$fname
");
                $entity{$count} =
$parse{$count}->parse_open("/home/hotrod/email/mail/$Userid/$mbox/$fname");

this is inside a loop  it parses the messages okay, but it numbers the
attachments continuisly instead of starting at 1 each time around.

Ryan


Quote:

> > Ok i have a loop that reads multiple email messages
> > inside the loop it does a
> > new MIME::Parser each tim in the loop

> [...]

> Please reveal a little bit of the code you are using (cut-and-paste).

> Tassilo
> --
> $_=q!subJust{another()};subanother{Perl()};subPerl{hacker()};subhacker{map

> b/(reverse"bus").chr(32)/xge;tr~\n~~d;eval;



Fri, 06 Aug 2004 00:09:37 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. MIME::Parse and MIME::Entity

2. MIME-Tools - MIME::Entity - extra newline problem

3. MIME::Tools decoding of a MIME::Entity

4. Prob w/ MIME::Body, MIME::Parser

5. I need help with MIME::Entity

6. I need help with MIME::Entity

7. HELP, saving attachments MIME::Parser and MAIL::POP3Client

8. HELP Can't save attachments with MIME::Parser and MAIL::POP3Client

9. Newbie:HELP with MIME::Parser

10. MIME::Parser - Help?!?

11. MIME::Parser - Help?

12. MIME:Entity - why so many modules wanted?

 

 
Powered by phpBB® Forum Software