-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Direct Reply #22588
[FIX] Direct Reply #22588
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of my comments are on console.xxx usage, maybe we can create a logger for that EmailInterceptor.
From Omnichannel, the changed file makes sense and seems to be working without issues.
} | ||
} | ||
|
||
export class POP3Intercepter { | ||
constructor() { | ||
this.pop3 = new POP3Lib(settings.get('Direct_Reply_Port'), settings.get('Direct_Reply_Host'), { | ||
enabletls: !settings.get('Direct_Reply_IgnoreTLS'), | ||
debug: settings.get('Direct_Reply_Debug') ? console.log : false, | ||
// debug: settings.get('Direct_Reply_Debug') ? console.log : false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to keep the comment? 👀
}), | ||
); | ||
this.pop3.on('connect', () => { | ||
console.log('Pop connect'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀 could be changed by an actual logger instead of console, same for debug
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
https://docs.rocket.chat/guides/administration/administration/settings/email/direct-reply
Further comments