Repository navigation
#580 (part 4): a picture moves by cut and paste in a message and in a signature - #861
Draft
ragelfundionctrumnar wants to merge 4 commits into
Draft
ragelfundionctrumnar wants to merge 4 commits into
ragelfundionctrumnar wants to merge 4 commits into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
ragelfundionctrumnar
force-pushed
the
fix-580-part-4
branch
2 times, most recently
from
November 8, 2026 16:37
2a68799 to
84d584c
Compare
|
ragelfundionctrumnar
force-pushed
the
fix-580-part-4
branch
2 times, most recently
from
November 11, 2026 00:49
9dcba5c to
e7b8d5c
Compare
3 tasks done
ragelfundionctrumnar
force-pushed
the
fix-580-part-4
branch
3 times, most recently
from
November 14, 2026 18:10
b28c23f to
81c7065
Compare
…format.align
A paragraph of a message or a signature can be aligned left, centred or
right. For now that is the command format.align {"value": "left" |
"center" | "right", from?, to?}, for scripts, the command line and
agents; the ribbon's buttons and the keys come in part 2. It goes out as
text-align on the paragraph's <div>, inline, as Outlook writes it, and
comes back on a paste and when a draft reopens. A picture is aligned
with its line, the one above a signature's text included. A list item
is always left, so a nested list never inherits a centring and every
mail program shows the same thing; a blank line's alignment is not kept
by HTML. Clear All Formatting puts a paragraph back to left.
Also done on the way:
- Alignment is stored only when it isn't left, and read leniently: a
mailbox written before reads and writes as it did, and a value a later
version writes reads as left instead of costing a signature its text
and its pictures.
- The details hash takes alignment in only when it isn't left, so a
signature made from its details by 0.8.2 still reads as made from
them (pinned with hashes taken on main).
- Paragraph::with_runs takes the place of the three rebuilds that kept a
paragraph's kind and level and would have dropped its alignment:
removing a signature's picture, tidying a signature, and the text
beside a signature's lead picture. That last one now takes out only
the lead picture's first place, so a logo standing twice is sent twice.
- The HTML reader keeps a block's alignment (text-align, align=,
<center>; justify and start read as left, end as right), and marks
every block inside a list item as part of it (Block::in_item): a
paste reads a further paragraph, a heading, preformatted text and a
table's cells inside an item as left, like the item.
- Bullets, Numbering, Increase and Decrease Indent and Clear All
Formatting take the paragraphs a selection takes as alignment does: a
line selected with its break no longer makes the line after it a list
item, which would have cost it its alignment, nor moves it a level or
out of its list. Whether a selection is all centred (or left, or
right) passes its list items by, as aligning it does.
- format.align stays out of the Commands list, which runs a command
with no params.
- Parity checklist (246 of 330), ui-parity, gaps, docs/log.d rows, release notes
(the feature, and the fix to Bullets, Numbering and Clear All Formatting);
"Align Text" in the catalogues.
Human-reviewed, AI-assisted, nobody's mailbox harmed.
Align Left, Center and Align Right are in the Message tab's Basic Text group, in a column of their own after Bullets and Numbering (in the classic ribbon too, whose columns of three it leaves as they were). Each shows whether the selection goes its way, and one that is on puts the paragraph back to left, as Outlook's do; each tooltip says its own key, but in the browser, where the keys stay the browser's, the three name none. While the body of a message or File › Signatures' editor has the keyboard, Ctrl+L, Ctrl+E and Ctrl+R align the paragraph left, centred or right: there Ctrl+R no longer replies and Ctrl+E no longer goes to the search, and everywhere else they do as before. The editor draws a centred or right line where it will be sent, each wrapped row on its own and a picture alone on its line included, and the caret, a click, the selection and a picture's frame follow it. A plain-text message is drawn left, as it goes, and the buttons show no alignment there. In the browser the three keys stay the browser's; the buttons are the way. Also done on the way: - A paragraph is laid out left and each row moved after, to the pixel, rather than laid out with epaint's own alignment, which lines a row up by its first glyph that isn't a space and would have put a picture alone on a centred line its own width left of the middle. One function, with what it counts on in epaint 0.37.0 said beside it. - A wrapped row is centred without the space it was broken at, and the spaces it wraps after stand at the body's edge, where the caret goes through them, as in a word processor, their underline ends and a selection of them shows as a sliver; no row is moved past the edge to round it to a pixel. - A picture made as wide as the body leaves room for the character it stands as in the text: in a font that draws that character, epaint put the picture's room on an empty row and the picture left of the body, whichever way its line went. - A signature's picture being resized grows from its middle on a centred line and from its right on a right one; the sliver that shows a selected line break stays inside the body on a right line. - The ribbon's tooltips and the simplified row's menu look a key up by the control's name before its command's, so three buttons on one command say three keys. - Three icons drawn in code: lines of text, long and short by turns, standing at the left, the middle or the right. - ui-parity, gaps, roadmap, README, release note; "Align Left", "Center" and "Align Right" in the catalogues. Human-reviewed, AI-assisted, nobody's mailbox harmed.
…group File › Signatures formats a signature with the Message tab's Basic Text buttons. Under Font, Size, Colour, Highlight, Link and the picture controls, a row of Bold, Italic, Underline, Bullets, Numbering, Align Left, Center, Align Right, Decrease and Increase Indent and Clear All Formatting, drawn as the ribbon draws them, from the one list the ribbon's group is made from, so the two can't drift apart. Each shows what the signature's selection is, its tooltip names it with its own key where it has one, and after a click the keyboard is back in the signature, so typing goes on there. No command changed: the editing commands already act on the open signature. Also done on the way: - ribbon::basic_text(look) is the group's list; the Message tab builds its group from it, unchanged. - The bar's own B, I and U buttons give way to the group's, and the three tooltips they had with them. - Highlight joins Font, Size and Colour in the bar's first row, as the Message tab's Text Highlight Color, so every control of the group is on the bar; a highlight in a signature is saved and sent like one in a message. - After an editing command the keyboard goes back to the text it acted on: the open signature's while there is one (the bar's B, I and U used to leave it nowhere), asked for apart from a message's, which is asked for by its id (UCSLabs#286); HTML and Plain Text, which change the message alone, give it back to the message. A request waits for an editor that can take it, and a signature closed, or opened again, takes its request with it. - The control protocol lists File › Signatures' kinds: signature, signatureBody (there since signatures were edited in the composer's editor) and signatureBar. - ui-parity (the bar, and that its buttons have no name for a screen reader, as the ribbon's small ones), gaps, roadmap, README, release note, docs/log.d rows. Human-reviewed, AI-assisted, nobody's mailbox harmed.
…nd in a signature A picture in the text of a message, or of a signature open in File › Signatures, moves by cut and paste: Ctrl+X and Ctrl+V, or Cut and Paste on a right click, on the desktop. It comes back as it was, as wide and described, and goes out once. Pasted into another program, a copied picture shows as a frame with its description where it stood (before, it was simply missing), and its text says the description in brackets. Selected alone, it is that text in the primary selection of Linux and the BSDs. A paste into a plain-text message is the text a copy of it gives: lists with their markers, links with their address, a message's pictures as their descriptions where they stood (one of another message by its own). A signature's picture in a message is not taken along: it goes out only in its signature. In the browser the clipboard carries text, as before. Also done on the way: - A copy names each picture of the message's own (or of the open signature) by a cid: made of its id and a hash of its bytes, never the bytes. A paste shows a picture only when it is one that message or signature holds now with the same bytes, so a picture copied from another message is never swapped for this one's of the same id, and pasted HTML can at most show again a picture the owner already has there, and only where the reading pane shows it (never from a comment or hidden text, nor one its own tag or a style sheet hides or makes too small to see, nor one the end of what is read or the most blocks it makes cuts short): its reader asks about each attached picture it shows (mailcraft_html::parse_text_with), for a paste and a draft alike. - Each time the text shows a picture counts toward what it may hold (30 in a message, 10 in a signature): a paste or a new picture past that is refused, so that all of them cut can be pasted back (a paste counts what it would put in the text, not what it names past the most paragraphs a text holds); a new picture over a selected one takes its place while there is room; at the cap it is refused, like any new picture. A draft reopens showing its pictures at most that often, and so does a sent message opened again by Resend Message, which is read back the same way. - A picture of the message pasted or put in its signature is refused: the signature goes out with its own pictures only. - An OBJECT character in pasted HTML, as it is or as an entity, is never taken for a picture. - A picture cut alone is its description as text, so that the system hands the paste over at all. - The signature's note that pictures were left out is said only when the paste left out one the reading pane shows: one the signature does not hold, or one written into the HTML or on the web. - A signature lets go of pictures its text no longer holds when a picture is added or it is saved: one cut and pasted after that has to be added again (said in ui-parity). A picture added to the open signature never takes the id of one it held before, so that undo never shows it in that one's place; when one it held has the last id there is, a new picture is refused. - A picture is shown at least 3 pixels wide: a width of 1 or 2 given to it, or kept in a signature's file, is taken as 3. HTML that makes a picture narrower is read as hiding it, so a copy of it would come back without it; a draft that holds a picture that narrow (only a command could make one, before) reopens with it among its attachments, as the reading pane does not show it. - Text cut short by the most characters a text holds just before a picture keeps what fits of that paragraph (it was lost, in a draft reopened too); the picture past it stays among the draft's attachments instead of being let go of when it is saved. A reopened draft takes back only the attachment each picture came from, so another that shares its Content-ID stays. - The params of edit.copy, edit.cut, edit.paste and insert.picture, ui-parity, gaps, roadmap, mcp, release notes. Human-reviewed, AI-assisted, nobody's mailbox harmed.
ragelfundionctrumnar
force-pushed
the
fix-580-part-4
branch
from
November 15, 2026 03:55
81c7065 to
d1c302d
Compare
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Builds on #860
Closes #580
Part 4 of 4 for #580, the last. Sizing a signature's picture by its corner and aligning it with its line were already there or came with parts 1 and 2; this part moves it. Kept as a draft until part 3 is merged.
What changes for the person using MailCraft
[picture]without one).mainnow reads back the same way.RichText::deleterefuses with its own words, "that would put the picture into the signature, which keeps only its own pictures: move the picture first": hand-testing found that join, after which the picture was cut as nothing): the signature goes out with its own pictures only. The open signature says when a paste left out a picture the reading pane shows, and only then.A change to code already on
main: reopening a draft used its own scan of the draft's HTML for<img src="cid:…">(mark_pictures,tag_end,img_refincrates/mime/src/rich.rs). After #598 that scan and the reader disagree on what is shown (style sheets, and also comments, duplicate attributes, entities,<textarea>, the input budget). This PR removes the scan (and with it the bounds #866 gave it for AU3-22): the HTML reader asks about each attached picture it shows (mailcraft_html::parse_text_with), for a draft and a paste alike, within the reader's own input budget, and a picture it puts in a line is charged against the reader's link allowance (AU3-01) as any span is.crates/mime/tests/rich_mark_pictures_linear.rspasses unchanged through the new path. Our own drafts reopen as before.Known edges: a signature lets go of pictures its text no longer holds when a picture is added or it is saved, so one cut and pasted after that has to be added again (said in
ui-parity.md); a reopened draft still claims back only the message's own pictures, not its signature's, as onmain; in a malformed table, where the reading pane shows a picture from outside the cells above the table, the reader asks about pictures in the order they are written, which only decides which one a draft over 30 pictures leaves out.A question for you, not for this PR: other mail programs treat a signature, once it is put in a message, as ordinary text, so a Backspace at the start of a line after it simply joins that line onto it, picture and all. Here the signature in a message keeps its own pictures, apart from the message's, so this part refuses that join rather than let a picture of the message become the signature's and be lost. Should a signature in a message just be text once it is put in? Happy to open an issue for it.
What it deliberately leaves out: dragging a picture to move it. Cut and paste is what the issue asks for, and dragging needs a new pointer mode in the code #562, #563 and #564 touch, and can follow now that they have landed.
Reading order
crates/html/src/blocks.rs:parse_text_withandAttached. It reads the HTML once asparse_textdoes to count the picturesparsegives a block, then again asking the hook about each attached (cid:) picture among them, after every check the reading pane makes and after the samesettle(). A taken one stands in its line as a span (Span::picture); a refused one leaves nothing; past the count, nothing of any kind. An inline box (#597: designed mail keeps its buttons and columns side by side (inline-block) #640) is decided as the first pass decided it.parse_text_own_withis the same for the owner's own HTML (a draft), its links judged asparse_text_ownjudges them (#636: Insert Link accepts any address but javascript:, vbscript:, data: and file: #659); a paste keeps the reader's. Without a hook (parse,parse_text, every existing caller) nothing changes.crates/mime/src/rich.rs:from_html_with_pictures(and…_and_others, which also counts the pictures the reader shows that are not attached) on that hook; the scan it replaces is gone.crates/engine/src/cmd/format.rs:plain_text(part of the text being edited as a copy has it, a picture as its description in brackets; the clipboard's text and the primary selection both come from it),held(whose pictures the text shows: the open signature's,sig-, else the message's own,pic-, never its signature's),picture_cid(pic-<id>.<fp>@mailcraft.invalid,sig-…likewise) andfingerprint(16 hex digits of an FNV-1a 64 over the picture's bytes, no dependency).clipboard()writes the HTML withto_html_withand the text withto_plain_with.paste(): the claim names only the holder's pictures; the room, the refusal of a message picture in its signature and the note are decided from the result; a plain-text message gets the text with each picture's description. The params text ofedit.copy,edit.cutandedit.paste.crates/engine/src/cmd/picture.rsandcompose.rs:insert.picturecounts throughroom, is refused in the message's signature, and lets a picture shown only in the selection it replaces make way; a draft (and Resend Message, throughmain's sharedreopened) reopens through the same reader, showing its pictures at mostMAX_PICTUREStimes and taking back only the attachments whose pictures the text still shows, each the one it was taken from, by index (another may share its cid);picture_cidsgives each picture of the text one Content-ID for the HTML and its part alike, with a-<n>added when an attachment or the quoted original already has that name;saidis the one description of a picture in plain text,picturewhen the plain text would keep nothing of it.crates/model/src/signature.rs,crates/engine/src/session.rs,crates/engine/src/cmd/signature.rs:next_picture_id(checked_add),hold_picture(.., least),SignatureEdit::newandnext_picture, sosignature.picture.addcounts each time the text shows a picture and never gives an id twice.crates/model/src/pictures.rs:MIN_SHOWN_WIDTH = 3, used by both picture sets.ui-parity.md,gaps.md,ROADMAP.md(rows asdocs/log.d/*/580-4.md), a revision row indocs/mcp.mdfor the changed params (edit.copy,edit.cut,edit.paste,insert.picture,signature.picture.set), the fourth line ofpackaging/release-notes.d/new/580.md, and the new refusals in the six catalogue files.How it was checked
New tests, each seen failing first:
crates/engine/src/cmd/format_tests.rs:cutting_a_picture_alone_answers_its_description_as_text_and_pasting_it_back_moves_it_and_it_is_sent_once,a_picture_copied_from_another_message_with_the_same_id_is_not_replaced_by_this_ones,a_pasted_img_naming_a_picture_the_message_does_not_hold_is_left_out,a_signatures_picture_cut_from_the_message_is_not_pasted_back_and_the_mail_is_sent_whole,a_line_with_a_picture_is_not_joined_onto_the_signature_above_it_and_the_picture_still_moves,a_picture_alone_pasted_into_a_plain_message_gives_its_description,a_picture_pasted_with_text_into_a_plain_message_is_its_description_where_it_stood,a_paste_naming_a_held_picture_more_often_than_a_message_holds_is_refused,a_picture_pasted_as_often_as_a_message_holds_is_cut_and_pasted_back_whole_and_no_more_go_in,a_new_picture_over_one_selected_when_the_message_shows_as_many_as_it_holds_takes_its_place_and_one_put_at_a_place_is_refused,a_picture_of_the_message_pasted_or_put_in_its_signature_is_refused_and_the_mail_is_sent_and_kept_whole,a_new_picture_over_one_selected_when_the_message_holds_as_many_different_pictures_as_it_may_is_refused_and_changes_nothing,a_picture_cut_from_a_centred_line_and_pasted_inside_a_right_aligned_one_leaves_it_right,a_paste_whose_pictures_come_past_the_most_paragraphs_a_text_holds_is_not_refused_and_shows_none_of_them,a_picture_copied_from_another_message_with_text_around_it_is_its_description_where_it_stood_in_a_plain_message,a_list_and_a_link_pasted_into_a_plain_message_are_the_text_a_copy_of_them_gives,a_pasted_img_one_or_two_pixels_wide_is_left_out_as_the_reading_pane_hides_it,a_picture_described_by_a_space_alone_pasted_into_a_plain_message_is_said_as_a_picture,a_picture_described_by_an_object_character_alone_cut_alone_is_said_as_a_picture,a_paste_into_a_plain_message_whose_picture_is_past_the_most_characters_keeps_the_text_before_it.crates/engine/src/cmd/picture_tests.rs:a_hostile_paste_cannot_bring_a_picture_in_by_its_cid,a_paste_cannot_make_a_picture_by_writing_its_mark_as_an_entity,a_draft_naming_its_picture_more_often_than_a_message_holds_opens_with_as_many_as_it_holds,a_picture_put_in_one_or_two_pixels_wide_is_cut_and_pasted_back_and_its_draft_reopens_with_it,a_draft_whose_picture_is_written_one_or_two_pixels_wide_reopens_with_it_among_the_attachments,a_draft_whose_picture_comes_past_the_most_characters_a_text_holds_keeps_it_among_the_attachments,a_draft_with_another_attachment_named_as_its_picture_is_reopened_and_saved_with_both,a_draft_naming_its_picture_by_another_cid_shows_it_only_by_its_own,a_draft_taking_back_one_of_two_pictures_of_the_same_id_keeps_the_other_as_an_attachment,a_draft_whose_quote_shows_a_picture_by_the_name_a_save_gives_its_own_keeps_both,a_picture_the_quote_names_by_an_uppercase_scheme_keeps_its_name_through_a_save,a_new_picture_over_one_selected_when_the_messages_pictures_weigh_as_much_as_they_may_is_refused_and_changes_nothing,a_draft_whose_attachments_take_many_of_the_names_its_picture_could_have_is_saved_with_a_free_one,a_draft_whose_attachments_take_a_hundred_thousand_of_the_names_its_picture_could_have_is_saved_in_a_moment.crates/engine/src/cmd/signature_tests.rs:a_picture_of_the_open_signature_is_moved_by_cut_and_paste_and_saved_where_it_went,a_pasted_img_the_signature_does_not_hold_is_left_out_and_said,a_picture_pasted_as_often_as_the_open_signature_holds_is_cut_and_pasted_back_whole_and_no_more_go_in,a_new_picture_over_one_selected_when_the_open_signature_shows_as_many_as_it_holds_takes_its_place_and_one_put_at_a_place_is_refused,a_new_picture_over_one_selected_when_the_open_signature_holds_as_many_different_pictures_as_it_may_is_refused_and_changes_nothing,a_new_picture_over_one_selected_when_the_open_signatures_pictures_weigh_as_much_as_they_may_is_refused_and_changes_nothing,a_copy_of_a_picture_hidden_in_what_is_pasted_takes_no_room_in_the_open_signature,a_new_picture_over_the_one_selected_never_takes_the_id_of_one_the_open_signature_held_so_undo_never_shows_it_in_that_ones_place,a_picture_of_the_open_signature_one_or_two_pixels_wide_is_cut_and_pasted_back,a_stored_signature_whose_picture_has_the_last_id_there_is_refuses_a_new_picture_rather_than_give_it_that_id_again,the_open_signature_says_pictures_were_left_out_only_when_the_reader_shows_one_it_left_out,the_open_signature_says_nothing_of_a_picture_past_the_most_blocks_the_reading_pane_shows,the_open_signature_says_a_picture_was_left_out_when_the_paste_is_nothing_else,the_open_signature_says_a_picture_was_left_out_past_the_most_paragraphs_a_text_holds,a_copy_of_the_signatures_picture_in_a_message_names_none_of_the_messages_pictures,the_signatures_picture_in_a_message_takes_none_of_the_room_of_the_messages_pictures,a_picture_the_open_signature_replaced_is_brought_back_by_undo_and_kept_by_a_save.crates/html/src/blocks/tests.rs:a_hook_puts_the_attached_pictures_it_takes_in_their_line_and_nothing_for_the_others,a_hook_is_asked_only_about_the_attached_pictures_parse_gives_a_block_before_the_cap,the_hook_is_asked_about_the_attached_pictures_parse_shows_and_gives_the_others_parse_gives(a differential test over a corpus: tables and implied tables, lists, quotes, links, pictures hidden by place, tag and style sheet, the block cap and the input limit, with every pattern of answers), the same as a property over generated tag soup,a_box_on_a_line_after_a_picture_taken_in_a_list_item_does_not_keep_the_hook_from_a_picture_parse_shows,a_picture_taken_in_front_of_a_box_on_a_line_stands_in_the_text,a_picture_one_or_two_pixels_wide_is_never_asked_about_as_parse_shows_none.crates/mime/src/rich/tests.rs:an_object_character_written_as_an_entity_is_never_a_picture_and_a_claim_shows_one_at_most,an_object_character_written_as_an_entity_or_as_it_is_leaves_the_text_around_it_and_the_pictures_where_they_were,an_img_never_closed_is_read_in_bounded_time_by_both_reads,a_picture_is_claimed_only_where_it_is_shown_and_not_when_the_end_of_what_is_read_cuts_its_tag_short,a_picture_hidden_by_its_own_tag_or_too_small_to_see_is_not_claimed_and_leaves_room_for_one_shown,a_picture_a_style_sheet_hides_by_its_own_tag_or_makes_too_small_to_see_is_not_claimed_and_leaves_room_for_one_shown,a_style_sheet_rule_that_depends_on_a_pictures_place_acts_on_the_paste_as_on_the_original,a_picture_is_claimed_where_the_style_sheet_and_its_own_style_together_show_it,a_tag_naming_two_pictures_is_the_first_as_the_reading_pane_shows_it,a_pictures_address_written_with_a_character_reference_is_read_as_the_reading_pane_reads_it,a_picture_after_a_comment_holding_an_img_and_a_stray_quote_is_claimed,a_picture_a_style_sheet_hides_by_its_address_or_its_missing_description_is_not_claimed,a_picture_hidden_by_its_last_attribute_the_reader_keeps_is_not_claimed,an_img_in_a_textarea_is_its_text_and_nothing_else,a_picture_a_style_sheet_hides_by_a_class_with_an_object_character_is_not_claimed,a_picture_past_the_input_read_is_not_claimed_however_the_text_before_it_is_written,a_picture_in_text_of_no_size_is_claimed_as_the_reading_pane_shows_it,a_picture_not_taken_ends_a_table_a_cell_implied_as_the_reading_pane_ends_it.crates/model/src/rich/tests.rs:a_picture_past_the_most_characters_leaves_the_text_of_its_paragraph_before_it.crates/ui-egui/src/compose/picture_tests.rs:ctrl_x_and_ctrl_v_move_a_picture_in_the_body_and_in_a_signature,ctrl_x_of_the_break_that_would_join_a_picture_onto_the_signature_is_refused_and_says_why(the editor's Cut and Copy now say why when refused).crates/ui-egui/src/compose/tests/primary.rs:a_picture_selected_alone_in_the_body_settles_as_the_text_a_copy_gives,a_picture_selected_alone_in_a_signature_settles_as_the_text_a_copy_gives.cargo xtask cipasses on this branch (on parts 1 to 3, onmainat 049c16b), all 12 steps.Reviewed by a second model (Codex) over six rounds, once more over the whole stack of four, and again after each rebase onto
main: with #558: text selected in a message goes to the primary selection, and a middle click in the body pastes it #564 (a picture selected alone left the primary selection stale), and with Mail styled by its style sheet comes out plain, and text its sender hid that way shows #598, whose style sheets made the old scan and the reader disagree; that took several rounds and replaced the scan with the reader's hook, until it found nothing more. Rebased again onto today'smain, where reopening a draft moved intoreopened(shared with Resend Message) and the HTML signature goes into the draft (An HTML signature is shown as a plain-text copy in the message being written #614): reviewed again over the rebase (Resend Message, several messages being written, the HTML signature, find and replace and Format Painter over a picture), clean.Hand-tested on Linux (GNOME, Wayland; the clipboard through XWayland) with
--sample: in an HTML message, a picture put in by Insert › Pictures, selected alone, cut and pasted elsewhere with Ctrl+X and Ctrl+V and with Cut and Paste on a right click; the draft saved and reopened with the picture where it went, and moved again; a picture on a line after the signature, where Backspace before it is refused with the box saying why; in File › Signatures, the logo cut and pasted within the signature. Not tried by hand: X11, a paste into LibreOffice or a plain editor, and Resend Message (covered by the tests above).cargo xtask cipasses"Allow edits by maintainers" is ticked
I have signed the CLA
Human-reviewed, AI-assisted, nobody's mailbox harmed.