On 30/10/03 12.41, mutt-lists@xxxxxxxxxxxxxxxx wrote: > 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. > > 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 ???? How about a script that does something like this: umask 0077 cat > /tmp/printing-mail-$$.tmp subject=`cat /tmp/printing-mail-$$.tmp|formail -x Subject:` ... cat /tmp/printing-mail-$$.tmp | [printing-pipeline] > ~/mail-$subject.ps rm /tmp/printing-mail-$$.tmp Adjust to include whatever headers you like, possibly check aliases, do conditional formating, check for and avoid filename collisions etc. /dossen -- Common sense is the collection of prejudices acquired by age eighteen. -- Albert Einstein
Attachment:
pgpnDqdUTwjr4.pgp
Description: PGP signature