| James B. Hiller on Sat, 23 Mar 2002 23:06:51 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: Need help restoring an old feature |
> > Ok, here is the log file. Let me know if you want me now to
[snip]
>
> > ++ file /tmp/aps_header.3063
> > + set -- /tmp/aps_header.3063: news or mail text
> > + shift
> > + FILE_TYPE=news or mail text
>
> At least the file type is identified correctly, so we get
> the right style sheet for a2ps (which is "mail" in this
> case).
>
> > + eval a2ps -X iso1 -q -o - -M Letterdj '-b'\''Printed' by jhiller from
> > 'bassett'\''' --portrait -1 --no-header --borders=no -Email
> > ++ a2ps -X iso1 -q -o - -M Letterdj '-bPrinted by jhiller from bassett'
> > --portrait -1 --no-header --borders=no -Email
>
> The new options for a2ps in apsfilter-7.2.2 are:
>
> -g for graphical symbols
>
> --delegations=no to disable delegations
>
> -r when printing landscape
>
> --center-title='...' to display the file name
>
> --prologue=color to adjust the a2ps colors
> ...=gray for color, grayscale and
> ...=bw monochrome modes
>
>
> I'm afraid that "--prologue=bw" produces the same results
> for mail files as calling a2ps with no "--prologue"
> setting at all (as done in 5.2.0)...
>
> But apsfilter takes "color" as the default mode, thus
> adding "--prologue=color" to the a2ps command line.
> I think you should get the desired results if you use
> the "mono" command line to apsfilter (via "lpr -Zmono"
> or "lpr -Cmono"), or (more brutally) by setting the
> default color mode for your printer queue to "mono"
> in apsfilterrc.
Ok. So I took the choice of setting default color mode in apsfilterrc.
I first tried it in /usr/local/etc/apsfilter/apsfilterrc, and the change
had no noticeable effect (added a line COLOR="mono".
Without taking that entry out, I found the
/usr/local/etc/apsfilter/lp/aspfilterrc instance, with just the few
entries that get set by the SETUP script, and I changed COLOR="full" to
COLOR="mono". When I printed then, I got absolutely no pretty-printing
at all - just completely uniform text when printing the mail message.
Then, I changed the line in the lower-level file back to "full", and
the printing results did NOT go back to the way they were (the undesirable
bolding and shading and such). And then I removed the COLOR="mono" line
from the higher-level instance, and still no change - I keep getting
absolutely no pretty-printing.
Questions:
a. Am I adding/changing the correct entry in the correct way?
b. Am I doing it in the proper instance(s) of apsfilterrc?
c. What else could/should I be doing to get the desired effect
(pretty-printing of email headers a la 5.2.0)?
Also, for ref: the reason I did not choose to use the "lpr -Zmono / -Cmono"
approach is that I do not know how to set such a configuration change
in elm, my mail reader. I haven't tried doing an alias in my /etc/profile
yet for lpr - do you suppose that might help? Also, I haven't tried
issuing that variant on a file from the command line, because I don't
know how to manually print an email in the same way to elm would do
it, since I don't know how elm does it/what other options elm may be
piping to lpr internally.
Thx,
jbh