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.

better name for emails drag-n-dropped as files

#256

When I drag-n-drop an email to the desktop, the file it creates has a rather uninformative name such as "46815.eml".

It would be best if the file would be named like "Subject (from so-and-so on such-date)", or something like that.

Thanks

Reported by Vincent Noel · May 22nd, 2012 @ 01:04 PM

State: new
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny
    • State changed from new to accepted

    The default name is based on the internal unique ID of the message which is practical when I want to locate the original message in MailMate, but I can see that the average user is not going to find that very useful :-)

    One problem with an alternative naming scheme is that it is more likely that multiple messages are going to have the same name, but that can be handled in the standard Mac OS X way (adding a number).

    The simple and powerful way to implement this is to allow a format string to be defined for the filename used. The default should perhaps just be a nicely formatted subject. This one is taken from the display of the subject in the messages outline:

    ${subject.prefix:+${subject.prefix} }${subject.blob:+[${subject.blob}] }${subject.body}
    

    Most of the time, a simple ${subject} would work just as well, but I dislike extraneous space in subject lines :-)

    Adding sender and date would make it pretty long in general, but you would be able to customize it if you want that too.

    For the record, the currently hardcoded name could be done with the following format string:

    ${#body-part-id}
    

    Maybe I should also let .eml be part of the format string since some users may prefer .msg or something else.

    I'll update this ticket with any progress on this issue. Comments are welcome. Format strings are “documented” here.

    May 23rd, 2012 @ 08:39 AM

  2. benny
    benny
    • State changed from accepted to fixcommitted

    Changed as suggested above and configurable using the MmFilenameFormatString preferences key.

    May 24th, 2012 @ 10:07 AM

  3. benny
    benny
    • State changed from fixcommitted to fixreleased

    November 9th, 2012 @ 12:16 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.