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

Improve Multipart messages parsing #127

Open
1 task done
roxblnfk opened this issue Jun 23, 2024 · 0 comments
Open
1 task done

Improve Multipart messages parsing #127

roxblnfk opened this issue Jun 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@roxblnfk
Copy link
Member

roxblnfk commented Jun 23, 2024

  • Content-Disposition is optional field and the parser shouldn't fail on it (resolved in Better HTTP/SMTP Multipart parsing #128)
  • Multipart data may be nested and contain dot at the end:
    image
    https://stackoverflow.com/questions/3902455/mail-multipart-alternative-vs-multipart-mixed
    Header
    |From: email
    |To: email
    |MIME-Version: 1.0
    |Content-Type: multipart/mixed; boundary="boundary1";
    Message body
    |multipart/mixed --boundary1
    |--boundary1
    |   multipart/related --boundary2
    |   |--boundary2
    |   |   multipart/alternative --boundary3
    |   |   |--boundary3
    |   |   |text/plain
    |   |   |--boundary3
    |   |   |text/html
    |   |   |--boundary3--
    |   |--boundary2    
    |   |Inline image
    |   |--boundary2    
    |   |Inline image
    |   |--boundary2--
    |--boundary1    
    |Attachment1
    |--boundary1
    |Attachment2
    |--boundary1
    |Attachment3
    |--boundary1--
    |
    .
    

Related issue: buggregator/server#213

@roxblnfk roxblnfk added bug Something isn't working enhancement New feature or request labels Jun 23, 2024
@roxblnfk roxblnfk self-assigned this Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant