Open Bug 1683064 Opened 5 years ago Updated 5 years ago

Non-pillified invalid/incomplete/placeholder addresses not saved to draft when saving composition

Categories

(Thunderbird :: Message Compose Window, defect, P3)

Tracking

(Not tracked)

People

(Reporter: gravsten, Unassigned)

References

Details

(Keywords: ux-mode-error, Whiteboard: [datalossy])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

Steps to reproduce:

I use an addon for my email list, which translates codes (e.g. "{{Email}}") to the corresponding value.
Obviously {{Email}} isn't a valid email address, but until now this had no side effect.

Actual results:

Version 78 changed previous behaviour : now, such an invalid email address is omitted when saving the email to Draft folder ("Save" button).
Strangely, this problem does not occur when the email is saved automatically to Draft after some period of time.

Expected results:

As before, the email should be saved as-is to Draft folder ("Save" button), even with an invalid email address.

STR

  1. compose new msg
  2. type an invalid/incomplete/placeholder address without @ into To: (without confirming that in any way, it must not be pillified), e.g.:
  • '{{Email}}' as an addon placeholder, or
  • 'John' as a recipient placeholder (email address not at hand, but let me type him in so that I won't forget).
  1. Save draft (Ctrl+S) whilst address has not been pillified yet, and look at draft in msg reader wrt To: address

Actual

  • non-pillified invalid/placeholder recipient like '{{Email}}' or 'John' has not been saved in the To: field of the draft message.
  • Closing the message after saving will silently discard any "invalid" (placeholder) recipients.

Expected

I think it's a fair expectation that even incomplete/invalid/placeholder addresses which have not been pillified yet must be saved.
If that requires that we pillify them before saving, then so be it, but we need to save them. (Worse if we're inconsistent as reporter claims and Auto-save will actually do better than manual save).

By comparison, you wouldn't want Word to skip your unfished words when saving, right?
Excel will also save an unfinished formula which you're still editing.
Imho, saving must always be "save as-is".

Alex? Maybe the behaviour has changed already with some of the related bugs recently? (see next comment)

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(alessandro)
Summary: Message can't be saved to Draft folder if email address is invalid, e.g. {{Email}} → Non-pillified invalid/incomplete/placeholder addresses not saved to draft when saving composition

Related bugs:
Bug 1674054 - All non-pillified recipients (pasted, typed) silently discarded when clicking [Send] button directly
Bug 1679848 - Send button remains disabled in spite of valid (non-pillified) recipient address(es) and no UI clues why

See Also: → 1674054, 1679848
Keywords: ux-mode-error

Not fixed by the related bugs, this issue is still present.
Indeed, we should save all the written values, pillified or not.

Flags: needinfo?(alessandro)

Hi Gravsten, you're quite right! This doesn't seem right.

Fortunately, there's a workaround to save invalid/placeholder addresses to a draft:

  • Press Enter or Tab after typing your placeholder address (input blur will not do the trick), which will change your placeholder into a recipient item (aka pill). Save now.
  • Draft will have the recipient placeholder as expected. It will show as To: {{Email}} < >, but the actual source code just has To: {{Email}}. However, when you edit the draft, it will go back to {{Email}} < >, so you'd have to correct that manually (press Enter on selected pill to edit) if you need it correct in composition. The < > are never saved to the draft.

So if {{Email}} is correctly saved in draft, is that sufficient for your addon to do the trick? What's the name of the addon?

So here's how "pillified" needs to look in your composition.

Attachment #9193797 - Attachment description: Screenshot 1: Workaround: Pillify recipient placeholder before saving as draft → Screenshot 1: Draft after using workaround: Pillify recipient placeholder before saving
Severity: -- → S3
Priority: -- → P3
Whiteboard: [datalossy]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: