PHP Classes

Truncated Attachments

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Truncated Attachments  >  (Un) Subscribe thread alerts  
Subject:Truncated Attachments
Summary:Truncated Attachments
Messages:4
Author:zeoc
Date:2023-03-15 15:43:53
 

  1. Truncated Attachments   Reply   Report abuse  
Picture of zeoc zeoc - 2023-03-15 15:43:53
When trying to get attachment from a Pop3 mail I sometime have a error like :
feof(): pop3_stream::stream_eof is not implemented! Assuming EOF in /xxx/pop3/mime_parser.php on line 1441

then the parser stop reading the attachement giving an incomplete data...

I could not find something specific to data but seems to be related to size.

any idea ?

  2. Re: Truncated Attachments   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2023-03-16 04:29:41 - In reply to message 1 from zeoc
Hello Zeoc,

Thank you for reporting the issue.

You need to use a pop3_stream class that implements the stream_eof function.

Are you using this POP3 package from this page?

phpclasses.org/package/2-PHP-Access ...

  3. Re: Truncated Attachments   Reply   Report abuse  
Picture of zeoc zeoc - 2023-03-16 07:23:27 - In reply to message 2 from Manuel Lemos
Hi,

yes i use your POP3 class. It seams to be related to size or number of mail parsed. I do not have memory limit or time limit. It's like the class "lost" the stream_eof while running...
Any way I try another class using imap_xxx php functions and no problem non the same messages...

  4. Re: Truncated Attachments   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2023-03-18 07:45:17 - In reply to message 3 from zeoc
Hello,

Another package in the PHP Classes site also provides a class named pop3_stream and does not have the stream_eof function. Are you sure you are not using that package?