Hello Stephen, all.

Steffen Nurpmeso wrote in
 <20250115235039.awV6vDzM@steffen%sdaoden.eu>:
 |Stephen Isard wrote in
 | <[email protected]>:
 ||When I try to replyall to a message that I have received, my own address \
 ||isn't listed among the recipients for my reply.  Is there a command \
 ||or variable setting that would get me included in the recipient list?

I came up with this:

  set norecord
  set mta=test

  define o-c-l {
    \dig - h show Mailx-Command
    \if $^0 -eq 212 && [ $^2 == Lreply || $^2 == Reply || $^2 == reply ]
      \dig - h ins cc?single budy chew <hi@here>
      \dig - h ins cc you@there , we@here
    \en
  }

  define o-c-s {
    \read ver
    \ec '~^h sho Mailx-Command'
    \read x
    \read y
    \if $y == Lreply || $y == Reply || $y == reply
      \ec '~^h ins cc?single "budy chew <hi@here>"'
      \ec '~^h ins cc "you@there , we@here"'
    \en
  }

  \if $version-hexnum -ge 0x0E00A000 || \
      [ $version-hexnum -ge 0x0E009018 && $features =% ,+devel, ]
    \se on-compose-leave=o-c-l
  \el
    \se on-compose-splice=o-c-s
  \en

This works with v14.9.25 (though the splice thing above is very
silly and fragile, no error checking and such...), as well as with
the development version from [next], with certain differences
(*fullnames* variable (not) honoured..), the latter first:

  #?0|kent:src$ MAILRC=/tmp/t.rc \
    s-nail -:u -R -S escape=! -f ~/sec.arena/mail/nail
  s-nail version v14.9.25-636-gc7c14cee09-dirty.  Type `?' for help
  /home/steffen/sec.arena/mail/nail: 2 messages 2 new [Read-only]
  ▸R  1 ksaexz5ryd@snkmail 2025-01-15 23:56   56/2458  [S-mailx] Include self 
in reply
   R  2 [email protected] 2025-01-16 00:50   69/2902  Re: [S-mailx] Include 
self in reply
  ? r
  To: [email protected] [email protected]
  Subject: Re: [S-mailx] Include self in reply
  
  !.
  From steffen Thu Jan 16 18:36:14 2025
  Date: Thu, 16 Jan 2025 18:36:14 +0100
  To: [email protected], [email protected]
  Cc: hi@here, you@there, we@here
  Subject: Re: [S-mailx] Include self in reply
  In-Reply-To: <[email protected]>
  References: <[email protected]>
  User-Agent: s-nail v14.9.25-636-gc7c14cee09-dirty
  
  
  ? xit


  #?0|kent:src$ MAILRC=/tmp/t.rc \
    mailx -:u -R -S escape=! -f ~/sec.arena/mail/nail
  mailx version v14.9.25.  Type `?' for help
  /home/steffen/sec.arena/mail/nail: 2 messages 2 new [Read-only]
  ▸R  1 ksaexz5ryd@snkmail 2025-01-15 23:56   56/2458  [S-mailx] Include self 
in reply
   R  2 [email protected] 2025-01-16 00:50   69/2902  Re: [S-mailx] Include 
self in reply
  ? r
  To: [email protected] [email protected]
  Subject: Re: [S-mailx] Include self in reply
  
  !.
  From steffen Thu Jan 16 18:36:22 2025
  Date: Thu, 16 Jan 2025 18:36:22 +0100
  To: [email protected], [email protected]
  Cc: budy chew <hi@here>, you@there, we@here
  Subject: Re: [S-mailx] Include self in reply
  In-Reply-To: <[email protected]>
  References: <[email protected]>
  User-Agent: mailx v14.9.25
  
  
  ? xit
  #?0|kent:src$

Hope this helps, (soon coming back to the MUA),
Ciao o/

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)
|
|In Fall and Winter, feel "The Dropbear Bard"s pint(er).
|
|The banded bear
|without a care,
|Banged on himself for e'er and e'er
|
|Farewell, dear collar bear

Reply via email to