Git Product home page Git Product logo

Comments (8)

Slamdunk avatar Slamdunk commented on May 20, 2024 2

Thank you for the feedbacks. The issue should be resolved by #196

from imap.

danilor avatar danilor commented on May 20, 2024

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.

danilor avatar danilor commented on May 20, 2024

Sadly didnt work for me.

I will have to check for another solution.

Thanks anyway.

from imap.

npub avatar npub commented on May 20, 2024

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.

Lewiscowles1986 avatar Lewiscowles1986 commented on May 20, 2024

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.

danilor avatar danilor commented on May 20, 2024

Kind of late. one year without an answer. I guess this forum will never get an answer :)

from imap.

Lewiscowles1986 avatar Lewiscowles1986 commented on May 20, 2024

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.

skrepecki avatar skrepecki commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.