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

Method getAttachments() return duplicate attachments where disposition is attachment #188

Closed
rafaliex opened this issue Dec 19, 2021 · 1 comment
Labels
bug Something isn't working validated

Comments

@rafaliex
Copy link

rafaliex commented Dec 19, 2021

Describe the bug
When I foreach return from getAttachments() and list it I recognize that some attachments are listed two times. I recognize it by parameter "part_number"

Code to Reproduce
The troubling code section which produces the reported bug.

$zal = $wiadomosc->getAttachments();
foreach($zal as $zala){

    $zala_partnumber = $zala->getAttributes()["part_number"];

   echo "<textarea>".$zala_partnumber."</textarea>";
    
    echo "<hr />";
}

Expected behavior
Get only unique attachments

Desktop / Server (please complete the following information):

  • OS: Ubuntu 18.04 LTS
  • PHP: 5.5.9
  • Version 2.7.2
  • Provider Dovecot
@Webklex Webklex added bug Something isn't working validated labels Feb 3, 2022
@Webklex
Copy link
Owner

Webklex commented Feb 3, 2022

Hi @rafaliex ,
many thanks for your report. This issue has been fixed by @laurent-rizer with #193 .

Please update to latest alpha and change the config option disposition from ['attachment', 'inline'] to ['attachment'].

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
bug Something isn't working validated
Projects
None yet
Development

No branches or pull requests

2 participants