Skip to content

Commit 9e4cbdc

Browse files
committed
Fix(llm): Do not try to process an email without message contents
1 parent 1ec4000 commit 9e4cbdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mailbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ class Mailbox {
10881088
if (messageInfo.messageSpecialUse === '\\Inbox' && (!this.connection.notifyFrom || messageData.internalDate >= this.connection.notifyFrom)) {
10891089
let messageData = Object.assign({ account: this.connection.account }, messageInfo);
10901090

1091-
let canUseLLM = await llmPreProcess.run(messageData);
1091+
let canUseLLM = (await llmPreProcess.run(messageData)) && messageInfo.text;
10921092

10931093
if (canUseLLM && (messageInfo.text.plain || messageInfo.text.html)) {
10941094
if (canUseLLM.generateEmailSummary) {

0 commit comments

Comments
 (0)