Re: dist with -nowhatnowproc
Ken Hornstein <[email protected]> Wed, 01 Oct 2025 21:40:17 -0400
| Newsgroups | gmane.mail.nmh.devel |
|---|---|
| Message-ID | <[email protected]> |
>Michael Richardson <[email protected]> wrote: > > So, new "whatnowproc" is $HOME/bin/senddraft, which contains "send -draft" > > and I think this works for me. > >So, no. >I think that it only works if a draftfile is provided on the cmdline. >And when used as a whatnowproc, the draftfile is implicit? > >I poked at uip/send.c to understand, seeing: > > case DRAFTSW: > msgs[msgp++] = draft; > continue; > >I guess "draft" is a global? Huh, yes. It's in sbr/globals.h. sbr/globals.c shows: char *draft = "draft"; A lot of that metadata is communicated via environment variables; see what_now() in uip/whatnowproc.c --Ken