anicholson / obsidian-google-mail

Fetch emails to Obsidian (as markdown) from Gmail server
53 stars 4 forks source link

Feature/Fix: Date-Time from ${X-Received} #34

Open jpfieber opened 6 months ago

jpfieber commented 6 months ago

I'm unable to get ${X-Received} to render. I was trying to use it to get the date and time from so I could use that to rename the file (I want to start the filename with 'yyyymmdd_hhMMss'). If you're diving into the code anyway, would it be possible to make available a ${DateTime} variable that provides the date/time in a common format (something predictable like 'YYYY-MM-DDTHH:mm:ssZ' or an option for multiple common formats)?

anicholson commented 4 months ago

Hey @jpfieber, I don't have heaps of time to dedicate, but I will take a look. PRs welcome if you're at all comfortable in Typescript :)