Gmail checks its own inbox continuously. If you set Gmail to fetch mail from other accounts, however, you may find significant delays before messages appear. To increase Gmail's mail-checking frequency, you must increase the frequency at which your other account receives mail. Gmail will detect the increased volume to the separate account and will respond by checking the account more frequently. One easy way to raise this frequency is to send automated messages from your own Gmail account.
Log in to your Gmail account. Click "Drive" in the Google bar to open Google Drive.
Click "Create" and click "Spreadsheet" to open a new spreadsheet. Click "Tools" and click "Script Editor," and then click "Gmail" to open your Gmail scripts.
Paste the following into the script window to send automated messages:
function autoMessage() {
var subject = "zxzxtyry";
var message = "Delete this " + new Date();
var recipient = "emailaccount";
MailApp.sendEmail(recipient, subject, message );
}
Replace "emailaccount" with the address of the account that Gmail checks.
Click "Resources" and click "Current project's triggers." Click "click here to add one now."
Click the "Run" drop-down box and click "autoMessage." Click the second drop-down box and click "Time-driven."
Use the remaining two drop-down boxes to set how often Gmail should send mail, which will later determine how often it fetches mail. For example, set this trigger to run every minute.
Save and close the script.
Return to your Gmail inbox. Click the arrow in the search bar and type "zxzxtyry" in the "Subject" text field.
Click "Create filter with this search."
Click the box labeled "Delete it" and then click "Create filter."
Log in to your Gmail account. Click "Drive" in the Google bar to open Google Drive.
Click "Create" and click "Spreadsheet" to open a new spreadsheet. Click "Tools" and click "Script Editor," and then click "Gmail" to open your Gmail scripts.
Paste the following into the script window to send automated messages:
function autoMessage() {
var subject = "zxzxtyry";
var message = "Delete this " + new Date();
var recipient = "emailaccount";
MailApp.sendEmail(recipient, subject, message );
}
Replace "emailaccount" with the address of the account that Gmail checks.
Click "Resources" and click "Current project's triggers." Click "click here to add one now."
Click the "Run" drop-down box and click "autoMessage." Click the second drop-down box and click "Time-driven."
Use the remaining two drop-down boxes to set how often Gmail should send mail, which will later determine how often it fetches mail. For example, set this trigger to run every minute.
Save and close the script.
Return to your Gmail inbox. Click the arrow in the search bar and type "zxzxtyry" in the "Subject" text field.
Click "Create filter with this search."
Click the box labeled "Delete it" and then click "Create filter."


01:33
Faizan
Posted in: