karastojko / mailio

mailio is a cross platform C++ library for MIME format and SMTP, POP3 and IMAP protocols. It is based on standard C++ 17 and Boost library.
Other
374 stars 98 forks source link

Test for name of a multipart part set in Content-Disposition header #124

Closed movepointsolutions closed 1 year ago

movepointsolutions commented 1 year ago

I've coded down what I would like to see in my web attachments handling with mailio, regarding "name" attribute, currently mime::name_ is set to the value of "filename" Content-Disposition attr

movepointsolutions commented 1 year ago

123

karastojko commented 1 year ago

Let me check the RFC and implementation within mailio.

movepointsolutions commented 1 year ago

Look, I don't want to write unsupported changes, so please could you write a method to get "name" field of Content-Disposition header? I don't have any idea how it should be called, as 'name' is occupied by Content-Dispositon: filename="..."

movepointsolutions commented 1 year ago

for HTTP purposes!

movepointsolutions commented 1 year ago

Please take a look, I've noticed you've already had TODO regarding name() method

movepointsolutions commented 1 year ago

It seems I still can't use mailio for HTTP uploads, as line decoding policy breaks, even if I set VERYLARGE lines

movepointsolutions commented 1 year ago

image

karastojko commented 1 year ago

It seems I still can't use mailio for HTTP uploads, as line decoding policy breaks, even if I set VERYLARGE lines

The MIME format has the line length policy, but I think that HTTP does not. Thus, you cannot expect to mix these two approaches.

karastojko commented 1 year ago

No plans to mix HTTP with email protocols.