Skip to content

SMTP fails when password contains octothorpe ("#") character #255

@ossumpossum

Description

@ossumpossum

Notify version: 1.0.4

Current Behavior: When attempting to use SMTP, I receive the following error:

[ERR] failed to send smtp notification for id: email : parse "smtp://[email protected]:xxxxx": invalid port ":xxxxx" after host

(output has been sanitized) The "xxxxx" is the first half of the password for the mailserver. It is terminated where an octothorpe ("#") appears in the password. I have attempted to escape the octothorpe with a backslash, as well as enclosing the password in either single or double quotes. All attempts generate the same error.

Expected Behavior: The SMTP functionality should accept passwords verbatim without attempting to interpret any characters as anything other than password characters.

Steps To Reproduce:

  1. Configure notify to attempt to use SMTP with a password that contains an octothorpe ("#")
  2. Run notify
  3. See error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions