For the most up-to-date instructions for collecting data from a Gmail source, please refer to the "Collecting data from a Google source" KB article, located at the link below.
Collecting data from a Google source: https://vound.info/collecting-data-google-source