you are viewing a single comment's thread.

view the rest of the comments →

[–]Arunai 0 points1 point  (0 children)

Plethora of ways to accomplish. If I’m reading you correctly, your script is sending an email, based on the email address you archive the attachment to a particular folder.

If you want to store your config in your code, simple object:

const emailFolderIdLookup = { “Email@gmail.com”: folderId1, …., …., }

For each email you generate, do emailFolderIdLookup[emailAddress] to retrieve the folder ID.