Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments not found on some messages #348

Closed
mdemori opened this issue Dec 16, 2022 · 4 comments
Closed

Attachments not found on some messages #348

mdemori opened this issue Dec 16, 2022 · 4 comments

Comments

@mdemori
Copy link

mdemori commented Dec 16, 2022

Describe the bug
Attachment not show on specific message, if same message is open on Thunderbird, Outlook or other clients (even web one like Roundcube) the attachments are shown

Used config
All settings are default.

Below the php-imap version:
composer show webklex/php-imap

name : webklex/php-imap
descrip. : PHP IMAP client
keywords : imap, mail, php-imap, pop3, webklex
versions : * 4.1.2
type : library
license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : https://github.com/webklex/php-imap
source : [git] https://github.com/Webklex/php-imap.git 94bf93a
dist : [zip] https://api.github.com/repos/Webklex/php-imap/zipball/94bf93ae8868ac1e073cfbaef377f0ca1acac2bc 94bf93a
path : [REDACTED]/vendor/webklex/php-imap
names : webklex/php-imap

support
issues : https://github.com/Webklex/php-imap/issues
source : https://github.com/Webklex/php-imap/tree/4.1.2

autoload
psr-4
Webklex\PHPIMAP\ => src

requires
ext-fileinfo *
ext-iconv *
ext-json *
ext-mbstring *
ext-openssl *
illuminate/pagination >=5.0.0
nesbot/carbon >=1.0
php >=7.0.0
symfony/http-foundation >=2.8.0

requires (dev)
phpunit/phpunit ~4.0

suggests
symfony/mime Recomended for better extension support

Code to Reproduce
call
$attachments = $message -> getAttachments();
$attachments->count()

return 0 even if an attachments is present.

  • if I do a var_dump($attachments) return an empty Attachments object

Expected behavior
I need to extract attachments from message using $attachment->getAttributes()['content']

Screenshots
thunderbird-attachment

Desktop / Server (please complete the following information):

  • OS: Ubuntu 22.04.1 LTS
  • PHP: PHP 7.4.33 (cli) (built: Nov 8 2022 11:33:35) ( NTS )
  • Version webklex/php-imap 4.12
  • Provider: greenmail-standalone-2.0.0-alpha-2 for testing, Dovecot latest on production
  • Client: Thunderbird, Outlook, Roundcube (all are latest version)

Additional context
attached below you will find an eml that can be used to test this case, is zip compressed otherwise I can't upload it.
2 - test_attachment_not_reconized.zip

@ghost
Copy link

ghost commented Dec 31, 2022

I miss also Files. If i send from Outlook 2 inline & 2 attached Images-Files, i receicve only 2 Files. If i attach a rfc822-Forwarded-Email and different other Files, only the rfc ist available, not the other Files.

Webklex added a commit that referenced this issue Jan 3, 2023
@eduardom456
Copy link

eduardom456 commented Feb 3, 2023

Perhaps this is an add-on to the problem I'm having.

#370

@AdrianKuriata
Copy link
Contributor

Check this PR and give feedback if it solve your problem. #372

@Webklex
Copy link
Owner

Webklex commented Mar 16, 2023

Please update to v5.1 and give it another try.
If you are currently using an older version below v5.0, please read the breaking changes leading up to v5.1 before upgrading.

Best regards,

@Webklex Webklex closed this as completed Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants