• Mutt internal command to write the entire email message

    From cjsmall@21:1/5 to All on Thu Oct 27 14:02:32 2022
    Now that I have a Christian Ebert's filter program to display HTML messages with their embedded images, I've written a macro to filter these messages
    from the index and pager menus as follows:

    macro index A |viewhtmlmsg\n
    macro pager A |viewhtmlmsg\n

    This works great.

    I'd like to add a macro that does the same thing from the attach page, but
    the default is to only pipe out the selected attachment. I'm looking for a command like the non-existent <save> or <write> that sends the entire
    message to stdout regardless of which page you are on. I've tried <save-message> but it prompts for a location.

    Is there another command that does the job or is there a way to instruct <save-message> to write to stdout? I even tried:

    <save-message>/dev/stdout |viewhtmlmsg\n

    but this results in a "permission denied" error. Any thoughts?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tavis Ormandy@21:1/5 to cjsmall on Fri Oct 28 00:27:53 2022
    On 2022-10-27, cjsmall wrote:
    Now that I have a Christian Ebert's filter program to display HTML messages with their embedded images, I've written a macro to filter these messages from the index and pager menus as follows:

    macro index A |viewhtmlmsg\n
    macro pager A |viewhtmlmsg\n

    This works great.

    I'd like to add a macro that does the same thing from the attach page, but the default is to only pipe out the selected attachment. I'm looking for a command like the non-existent <save> or <write> that sends the entire
    message to stdout regardless of which page you are on. I've tried
    <save-message> but it prompts for a location.

    Is there another command that does the job or is there a way to instruct
    <save-message> to write to stdout? I even tried:


    Hmm, I guess you have two options, you could do something like this:

    macro attach A "<save-message>/tmp/viewmsg<Enter><shell-escape>viewhtmlmsg /tmp/viewmsg<Enter>"

    If that's not really what you were hoping for, I think your only option
    is to leave the attachment screen:

    macro attach A "<exit><pipe-message>viewmsg<Enter>"

    Although you could go back when you're done...

    macro attach A "<exit><pipe-message>viewmsg<Enter><view-attachments>"

    Tavis.

    --
    _o) $ lynx lock.cmpxchg8b.com
    /\\ _o) _o) $ finger taviso@sdf.org
    _\_V _( ) _( ) @taviso

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From cjsmall@21:1/5 to Tavis Ormandy on Fri Oct 28 11:13:26 2022
    On Thursday, October 27, 2022 at 5:27:55 PM UTC-7, Tavis Ormandy wrote:
    On 2022-10-27, cjsmall wrote:
    Now that I have a Christian Ebert's filter program to display HTML messages with their embedded images, I've written a macro to filter these messages from the index and pager menus as follows:

    macro index A |viewhtmlmsg\n
    macro pager A |viewhtmlmsg\n

    This works great.

    I'd like to add a macro that does the same thing from the attach page, but the default is to only pipe out the selected attachment. I'm looking for a command like the non-existent <save> or <write> that sends the entire message to stdout regardless of which page you are on. I've tried
    <save-message> but it prompts for a location.

    Is there another command that does the job or is there a way to instruct
    <save-message> to write to stdout? I even tried:

    Hmm, I guess you have two options, you could do something like this:

    macro attach A "<save-message>/tmp/viewmsg<Enter><shell-escape>viewhtmlmsg /tmp/viewmsg<Enter>"

    If that's not really what you were hoping for, I think your only option
    is to leave the attachment screen:

    macro attach A "<exit><pipe-message>viewmsg<Enter>"

    Although you could go back when you're done...

    macro attach A "<exit><pipe-message>viewmsg<Enter><view-attachments>"

    Tavis.

    Two great suggestions Tavis. I like the exit the attach page idea since it doesn't create a temporary file that needs to be cleaned up.

    Thank you for helping me see outside the box! :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)