質問編集履歴
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,9 +78,9 @@
|
|
78
78
|
|
79
79
|
```GAS
|
80
80
|
|
81
|
-
var from = ' from:
|
81
|
+
var from = ' from:XXXXXXXX@XXXXX.com';
|
82
|
-
|
82
|
+
|
83
|
-
var get_interval = 1
|
83
|
+
var get_interval = 15; //15分前~現在の新着メールを取得 トリガーをこれに合わせる
|
84
84
|
|
85
85
|
|
86
86
|
|
@@ -124,9 +124,9 @@
|
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
//配列arrに登場回数分の「
|
127
|
+
//配列arrに登場回数分の「○○」を格納する
|
128
|
-
|
128
|
+
|
129
|
-
var arr = plainBody.match(/
|
129
|
+
var arr = plainBody.match(/○○/g);
|
130
130
|
|
131
131
|
var strMessage = Array(arr.length);
|
132
132
|
|
@@ -134,7 +134,7 @@
|
|
134
134
|
|
135
135
|
for(var j = 0; j < arr.length; j++) {
|
136
136
|
|
137
|
-
strMessage[j] = [plainBody.match(/
|
137
|
+
strMessage[j] = [plainBody.match(/abc([\s\S]*?)xyz(.+)/gi)[j]];
|
138
138
|
|
139
139
|
}
|
140
140
|
|