Re: Forwarding inline html mails
"inwit" writes: > I usually receive mails in html (sigh), and sometimes I need to forward them. > However, when doing so with notmuch-emacs, the recipient of the forwarded > message sees the html code instead of a readable message. I know I can > forward the message as an attachment, but is there a way to forward it inline > in a readable manner? Maybe stripping the html before sending, I guess, but I > don't know how to do it. I've searched and I can't find anything in the > list's archives. Has someone experienced this issue and maybe found a > solution? One option would be to use bounce (bound to b) instead of forward, if that works for you. It will not change the 'From:' header , so that might confuse some recipients. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Forwarding inline html mails
On Sat Dec 4, 2021 at 4:42 PM CET, David Bremner wrote: > One option would be to use bounce (bound to b) instead of forward, if that > works for you. It will not change the 'From:' header , so that might confuse > some recipients. Thanks, David. Unfortunately, that won't do. There must be a way to render the html in plain text and then inserting it inline in the forwarded message. Or maybe another approach that I don't see at the moment. If there's no other alternative, I would be even willing to send that single message in html (ugh), but I don't know if that would be possible with notmuch. Regards, > > d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Forwarding inline html mails
"inwit" writes: > On Sat Dec 4, 2021 at 4:42 PM CET, David Bremner wrote: > >> One option would be to use bounce (bound to b) instead of forward, if that >> works for you. It will not change the 'From:' header , so that might confuse >> some recipients. > Thanks, David. Unfortunately, that won't do. > > There must be a way to render the html in plain text and then inserting it > inline in the forwarded message. Or maybe another approach that I don't see at > the moment. If there's no other alternative, I would be even willing to send > that > single message in html (ugh), but I don't know if that would be possible with > notmuch. > > Regards, OK. I suspect the messages you are having trouble with are ill-formed (or the recipients mail client is not good at MIME). I just tried forwarding an HTML only message to myself and the HTML inside is rendered fine (in notmuch-emacs). If you can find a sharable message that is problematic for you, that might help understand the problem better. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Forwarding inline html mails
On Sat Dec 4, 2021 at 8:39 PM CET, martin f krafft wrote: > I use > [htmldump](https://git.madduck.net/etc/mutt.git/blob/HEAD:/.config/mutt/htmldump) > to render HTML mail to markdown, and then mutt's new multipart/alternative > handling and [this > script](https://git.madduck.net/etc/mutt.git/blob/HEAD:/.config/mutt/markdown2html) > to turn markdown back into HTML on sending, and this will also take care of > forwarded emails to a suitable degree. Thanks! However, if I understood it correctly, this means sending mail in html, and I was hoping to forward them in plain text, by stripping html and leaving a legible txt form (such as the one displayed in notmuch-show). Regards, > > -- > @martinkrafft | https://matrix.to/#/#madduck:madduck.net > > "when a woman marries again it is because she detested her first > husband. > when a man marries again it is because he adored his first wife. > women try their luck; men risk theirs." > -- oscar wilde > > spamtraps: madduck.bo...@madduck.net ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Forwarding inline html mails
On Sat Dec 4, 2021 at 8:05 PM CET, David Bremner wrote: > OK. I suspect the messages you are having trouble with are ill-formed (or the > recipients mail client is not good at MIME). I just tried forwarding an HTML > only message to myself and the HTML inside is rendered fine (in > notmuch-emacs). I've done some more testing and now the situation is a bit clearer. At work I have to deal with an Office365 mail server. Then, if I fw an html-only message, the webmail interface of the receiver shows the fw'd mail as an attachment and my email like this: ``` (whatever comment I had added to the message) Start of forwarded message From: (sender) To: (me) Subject: (whatever) Date: Thu, 2 Dec 2021 18:36:14 +0100 ``` This is of course confusing because the receiver sees an empty message and might not expect an attachment. I thought I could solve this by adding `disposition=inline` to the <#part ...> line, but unfortunately this doesn't work either. Any other ideas are more than welcome. Regards, > If you can find a sharable message > that is problematic for you, that might help understand the problem > better. Any html-only message is displayed (fw'd?) as an attachment. Regards, > > ___ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-le...@notmuchmail.org ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Forwarding inline html mails
"inwit" writes: > > >> If you can find a sharable message >> that is problematic for you, that might help understand the problem >> better. > Any html-only message is displayed (fw'd?) as an attachment. > In fact any message is forwarded as an attachment, whether html or not. So I'm wondering if that's the underlying issue for you. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Forwarding inline html mails
David Bremner writes: > "inwit" writes: >> >> >>> If you can find a sharable message >>> that is problematic for you, that might help understand the problem >>> better. >> Any html-only message is displayed (fw'd?) as an attachment. >> > > In fact any message is forwarded as an attachment, whether html or not. > > So I'm wondering if that's the underlying issue for you. > > d Apologies, I spoke too quickly, it rather depends on message-forward-make-body, which in turn inspects the variable message-forward-as-mime, so you may want to try setting that to nil (perhaps in a wrapper function). d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Forwarding inline html mails
"inwit" writes: > Thanks! However, if I understood it correctly, this means sending mail in > html, > and I was hoping to forward them in plain text, by stripping html and leaving > a > legible txt form (such as the one displayed in notmuch-show). I guess we could quibble about whether that counts as forwarding the message, but you probably don't care what the email purists think. The good news is that reply already sort works like you want (rendering html to text). At least for simple cases maybe start with the elisp code for notmuch-show-reply (or notmuch-mua-new-reply) and either hack that or hack the output using e.g. keyboard macros to make things like you want. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: Forwarding inline html mails
On Wed Dec 8, 2021 at 1:51 AM CET, David Bremner wrote: > I guess we could quibble about whether that counts as forwarding the > message, but you probably don't care what the email purists think. Absolutely right. > The good news is that reply already sort works like you want (rendering html > to text). At least for simple cases maybe start with the elisp code for > notmuch-show-reply (or notmuch-mua-new-reply) and either hack that or hack the > output using e.g. keyboard macros to make things like you want. I'll have a look, although in a first quick browse I think for now I'll be using reply instead of fw in such cases (it works ok). My knowledge of elisp is not enough for anything else thus far. Thanks!! ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org