-
Notifications
You must be signed in to change notification settings - Fork 163
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
editnew: Use raw body text instead of rendered version #1648
Open
guludo
wants to merge
1
commit into
pazz:master
Choose a base branch
from
guludo:nx/editnew-raw-text
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
Rendering mail content via mailcap makes sense when viewing email, but not when reusing the email for composing a new message, as it is desirable to rather edit the "original" content and, if mailcap rendering produces ANSI CSI escapes, the user would be left with a bunch of garbarge characters. Make sure that the editnew command do not render the body when creating the envelope.
Without having reviewed the code:
IS this what we actually want here?
I ask because IIRW, many mail clients sent out html mails with the plaintext alternative empty or not complete.
So by default I would (personally) be able to respond to the rendered variant.
With the current master version, you can respond to the plaintext alternative by first displaying the plaintext version in thread mode
(togglemimepart) and then replying...
thoughts?
Quoting Gustavo José de Sousa (2024-02-19 18:06:30)
… Rendering mail content via mailcap makes sense when viewing email, but not when
reusing the email for composing a new message, as it is desirable to rather
edit the "original" content and, if mailcap rendering produces ANSI CSI
escapes, the user would be left with a bunch of garbarge characters.
Make sure that the editnew command do not render the body when creating the
envelope.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
You can view, comment on, or merge this pull request online at:
#1648
Commit Summary
• fd4b284 editnew: Use raw body text instead of rendered version
File Changes
(3 files)
• M alot/commands/thread.py (2)
• M alot/db/message.py (4)
• M alot/db/utils.py (22)
Patch Links:
• https://github.com/pazz/alot/pull/1648.patch
• https://github.com/pazz/alot/pull/1648.diff
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.*Message ID:
***@***.***>
|
On Tue, Feb 20, 2024 at 8:30 AM Patrick Totzke ***@***.***> wrote:
Without having reviewed the code:
IS this what we actually want here?
I ask because IIRW, many mail clients sent out html mails with the plaintext alternative empty or not complete.
Maybe I missed thinking about other workflows. I have been using
editnew exclusively to edit saved drafts, which are saved with
text/plain content.
The issue for me is that, by rendering it with mailcap, I endup with
an email on the editor with a lot of ANSI CSI escape sequences.
So by default I would (personally) be able to respond to the rendered variant.
Hm. I find it surprising that editnew would be used to respond to email.
With the current master version, you can respond to the plaintext alternative by first displaying the plaintext version in thread mode
(togglemimepart) and then replying...
thoughts?
Assuming that editnew would also be used for email not originated from
alot, yeah, maybe we would need to allow the user to choose between
rendered and raw plain/text. Should we add an option to editnew?
…--
Gustavo Sousa
Quoting Gustavo José de Sousa (2024-02-19 18:06:30)
> Rendering mail content via mailcap makes sense when viewing email, but not when
> reusing the email for composing a new message, as it is desirable to rather
> edit the "original" content and, if mailcap rendering produces ANSI CSI
> escapes, the user would be left with a bunch of garbarge characters.
>
> Make sure that the editnew command do not render the body when creating the
> envelope.
>
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
>
> You can view, comment on, or merge this pull request online at:
>
> #1648
>
> Commit Summary
>
> • fd4b284 editnew: Use raw body text instead of rendered version
>
> File Changes
>
> (3 files)
>
> • M alot/commands/thread.py (2)
> • M alot/db/message.py (4)
> • M alot/db/utils.py (22)
>
> Patch Links:
>
> • https://github.com/pazz/alot/pull/1648.patch
> • https://github.com/pazz/alot/pull/1648.diff
>
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving this because you are subscribed to this thread.*Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I think adding an option to èditnew`and perhaps a config switch for the default value of that option would make sense here, yes. |
I'm going over old/stale commits towards making a release soonish. |
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.
Rendering mail content via mailcap makes sense when viewing email, but not when reusing the email for composing a new message, as it is desirable to rather edit the "original" content and, if mailcap rendering produces ANSI CSI escapes, the user would be left with a bunch of garbarge characters.
Make sure that the editnew command do not render the body when creating the envelope.