|
Manuel Lemos - 2024-11-06 13:57:07 - In reply to message 10 from stefano
Hello Stefano,
Can you save a message pulled from the POP3 server, save it to a file, replace the $message_file variable value by the saved message file name, and then tell me if the result is the same?
stefano - 2024-11-07 12:40:34 - In reply to message 11 from Manuel Lemos
Hi Manuel,
according to my tests the behavior is the same;
I created a folder ./tmp and saved a file fail.eml (with the error message 550 of the pop3 server) ..
I used:
$message_file = file_get_contents("./tmp/fail.eml");
........
'Data'=> $message_file,
result: array $results["Data"] is not set, array $results["Response"] is set
then I did the same thing with a file called normal.eml (containing a normal email message) and the result is the opposite of before:
array $results["Data"] is set, array $results["Response"] is not set ...
all this if I understood your request correctly in the sense that I have some doubts about saving the email message ...
Regards
Manuel Lemos - 2024-11-07 20:00:22 - In reply to message 12 from stefano
Hello Stefano,
Can you share the file with the email message you saved so I can reproduce the issue without accessing your POP3 mailbox?
stefano - 2024-11-08 16:12:02 - In reply to message 13 from Manuel Lemos
Manuel Lemos - 2024-11-08 21:18:22 - In reply to message 14 from stefano
Hello Stefano,
Great. Let me check if I can reproduce this over the weekend.
Manuel Lemos - 2024-12-16 06:35:41 - In reply to message 8 from stefano
Hello Stefano,
I looked into this. I can confirm that the Data is not set intentionally in the current version, as the Response field is more useful for providing human-readable responses.
Is there a case that it would also be useful for you to have the Data field set?
As for the trim function, can you pass an example string that I can add to the test_parse_addresses.php script to reproduce that problem?
|