Skip to content

Spam detection fails when subject contains emojis #5097

@Jaggob

Description

@Jaggob

FreeScout's spam detection based on subject line patterns (e.g., [SPAM]) fails to correctly identify and mark emails as spam when the subject line contains emoji characters.

Steps to Reproduce

  1. Configure spam detection settings to mark emails with [SPAM] in subject as spam
  2. Receive an email with subject: [SPAM] Regular text without emojis → Works correctly, marked as spam ✓
  3. Receive an email with subject: [SPAM] 🎉 Text with emoji → Fails, not marked as spam ✗

might be related to UTF-8 encoding issues with multi-byte characters in the pattern matching logic?

Environment

  • FreeScout Version: 1.8.195
  • Spam-Filter Module: 1.0.29
  • PHP Version: 8.3
  • Server: Ubuntu 24.04
  • Database: MySQL
  • Web Server: Nginx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions