<<< Date Index >>>     <<< Thread Index >>>

Re: accessing filename in .muttrc



G'day "mutt-lists",

(Please get a real name...  Makes it much politer to reply to a real
person.)


* mutt-lists@xxxxxxxxxxxxxxxx <mutt-lists@xxxxxxxxxxxxxxxx> [031030 11:56]:
> Hi,
> 
> I want to print to PDF so I set this print-command:
> 
> set print_command="a2ps -o - -1gEmail --borders=no --strip=3 | ps2pdf - 
> $HOME/Maildir/mail-output.pdf"
> 
> I would like to use something specific to the email for the filename such as 
> date, subject, sender or filename.

Line Wrapping!  72 characters (or so).
 
> 
> Is there any way I can access these values in .muttrc ie. can I do
> something like replace mail-output.pdf with something like %s ???? 

A possible solution is:
  Pipe the message into a script, use grep/sed/awk/whatever to grab
  whatever info you want from the message and then send it all through
  a2ps and ps2pdf.


S.

-- 
European Citizens: Please do a little work to convince the European
Parliament to reject software patents. This page explains the issue
and provides suggestions for action; take the time to participate.
  http://swpat.ffii.org/

Attachment: signature.asc
Description: Digital signature