I’m trying to extract all my gmail emails into spreadsheet & used below code which is working fine for “Inbox” data.. I need to get “All Mail” data instead of just inbox. Is it possible? Also, i want a new line added to the spreadsheet as soon as a new email is arrived in my inbox.. my current code is actually creating multiple duplicates of I run it again or set a time trigger. Any help in this would be much much much appreciated!!?Part-1