Re: My print command cannot use "read -p"

2016-04-22 Thread cs
On 22Apr2016 15:04, Jon LaBadie wrote: On Fri, Apr 22, 2016 at 12:34:48AM -0700, David Champion wrote: * On 21 Apr 2016, Jon LaBadie wrote: > Unless it has changed recently, bash runs redirected read > commands in a sub-process. Thus the variable fn would not > get set in the main process. I

Re: My print command cannot use "read -p"

2016-04-22 Thread Jon LaBadie
On Fri, Apr 22, 2016 at 12:34:48AM -0700, David Champion wrote: > * On 21 Apr 2016, Jon LaBadie wrote: > > > > Unless it has changed recently, bash runs redirected read > > commands in a sub-process. Thus the variable fn would not > > get set in the main process. > > I haven't run into this (th

Re: My print command cannot use "read -p"

2016-04-22 Thread David Champion
* On 21 Apr 2016, Jon LaBadie wrote: > > Unless it has changed recently, bash runs redirected read > commands in a sub-process. Thus the variable fn would not > get set in the main process. I haven't run into this (that I recall) with regular input redirection. It does happen with piped input r

Re: My print command cannot use "read -p"

2016-04-21 Thread Jon LaBadie
On Thu, Apr 21, 2016 at 10:00:08PM -0700, David Champion wrote: > * On 21 Apr 2016, Xu Wang wrote: > > Hi, > > > > I would like to have a print command that takes input from the user. > > But mutt pipes the message to the print command so I guess I cannot > &g

Re: My print command cannot use "read -p"

2016-04-21 Thread David Champion
* On 21 Apr 2016, Xu Wang wrote: > Hi, > > I would like to have a print command that takes input from the user. > But mutt pipes the message to the print command so I guess I cannot > use something like > read -p "where to save?" filename > > because read loo

Re: My print command cannot use "read -p"

2016-04-21 Thread Jon LaBadie
On Fri, Apr 22, 2016 at 12:47:45AM -0400, Xu Wang wrote: > Hi, > > I would like to have a print command that takes input from the user. > But mutt pipes the message to the print command so I guess I cannot > use something like > read -p "where to save?" filename >

My print command cannot use "read -p"

2016-04-21 Thread Xu Wang
Hi, I would like to have a print command that takes input from the user. But mutt pipes the message to the print command so I guess I cannot use something like read -p "where to save?" filename because read looks on STDIN and mutt already piped to STDIN. I am using bash. Any i

print command

2000-12-21 Thread Pedro Zorzenon Neto
Hi, I want to customize the print command of Mutt 1.2.5i I use the command: set print_command=... in the muttrc file and it works fine. How can I send the subject of the message as an argument to the program in the print_command variable? Thanks Pedro -- Why don'

Re: A proposition for a print-command

2000-11-21 Thread Brian Salter-Duke
On Tue, Nov 21, 2000 at 06:28:03PM -0800, Shawn D. McPeek wrote: > > The whole world doesn't have to be Linux to use this solution. If your > AIX box does not have gfmt, you can easily download the software and > compile it for your AIX box. Worked for me on AIX and HP-UX. Sure and that is wha

Re: A proposition for a print-command

2000-11-21 Thread Shawn D. McPeek
The whole world doesn't have to be Linux to use this solution. If your AIX box does not have gfmt, you can easily download the software and compile it for your AIX box. Worked for me on AIX and HP-UX. Shawn Previously, Brian Salter-Duke wrote: % % This is indeed a nice solution, although I d

Re: A proposition for a print-command

2000-11-21 Thread Brian Salter-Duke
On Fri, Sep 22, 2000 at 12:30:22PM +0200, [EMAIL PROTECTED] wrote: > Hello, > > Having longtime searched for a nice printing-command, i've finally > choosen the next one : > > set print_command="fmt --prefix='>' -s | fmt -s | a2ps -b"" -1 -R >--pretty-print=mail -o $(date +%x-%X | tr : .).ps" >

Re: A proposition for a print-command

2000-09-22 Thread Vincent Lefevre
On Fri, Sep 22, 2000 at 12:30:22 +0200, [EMAIL PROTECTED] wrote: > set print_command="fmt --prefix='>' -s | fmt -s | a2ps -b"" -1 -R >--pretty-print=mail -o $(date +%x-%X | tr : .).ps" [snip explanations] > Try it. Comments welcome. I can't test it now, but this looks a good idea! -- Vincent

A proposition for a print-command

2000-09-22 Thread gauthier . vandemoortele
Hello, Having longtime searched for a nice printing-command, i've finally choosen the next one : set print_command="fmt --prefix='>' -s | fmt -s | a2ps -b"" -1 -R --pretty-print=mail -o $(date +%x-%X | tr : .).ps" a2ps gives very nice layouts with the option --pretty-print=mail, particularly w

Re: Print command

2000-07-26 Thread Nils Vogels
Hi David T-G ! On Wed 26 Jul 2000 (10:00), you muttered on the list: > Nils -- > > ...and then Nils Vogels said... > % > % set print_command="a2ps --footer $subject" > % > % so that the footer would contain the subject line ? > > Have you tried using the normal %-expandos? I know that y

Re: Print command

2000-07-26 Thread David T-G
Nils -- ...and then Nils Vogels said... % % set print_command="a2ps --footer $subject" % % so that the footer would contain the subject line ? Have you tried using the normal %-expandos? I know that you can specify arguments on your command line, and it would make sense for %* to be sup

Print command

2000-07-26 Thread Nils Vogels
Hi list! The documentation states, the print_command variable is of the type 'path' .. Is there any way to send the program a seperate value for for instace the 'from' line in the message, so that it would become something like this: set print_command="a2ps --footer $subject" so that t

Re: header for print command

2000-07-23 Thread Johannes Zellner
On Sun, Jul 23, 2000 at 11:56:31PM +0530, Suresh Ramasubramanian wrote: > Johannes Zellner proclaimed on mutt-users that: > > > > > set print_cmd="enscript | lpr" > > > > Try > > set print_cmd="enscript -2 -r -G" no. This won't work. This prints a fancy header, but empty. any other sug

Re: header for print command

2000-07-23 Thread Suresh Ramasubramanian
Johannes Zellner proclaimed on mutt-users that: > > set print_cmd="enscript | lpr" > Try set print_cmd="enscript -2 -r -G" -- Suresh Ramasubramanian + [EMAIL PROTECTED] All I can think of is a platter of organic PRUNE CRISPS being trampled by an army of swarthy, Italian LOUNGE SINGERS

header for print command

2000-07-23 Thread Johannes Zellner
Hi, what is the trick to get e.g. a From: or Subject: line into the header of a print command ? using something like set print_cmd="enscript | lpr" and I'd like to tell enscript to put the From: line into the header. Is this possible ? -- Johannes