Skip to content

Conversation

@MunsMan
Copy link
Contributor

@MunsMan MunsMan commented Dec 5, 2025

Add optional userName fields to IMAP and SMTP submodules, allowing
different usernames for IMAP and SMTP servers. When not specified,
the account-level userName is used as a fallback.

This change updates all email programs (mbsync, msmtp, offlineimap,
getmail, neomutt, aerc, thunderbird, git) to use the protocol-specific
username when available.

Description

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

Add optional userName fields to IMAP and SMTP submodules, allowing
  different usernames for IMAP and SMTP servers. When not specified,
  the account-level userName is used as a fallback.

  This change updates all email programs (mbsync, msmtp, offlineimap,
  getmail, neomutt, aerc, thunderbird, git) to use the protocol-specific
  username when available.
@teto
Copy link
Collaborator

teto commented Dec 5, 2025

could you share an example where it would be useful ? if we introduce complexity, we need to justify it

@MunsMan
Copy link
Contributor Author

MunsMan commented Dec 5, 2025

Sure! I'm personally facing this problem with an account provided by my university. The issue is that I can't manage a single account outside of Home-Manager, because every switch reverts my manual changes.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants