質問編集履歴
2
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
```gas
|
2
|
+
|
1
3
|
var SearchString = "label:mitsubishi";
|
2
4
|
|
3
5
|
function myFunction() {
|
4
6
|
var myThreads = GmailApp.search(SearchString);
|
5
7
|
var myMsgs = GmailApp.getMessagesForThreads(myThreads); for ( var threadIndex = 0 ; threadIndex < myThreads.length ;threadIndex++) {
|
6
|
-
|
8
|
+
|
7
9
|
var mailBody = myMsgs[threadIndex][0].getPlainBody();
|
8
10
|
|
9
11
|
// 正規表現マッチにより、メール本文から情報を抽出する。
|
@@ -21,6 +23,8 @@
|
|
21
23
|
|
22
24
|
}
|
23
25
|
}
|
26
|
+
|
27
|
+
```
|
24
28
|
|
25
29
|
これがうまく動きません。
|
26
30
|
ログも何故か出ないため原因解明ができません。
|