Can I use functions inside the GMail Watch Email module?

I’d like to filter GMail emails with something like this:

label:business is:unread invoice OR receipt after:{{formatDate(addMonths(now; -1); “YYYY/MM/01”)}} before:{{formatDate(now; “YYYY/MM/01”)}}

Basically take all receipts and invoices from last month. This is not possible, right? I need to use a filter.

You cannot do that with the Gmail integration.

To search previous mails with a Gmail filter, you have to use the Email “Get Emails” module.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

2 Likes

Thank you for your answer.
Seems that using a Mail module gets me into another situation: unable to label emails (Find Gmail message ID - #13 by Donald_Mitchell). I guess I’ll have to filter email after watching them from the GMail module instead of getting them through the Email module.