Skip to content

Commit

Permalink
Reapply "fix: added hotmail fix for IMAP TTI testing"
Browse files Browse the repository at this point in the history
This reverts commit 16df424.
  • Loading branch information
titanism committed Oct 4, 2024
1 parent 16df424 commit 423ec6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ const imapConfigurations = [
name: 'Outlook/Hotmail',
forwarder: env.TTI_OUTLOOK_FORWARDER,
config: {
host: 'outlook.office365.com',
host:
typeof env.TTI_OUTLOOK_IMAP_USER === 'string' &&
env.TTI_OUTLOOK_IMAP_USER.endsWith('@hotmail.com')
? 'imap-mail.outlook.com'
: 'outlook.office365.com',
port: 993,
secure: true,
auth: {
Expand Down

0 comments on commit 423ec6e

Please sign in to comment.