Skip to content

Test email redaction beside punctuation and aliases #177

Closed

Description

@ashrafee-dev

PRI-02 · Privacy filtering

Difficulty: beginner · Status: ready

This is a focused contribution against current main. No unmerged feature PR is required.

Why this is useful

The current regex has boundaries that need contract coverage

Start here

Source audit: 9d8ac3e01df1. Read these files on current main too, because paths may change after the audit:

Scope and intended output

Add the focused test file tests/roadmap/privacy/test_email_punctuation.py. Change runtime code only if the acceptance criteria explicitly request a behavior fix; otherwise report newly discovered behavior separately.

Acceptance criteria

  • Include plus aliases, subdomains, case variants, and trailing punctuation
  • Assert surrounding prose survives
  • Document unsupported syntax rather than expanding scope

Verification

uv run pytest tests/roadmap/privacy/test_email_punctuation.py -q
uv run pylint app tests

Create the named focused test file before running its command. Tests must be deterministic, mock external services, and avoid paid calls. Run bash scripts/check.sh before submitting a Python change.

Dependencies

None. Keep the PR based on current upstream main.

Out of scope

  • Unrelated refactors, broad formatting, endpoint renames, or extra dependencies without agreement.
  • Live cloud provisioning, paid model calls, real private messages, or credentials in fixtures/logs.
  • Implementing neighboring roadmap issues in the same PR.

Getting help and submitting

Comment with your intended approach and ask when expected behavior is unclear. Check for an existing PR before starting; there is no deadline for a volunteer contribution. A useful reproduction or partial finding is welcome.

Use the issue's criteria as the review checklist. Include the commands actually run and any limitations. Link the issue; use Fixes only when its entire agreed scope is complete. If CONTRIBUTING.md is not yet on main, the contributor-roadmap PR provides the onboarding guide.

Activity

  1. added
    help wanted
    good first issue
    contributor-roadmap
    status:ready
    difficulty:beginner
    area:privacy
    on Sep 28, 2026
  2. sivaadithya25 commented on Sep 28, 2026

    @sivaadithya25
    Contributor

    Hi, I'd like to work on this issue. Could you assign it to me?

  3. sivaadithya25 commented on Sep 28, 2026

    @sivaadithya25
    Contributor

    Thank you for assigning this issue to me.

    I’ll start working on it and will submit a PR once the implementation and testing are completed.

  4. sivaadithya25 commented on Sep 28, 2026

    @sivaadithya25
    Contributor

    PR #370 has been merged and the issue appears to be resolved. Could you please close this issue when you have a chance? Thank you

  5. ashrafee-dev commented on Sep 28, 2026

    @ashrafee-dev
    OwnerAuthor

    Thank you for your contributions!

  6. sivaadithya25 commented on Sep 28, 2026

    @sivaadithya25
    Contributor

    I am grateful to work with you 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:privacycontributor-roadmapdifficulty:beginnergood first issuehelp wantedstatus:ready

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions