This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Extracts email addresses from sent emails ("from:me") and writes them to a Google Sheet. | |
* | |
* This script processes Gmail threads in batches, extracts unique email addresses | |
* from the "To" field, and appends them to a Google Sheet. It also supports resuming | |
* from the last processed thread, enabling efficient handling of large email volumes. | |
* | |
* Author: Vaibhav Jain | |
* GitHub: https://github.com/white-hat-vaibhs | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Node { | |
constructor(data, next = null) { | |
this.data = data; | |
this.next = next; | |
} | |
} | |
class LinkedList { | |
constructor() { | |
this.head = null; |