Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zed email notifications don't work #12291

Closed
lnicola opened this issue Jun 28, 2021 · 0 comments · Fixed by #12292
Closed

zed email notifications don't work #12291

lnicola opened this issue Jun 28, 2021 · 0 comments · Fixed by #12292
Labels
Status: Triage Needed New issue which needs to be triaged Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@lnicola
Copy link
Contributor

lnicola commented Jun 28, 2021

System information

Type Version/Name
Distribution Name Arch Linux
Distribution Version N/A
Linux Kernel 5.12.10-arch1-1
Architecture x86_64
ZFS Version 2.1.99-314_gff3175040
SPL Version 2.1.99-314_gff3175040

Describe the problem you're observing

Email notifications don't work.

Describe how to reproduce the problem

Configure email notifications, set them to verbose, leave ZED_EMAIL_OPTS unset, then start a scrub.

Include any warning/errors/backtraces from the system logs

[pid 3221429] execve("/usr/bin/mail", ["mail", "-s", "'ZFS", "scrub_finish", "event", "for", "tank", "on", "nas.home'", "me@domain"], 0x55a8699eb2a0 /* 28 vars */) = 0

It looks like the quotes in -s '@SUBJECT@' @ADDRESS@ don't prevent splitting the string into multiple arguments. Same with ZED_EMAIL_OPTS="-s 'scrub result' @ADDRESS@".

CC #6246

@lnicola lnicola added Status: Triage Needed New issue which needs to be triaged Type: Defect Incorrect behavior (e.g. crash, hang) labels Jun 28, 2021
@lnicola lnicola mentioned this issue Jun 28, 2021
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needed New issue which needs to be triaged Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant