[Bug 1983060] Re: Unset EMAIL environment variable breaks preferences window

François Marier 1983060 at bugs.launchpad.net
Mon Dec 5 08:28:12 UTC 2022


** Changed in: email-reminder
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1983060

Title:
  Unset EMAIL environment variable breaks preferences window

Status in Email-reminder:
  Fix Released
Status in email-reminder package in Ubuntu:
  Fix Released
Status in email-reminder package in Debian:
  Fix Released

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://salsa.debian.org/debian/email-
  reminder/-/commit/421ecf6df3e1ddde5cb3aa2c804f687765ea250e

  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-reminder-editor`.
  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-reminder-editor" from a terminal, attempted to invoke the
  preferences window, and received an error message from Python3 to the
  terminal that suggested that the environment variable "EMAIL" was not
  set.  I exported EMAIL=myemailaddress, reran email-reminder, and the
  preferences window appeared with my email shown, and email alerts now
  working as expected.

  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/.email-
  reminders.

  Cheers, and thanks for a useful program.

To manage notifications about this bug go to:
https://bugs.launchpad.net/email-reminder/+bug/1983060/+subscriptions




More information about the Ubuntu-sponsors mailing list