A filter labels a specific email.
A timed trigger runs a script.
Script fetches all emails with that filter.
Script runs in loop. Convers each message into a blob, blob gets converted to pdf. Pdf gets saved in google drive. Email gets label removed.
My code was based on this https://www.labnol.org/code/19117-save-gmail-as-pdf
A filter labels a specific email.
A timed trigger runs a script.
Script fetches all emails with that filter.
Script runs in loop. Convers each message into a blob, blob gets converted to pdf. Pdf gets saved in google drive. Email gets label removed.
My code was based on this https://www.labnol.org/code/19117-save-gmail-as-pdf