-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.gs
31 lines (31 loc) · 1.25 KB
/
Config.gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Configuration for Gmail2GDrive
* See https://github.com/ahochsteger/gmail2gdrive/blob/master/README.md for a config reference
* Customized to only extract JP(E)G images by https://github.com/jasoneppink
*/
function getGmail2GDriveConfig() {
return {
// Global filter
"globalFilter": "-in:trash -in:drafts -in:spam",
// Gmail label for processed threads (will be created, if not existing):
"processedLabel": "to-gdrive/processed",
// Sleep time in milli seconds between processed messages:
"sleepTime": 100,
// Maximum script runtime in seconds (google scripts will be killed after 5 minutes):
"maxRuntime": 280,
// Only process message newer than (leave empty for no restriction; use d, m and y for day, month and year):
"newerThan": "1m",
// Timezone for date/time operations:
"timezone": "GMT",
// Processing rules:
"rules": [
{ // Store all jp(e)g attachments to folder "Digital Photo Frame"
// "filter": "has:attachment from:[email protected]",
// "filter": "has:attachment (from:[email protected] OR from:[email protected])",
"filter": "has:attachment",
"folder": "'Digital Photo Frame'",
"filenameFromRegexp": ".*\.jpe*g$|.*\.JPE*G$"
}
]
};
}