🐛 Fixing issue with Gmail subject enconding (#1121)

Reported by community user huuich (https://community.n8n.io/t/gmail-integration-partly-created/693/12?u=jan)

An attempt to fix the problem using basic JS functions (escape / unescape
/ encoding / decoding) did not work, so I decided to use MailComposer
as suggested by Jan on Jira Issue PROD-575
This commit is contained in:
Omar Ajoue
2020-11-02 18:47:47 -03:00
committed by GitHub
parent 13e71b06ad
commit 3650d3b3bf
2 changed files with 34 additions and 54 deletions

View File

@@ -329,7 +329,7 @@ export class Gmail implements INodeType {
method = 'POST';
body = {
raw: encodeEmail(email),
raw: await encodeEmail(email),
};
responseData = await googleApiRequest.call(this, method, endpoint, body, qs);
@@ -427,7 +427,7 @@ export class Gmail implements INodeType {
email.reference = id;
body = {
raw: encodeEmail(email),
raw: await encodeEmail(email),
threadId: this.getNodeParameter('threadId', i) as string,
};
@@ -625,7 +625,7 @@ export class Gmail implements INodeType {
body = {
message: {
raw: encodeEmail(email),
raw: await encodeEmail(email),
},
};