Hi there
(i'll probably solve this in a few hours (im VERY NEW to MIME ) - but i'll ask this anyway..)
ok - in my script, I have :-
if ($to =~ m/test/i){
use MIME::Parser;
my $parser = new MIME::Parser;
$fle = "/www/g/gorstew/cgi-bin/groups/$line";
print "FROM - $from\n";
print "LINE - $line\n";
print "TO - $to\n";
print "SUBJECT - $subject\n";
print "FILE - $fle\n";
$parser->output_under("$fle");
$entity = $parser->parse_data($content);
print "CONTENT - \n$parser\n$entity\n";
print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
}the value of $line) is the 'group' name - Each group has its own subdirectory...
basically ive got a 'groups' system, & i'm only 'activating' the MIME tester if the email is directed to the 'test' group..
Ok
WHAT I HAVE DONE / CAN DO :-
with the above code - I send an attachment email to my test group & I wait...
The email comes back to me (as im subscribed to the group) - with the attachment all encoded etc (same as always..)
HOWEVER - in my FTP / Server - I have a directory created (example) :-
/cgi-bin/groups/test/msg-1060859941-7670-0
& in the directory - Is the attachment (zip file or whatever Ive sent) - as well as a TXT file - of my message (without any encoding etc..)
that is GOOD :-)
Question :-
How can my original file (script)
:- Determine what the random directory-name is called ? & the random name of the TXT file ?
PS - Ive tested it with or without the attachments & the random file-name (text file / directory) is still created - so that is standard...
1) Is there a way to determine the random name ?
I notice that the TXT file created - is the text / words of the message & not the headers...
Is there a way to also create a 'headers' file ?
If the directory / file name (& attachment names) cant be extracted - I CAN alter the script a bit to cope. (however header info will need to be also saved...)
Does that make sense ?
Thankyou
G
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
