#1852 new
Stacey Marshall

Enhancement: bundle access to recipient and other headers?

Reported by Stacey Marshall | October 20th, 2017 @ 11:22 AM

I've been using the org-mode bundle to grab the contents of mail to a file

I would like to be able to also get the sender's name and received date.

Currently I am able to accomplish this using a combination of "open in Apple Mail" and then using a Service to inform emacs to grab the mail using a modified org-mac-grab-link to capture the email contents, subject, link, sender and date via apple script.

Getting access to sender & date directly in the bundle would be great.


Comments and changes to this ticket

  • benny

    benny October 21st, 2017 @ 02:47 PM

    You can get any header value into an environment variable by using the environment key in the .mmCommand file. Here's an example:

    environment   = 'MM_DATE=${#date-received}\nMM_FROM=${from}\nMM_SUBJECT=${subject}\nMM_MESSAGE_ID=${message-id.split}\n';

    You might prefer from.address or subject.body or some other specifier variant.

    Does that help?

  • Stacey Marshall

    Stacey Marshall October 23rd, 2017 @ 09:18 AM

    • Tag changed from bundle to environment documentation, bundle

    Wow! Thanks Benny that looks to be exactly what I am looking for.

    And armed with that I found once again MailMate bundles for fun and profit which documents bundles and how to edit said files and even discusses the environment setting.


  • benny

    benny November 13th, 2017 @ 08:32 AM

    • State changed from “new” to “resolved”

    I'm lucky that someone else at least documented part of what bundles can do :) (It's still a high priority for me to get some documentation written on this.)

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket