Comments (8)
Thank you for the feedbacks. The issue should be resolved by #196
from imap.
I am having the same problem, specially from a couple of emails comming from ebay.
So I am implementing your solution and I hope in the future the library gets the fix.
from imap.
Sadly didnt work for me.
I will have to check for another solution.
Thanks anyway.
from imap.
Same problem.
In my case: a broken email's title prevents fetching the message: body, attachments and etc.
Call $message->getID();
throws at …/ddeboer/transcoder/src/IconvTranscoder.php:32:
[Ddeboer\Transcoder\Exception\IllegalCharacterException]
String "?ӧ֧ܧ? 2015/16 ?C ???֧ԧ?" contains an illegal character: iconv(): Detected an illegal character in input string
Is it any way to ignore IllegalCharacterException to take access to others not broken parts of email?
from imap.
I Have a separate problem that may be related in some way
PHP Notice: Undefined property: stdClass::$mailbox in ~/projects/php/email-harvest/vendor/ddeboer/imap/src/Message/Headers.php on line 78
PHP Stack trace:
PHP 1. {main}() /home/lewis/projects/php/email-harvest/harvest.php:0
PHP 2. Ddeboer\Imap\Message->getId() ~/projects/php/email-harvest/harvest.php:30
PHP 3. Ddeboer\Imap\Message->getHeaders() ~/projects/php/email-harvest/vendor/ddeboer/imap/src/Message.php:46
PHP 4. Ddeboer\Imap\Message\Headers->__construct() ~/projects/php/email-harvest/vendor/ddeboer/imap/src/Message.php:185
PHP 5. Ddeboer\Imap\Message\Headers->parseHeader() ~/projects/php/email-harvest/vendor/ddeboer/imap/src/Message/Headers.php:23
PHP 6. Ddeboer\Imap\Message\Headers->decodeEmailAddress() ~/projects/php/email-harvest/vendor/ddeboer/imap/src/Message/Headers.php:64
Encoding from `x-unknown' to `UTF-8' is unsupported on this platform: iconv(): Wrong charset, conversion from `x-unknown' to `UTF-8' is not allowed
from imap.
Kind of late. one year without an answer. I guess this forum will never get an answer :)
from imap.
Well I'm not sure it will if we all take that attitude... Combing the PR's it seems modifying the transcoding library to include some try catch statements helped to silence and decode a lot of messages that were x-unknown
, some variant of ascii
or utf-8
. It's not solved, but certainly progress. Btw, most decoded into readable English, not all did
from imap.
class IconvTranscoder implements TranscoderInterface{
.....
public function transcode($string, $from = null, $to = null){
.....
if($from == 'auto') $from = 'UTF-8';
}
}
php 7.4
this works for me
from imap.
Related Issues (20)
- New "References:" formatting in headers processed by Exchange?
- Variable in Search not working.
- getFilename() returns NULL for long attachment filenames
- How can I retrieve single mail HOT 1
- Is there a way to fetch only not replied messages? HOT 4
- Google imap no longer supports username and password authentication. HOT 1
- Oauth2 problem HOT 1
- Supplied resource is not a valid imap resource HOT 1
- Wrong post
- imap_sort(): Argument #3 ($reverse) HOT 1
- mb_convert_encoding(): Illegal character encoding specified HOT 4
- Backporting https://github.com/ddeboer/imap/pull/546 to PHP7.4 HOT 1
- Is there any way to add multiple 'oRcondition' in SearchExpression with From Address HOT 1
- Running into intermittent "Cannot reopen mailbox XYZ" HOT 2
- PHP 8.2 compatibility HOT 2
- Imap Codeigniter 4 HOT 2
- Can't retrieve headers from RFC822-HEADERS subpart HOT 2
- output abort message
- Move message to another account HOT 3
- Crash getting message sequence with error: Mailbox has more messages HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imap.