Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 963451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:40:22+00:00 2026-05-16T01:40:22+00:00

PHP provides very useful functions to fetch emails from a POP3 account, in my

  • 0

PHP provides very useful functions to fetch emails from a POP3 account, in my case to handle bounce-mails. The function imap_fetchstructure(), however, gives me headache. When using it in one script, I (for some mails) get the message:

Notice: Unknown: Warning: MIME header
encountered in non-MIME message
(errflg=3) in Unknown on line 0

A Bug reported to PHP was set to status Bugus (http://bugs.php.net/bug.php?id=43471), but I fail to find a clue on this problem in the documentation.

Neither placing a @ before the function nor changing the error handler before the function (and resetting it after that) helps. Turning error reporting off or permanently changing the error handler or the error reporting level help (it seems that the error is triggered at the and of the script) – however, I need to register other errors that may occur after using this function.

Therefore I search for a hint at Stackoverflow: What exactly does the function mourn about (I guess a malformned MIME header or content) and how do I get rid of this error notice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:40:23+00:00Added an answer on May 16, 2026 at 1:40 am

    I believe the error message is emitted when you call imap_close(), or, in that function’s absence, when the script ends. Try calling imap_errors() before that (to clear the error stack).

    $struct = imap_fetchstructure($imap, $num);
    $errs = imap_errors();
    imap_close($imap);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a PHP equivalent to JAXB? It's proved very useful for Java development,
Possible Duplicate: Completely remove (old) git commits from history git is very useful for
The zend framework provides a php wrapper for the amazon S3 api that simplifies
I've created a HTML + PHP simple page with some javascript that provide from
I have the following simple script to test the mkdir() function in PHP: <?php
PHP interpreters are very common, but the PHP syntax & libraries are inconsistent &
Actually I am very new to PHP. My code goes here: <?php $mysql =
Suppose I have a very long file, utilities.php, which contains most if not all
I have a php page that echos out rows from a database. I want
As per information i have, Aouth provides very stander plateform for authentication for accessing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.