Skip to content

Commit 3e657ec

Browse files
committedApr 19, 2023
feat: add sender domain to substitution map
1 parent 6e7d649 commit 3e657ec

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎src/Gmail2GDrive.spec.ts

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ describe("Features", () => {
4040
test.todo(
4141
"should be able to use replyTo and from as folder/file names (PR #76)",
4242
)
43+
test.todo(
44+
"should be able to specify storage location from sender domain (issue #84)",
45+
)
4346
})
4447
describe("Filtering", () => {
4548
test.todo("should be able to exclude inline attachments (issue #13,#26)")

‎src/utils/PatternUtil.ts

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export class PatternUtil {
147147
m = this.mapAdd(m, "message.cc", message.getCc())
148148
m = this.mapAdd(m, "message.date", message.getDate())
149149
m = this.mapAdd(m, "message.from", message.getFrom())
150+
m = this.mapAdd(m, "message.from.domain", message.getFrom().split("@")[1])
150151
m = this.mapAdd(m, "message.id", message.getId())
151152
m = this.mapAdd(m, "message.isDraft", message.isDraft())
152153
m = this.mapAdd(m, "message.isInChats", message.isInChats())

0 commit comments

Comments
 (0)
Please sign in to comment.