Page 1 of 1

Extract from email address from .eml file

PostPosted: Tue May 11, 2021 10:45 am
by tsolignani
Hallo everybody.

I am trying to set a rule to rename Apple Mail mail's dragged to the desktop accordin to the following syntax:

yyyymmdd - sendermail.eml

I managed to make Hazel extract the date of the email, but cannot do anything good with the sender's mail.

Any hint?

Thank you very much.

Tiziano

Re: Extract from email address from .eml file

PostPosted: Wed May 12, 2021 10:17 am
by Mr_Noodle
Can you show/describe the rule/pattern you are using?

Re: Extract from email address from .eml file

PostPosted: Fri May 14, 2021 3:45 am
by tsolignani
Thank you.

Please find some screenshoots over here:

https://www.dropbox.com/sh/l0h2v3vtrx0a ... RJ_wa?dl=0

Thank you, have a nice day.

Re: Extract from email address from .eml file

PostPosted: Fri May 14, 2021 10:20 am
by Mr_Noodle
The "From" pattern seems a bit restrictive. It won't allow for other characters in the email, like numbers or punctation. It might be better to just grab all text after the "From: " text.