Email from address set to random Email Address #5362

Open
opened 2026-02-20 17:00:09 -05:00 by deekerman · 0 comments
Owner

Originally created by @ojs87 on GitHub (Jan 21, 2026).

Issue

If an email is saved without a value in the from_addr field, it is possible that the from address can be set to a random address. This address is determined by the first returned address with no "email_address_caps" value

Possible Fix

Prevent the getEmailGUID function from querying the database with an empty address value

Steps to Reproduce the Issue

1. Set an email address in the database to have an empty value in the "email_address_caps" field
2. Use Outlook plugin to sync an email across
3. The email will be saved with the from address of the email address with the empty email_address_caps
...

Context

This was discovered while syncing emails with the official outlook plugin where there was a period where email_address_caps was not correctly populated.

Version

7.14.4

What browser are you currently using?

Chrome

Browser Version

Chrome v144.0.7559.59

Environment Information

PHP82

Operating System and Version

Ubuntu 22.04.5

Originally created by @ojs87 on GitHub (Jan 21, 2026). ### Issue If an email is saved without a value in the from_addr field, it is possible that the from address can be set to a random address. This address is determined by the first returned address with no "email_address_caps" value ### Possible Fix Prevent the getEmailGUID function from querying the database with an empty address value ### Steps to Reproduce the Issue ```bash 1. Set an email address in the database to have an empty value in the "email_address_caps" field 2. Use Outlook plugin to sync an email across 3. The email will be saved with the from address of the email address with the empty email_address_caps ... ``` ### Context This was discovered while syncing emails with the official outlook plugin where there was a period where email_address_caps was not correctly populated. ### Version 7.14.4 ### What browser are you currently using? Chrome ### Browser Version Chrome v144.0.7559.59 ### Environment Information PHP82 ### Operating System and Version Ubuntu 22.04.5
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5362
No description provided.