I’m trying to read emails with two different subjects, one with the subject “Reprocess” and the other with the subject “Check Status”. How can I read these two types in custom email rules?
Hey @Gabriel_Takahashi,
Looking at the node-imap link the node provides it looks like you might be able to do something like:
["UNSEEN", [ "OR", ["SUBJECT", "Reprocess"], ["SUBJECT", "Check Status"]]]
I have not tested it but hopefully it points you in the right direction, The other option would be to just fetch everything and use an If node to check the subject.
It worked, thank you very much!
That is good to hear, the documentation wasn’t that clear but I am glad it is working. Happy Automating
Hi @Jon
can this rules [“UNSEEN”, [ “OR”, [“SUBJECT”, “Reprocess”], [“SUBJECT”, “Check Status”]]] add body of mail too?
thanks
Iwan
Hey @Iwan_Yudhistira,
Good question, At a quick glance it looks like it should work. Do you get any errors?
hi @Jon
i got this criteria [“UNSEEN”, [ “OR”, [“SUBJECT”, “Attention - Tbssvr-wmdash0234”],[“BODY”, “Partition”]]] but just show subject, there is any part i miss?
regards
Iwan