Hi Rémi, thank you for this. I was wondering if there is an easy way to customize the script to search for all 'to recipients' instead of senders? I tried replacing the two instances where 'sender' is used, but I get an error:
Mail got an error: Can’t make {to recipient 1 of message id 2308 of mailbox "Mail" of account "myname@email.com"} into type rich text.
I get a similar error when running your script and selecting the 'All mailboxes' option in the pop-up menu:
Mail got an error: Can’t make {} into type rich text.
Do you know what might be going on? Thanks
Hi Rémi, thank you for this. I was wondering if there is an easy way to customize the script to search for all 'to recipients' instead of senders? I tried replacing the two instances where 'sender' is used, but I get an error:
Mail got an error: Can’t make {to recipient 1 of message id 2308 of mailbox "Mail" of account "myname@email.com"} into type rich text.
I get a similar error when running your script and selecting the 'All mailboxes' option in the pop-up menu:
Mail got an error: Can’t make {} into type rich text.
Do you know what might be going on? Thanks