Link to home
Create AccountLog in
Avatar of voyager431966
voyager431966Flag for Canada

asked on

I need a Linux script to read multiple emails and down load attachment automatically

I need a Linux script to read multiple emails and down load attachment automatically
ASKER CERTIFIED SOLUTION
Avatar of David Beveridge
David Beveridge
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of voyager431966

ASKER


Hi Bevhost,

Thank you for your swift answer. We will work on it and get back to you with the result.

Regards,

Voyager431966
Have recently added to this code (in the text section)

 
//find character set encoding
                if (count($p->dparameters)>0){
                        foreach ($p->dparameters as $dparam){
                                if (strtoupper($dparam->attribute)=='CHARSET')) $charset=$dparam->value;
                        }
                }
                if ($charset) {
                        if ($charset<>"UTF-8") $part = iconv($charset,"UTF-8",$part);
                }

Open in new window