Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Long attachement filenames not being displayed

#3108

Hi,

When I receive email from iOS Mail users which have attachments with long filenames Mailmate will only display the attachments as Attachment.XXX. The XXX will match the actual filename extension (i.e. pdf/docx/etc).

When I look at the raw message, the headers look like this:

Content-Type: application/x-custom-type;
    name*0=some_really_long_filename_that_goes_beyond_the_78_character_limit_of;
    name*1=mime_line.pdf
Content-Disposition: attachment;
    filename*0=some_really_long_filename_that_goes_beyond_the_78_character_limit;
    filename*1=_of_mine_line.pdf

I'm not sure if this is some oddity of iOS Mail, or some dusty part of a standard?

When Mailmate sends email, it doesn't seem to wrap the filename.

Cheers,
Yen

PS: on a side note, this ticket is being marked as spam. Not sure if me adding some more text to it will help matters, but here's trying!

Reported by Tee Yen Ng · August 1st, 2022 @ 12:56 PM

State: fixreleased
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • State changed from new to fixcommitted

    Attachment file names are badly standardized, but in this case MailMate is to blame (for not supporting the *-style). I do believe I already fixed it though. Could you check for me and let me know if I'm wrong: Hold down ⌥ when clicking “Check Now” in the Software Update preferences pane to get the latest test release.

    August 11th, 2022 @ 12:29 PM

  2. Tee Yen Ng
    Tee Yen Ng

    Hi Benny,

    I'm still seeing this issue on version 1.14 (5964).

    Below are some snaps from live examples that still show Attachment.pdf

    Example 2 is an interesting one—the Content-Type name is encoded differently than the Content-Disposition filename.

    The former is just enclosed in double quotes (") as normal; but the latter starts with utf8'' and the balance of the line is URL encoded.

    Cheers,
    Yen

    Example 1

    Example 2

    Example 3

    April 3rd, 2023 @ 09:24 AM

  3. benny
    benny
    • State changed from fixcommitted to fixreleased

    December 25th, 2024 @ 04:11 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.