Note that there are some explanatory texts on larger screens.

plurals
  1. USbhatiaravi
    primarykey
    data
    text
    plurals
    1. COJust saw your update above. Actually, server timezone does not depend at all on your local timezone, its only used to do offset time calculations with your respective TZ as reference. Essentially, I am led to believe that Gmail SMTP servers are set up in California (at least for India), but they may choose to have different servers for different locations(Not sure, may be to they might do so to maintain network proximity). In any case, for a given location, the SMTP server time won't change unless the server itself changes.
      singulars
    2. COYes, you are right, and hence I am unable to figure out a way to get exactly last days emails according to my timezone. For example, if its 5th September today, I want all emails from 4th Sept 00:00:00 to 5th Sept 00:00:00 according to my local timezone. Example: after:2012/09/04 before:2012/09/05 search in gmail gives me some mails of 4th and some of 5th, ideally I wish to get all emails of 4th. Please note I am 12:30 hours ahead of gmail mailstore timezone.
      singulars
    3. COThe datestring does not help because the output format is a date after all, and behaves the same way as a standard after: and before: search. I intend to do something like this in google apps script: query = "after:" + startTime + "before: " + endTime + " in:inobx" and the use GmailApp.search function with this query. And yeah, I have already thought of the idea of fetching all emails, and discarding some, but I am searching if a better solution is available.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload