VM

Extract date out of email

Asked by Dan

Hello,

I am new here.
I want to extract a date out of an email to add an entry in my calendar. A friend told me there is a command for this but I haven't found anything, yet.

VM version is 8.1.2
Calendar is calfw

Question information

Language:
English Edit question
Status:
Solved
For:
VM Edit question
Assignee:
No assignee Edit question
Solved by:
Uday Reddy
Solved:
Last query:
Last reply:
Revision history for this message
Uday Reddy (reddyuday) said :
#2

In a folder buffer or presentation buffer, you can execute

  (vm-get-header-contents (vm-current-message) "Date")

Revision history for this message
Dan (cramxyz) said :
#4

Hey, thanks for your answer.
I am sorry but I think my question was not clear enough.

Here is an example:
You write me a mail with the folliwing content: "Hi, our meeting is on November 16, 2015"

So is there something implemented to filter out the date (Nov. 16, 2015) and add it to my .diary file? Or would I have to write something on my own.

Revision history for this message
Best Uday Reddy (reddyuday) said :
#5

No, there is no function to extract a date from the body of the message.

It is certainly possible to write a regular expression to recognize dates and there might be such expressions/functions available on the web. (This would be an emacs thing rather than VM thing.)

Revision history for this message
Dan (cramxyz) said :
#6

Thanks Uday Reddy, that solved my question.