> On 17 Aug 2016, at 15:12, Daniel Quinn <gen...@danielquinn.org> wrote:
> 
> I’m a Python guy, so my answer to this would be "use Python" :-)
> 
> [The ReportLab 
> library](https://www.reportlab.com/docs/reportlab-userguide.pdf 
> <https://www.reportlab.com/docs/reportlab-userguide.pdf>) is extremely 
> powerful and can be used to generate a PDF for every email or a pdf for all 
> emails.  I've not used it myself, but I hear it's very good.
> 
> … 
> 
> At that point you have a sorted list of email objects which you can then use 
> ReportLab to generate a PDF.


That's a little more complicated than I hoped for.

I've not used Python before. Although I'd not be opposed to learning it, it's 
not clear to me how I'd get ReportLab to generate a PDF from an email. 

I was not expecting to involve myself with decisions about fonts and heading 
sizes. I thought, perhaps optimistically, that there must be a command-line 
program to take a text email file and (discarding the unneeded headers) print 
it (to `lpr` or a postscript file) in formatting like the attached, just like 
my desktop email client does.

It surprises me to think that pretty-printing an email from the command-line is 
something that's not been done before, but my searches are not finding relevant 
results.

Stroller.



Reply via email to