Unset EMAIL environment variable breaks preferences window
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Email-reminder |
Fix Released
|
High
|
François Marier | ||
email-reminder (Debian) |
Fix Released
|
High
|
François Marier | ||
email-reminder (Ubuntu) |
Fix Released
|
Undecided
|
François Marier |
Bug Description
[Impact]
email-reminder is unusable for new users who have the EMAIL environment variable unset because the user's email address must be set in preferences before any reminders will be sent out.
This is a severe regression from upstream's 0.7.8 and is fixed in 0.8.1-4.
The fix is trivial (checking for whether or not the envvar is set before using it): https:/
Since there are no other changes in version 0.8.1-4, the simplest fix would be to **sync from Debian unstable**. I have attached a debdiff showing the differences between them.
[Test plan]
1. Delete any existing ~/.email-reminders.
2. Run `unset EMAIL`.
3. Run `email-
4. In the menu, open "Edit | Preferences...".
5. (notice that nothing happens and the preferences window never shows up)
[Where problems could occur]
The only regression that this could cause is to prevent the preferences dialog from opening for more users than just the ones that have EMAIL unset.
[Original report]
Upgraded to Ubuntu MATE 22.04 and email-reminder 0.8.1.3. Out of the box and invoked in the Accessories menu item, email-reminder loads but gives the error on exit: "You will not receive an email because your email address is not set." (or similar words). Attempts to load preferences window fail (no window appears.)
Ran "email-
So, it appears that "EMAIL" must be set at least once in order for email-reminder to add the user name and email address to $HOME/.
Cheers, and thanks for a useful program.
Changed in email-reminder: | |
status: | Confirmed → Fix Committed |
Changed in email-reminder (Ubuntu): | |
status: | New → Confirmed |
Changed in email-reminder (Debian): | |
importance: | Undecided → High |
assignee: | nobody → François Marier (fmarier) |
Changed in email-reminder (Ubuntu): | |
assignee: | nobody → François Marier (fmarier) |
Changed in email-reminder (Debian): | |
status: | New → Fix Released |
Changed in email-reminder: | |
status: | Fix Committed → Fix Released |
I'm guessing you fixed this in 0.8.2, but I can't be sure.
--J. Haefner