🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.elm
Article #5328

Problems with elm 'print' command

#5328
From: John Trinterud
Date: Fri, 15 Dec 1989 00:37
71 lines
2362 bytes
Perhaps this group can assist me in an elm [bug/feature] on the
print command. (Take pity on me, I'm a new elm user, and new to
this group :-) )

Environment is a Compaq 25MHZ machine running ISC UNIX, ksh is standard shell
(/bin/sh is ksh)

I use 'calendar' (/usr/bin/calendar) as delivered, box stock SYS V. A typical
entry in my home directory calendar file might look like:

12/14/89	Meeting on MSAP at 1000

Calendar (calendar -) runs via root's cron every night, resulting in mail
that looks like (when displayed)

--------------------

From root Thurs Dec 14 01:00 PST 1989
[one blank line]
12/14/89	Meeting on MSAP at 1000

--------------------

OK so far...

Now, type 'p' for print, and I get two lines:

--------------------

From: root
Date: Thu Dec 14 01:00 PST 1989

and no message!!

--------------------

We've played with this for several days, finally took the brute force approach
and changed the /usr/bin/calendar program to read

/usr/lbin/elm -s "calendar reminder" ${_user} < /tmp/calendar.$$

and it works, with elm adding all sorts of header lines to each message.

You can also get mail messages from uuto (telling you a file has arrived)
to fail in the same way. Since calendar and uuto seem to have /bin/mail
'coded' into them, do we have an incompatibility between elm and /bin/mail
headers??

My elmrc file has:

print = cat %s | lp -dps
weed = ON
weedout = "To:" "Status:" "Path:" "Received:" "Date"
          "Message-Id" "*end-of-user-headers"


Hope I've explained this correctly, anyone have any ideas??

PS: BTW, why does 'weedout' only work to the screen? Seems if you don't
want to see it, you wouldn't want to save these header lines to a
mail file either??



Thanks for any assistance

John Trinterud
-- 
         jrt@PacBell.COM            "If you want to feel really kneaded, and
   {backbones}!pacbell!pt06a!john    love to roll in the dough, make bread !"
Technical Details
Message-ID: <6572@pbhyf.PacBell.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!amdahl!pacbell!pbhyf!jrt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!amdahl!pacbell!pbhyf!jrt
From: jrt@PacBell.COM (John Trinterud)
Newsgroups: comp.mail.elm
Subject: Problems with elm 'print' command
Keywords: print command calendar , calendar entries
Message-ID: <6572@pbhyf.PacBell.COM>
Date: 15 Dec 89 00:37:16 GMT
Organization: Pacific * Bell, San Ramon, CA
Lines: 71