Re: Visualising contents of a Maildir
On Wed, Aug 17, 2022 at 09:22:31PM +0200, martin f krafft via Mutt-users wrote: Is there a way to "screenshot" the Mutt index beyond the scroll window? I don't think it will be better or easier than what you've done. But you could try using a '|' filter in $index_format to append some output to a file as a side effect. It would still entail manually pgdn'ing through the index. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA signature.asc Description: PGP signature
Re: Visualising contents of a Maildir
On Wed, Aug 17, 2022 at 09:33:44PM +, Sam Kuper wrote: > On Wed, Aug 17, 2022 at 09:22:31PM +0200, martin f krafft via Mutt-users > wrote: > > For reasons you don't want to know, > > You may be underestimating the curiosity of your audience. I suspect what Sam really meant was, "For reasons that would make you sad if you knew..." =8^) > > Is there a way to "screenshot" the Mutt index beyond the scroll > > window? > > Why would you need to? In what way does Mutt itself not meet your > requirements? Presumably because in order to *share* such a visualization, i.e. with someone remote, they would have to have a copy of the inbox AND run Mutt. This is not typically desireable, when essentially the equivalent of sharing a document is the sole purpose for it. Presumably what you'd want is an image or document that contains the desired visualization, that can be displayed by some common tool available to the general community, like a web browser, company-installed word processor or similar productivity app, etc.. Mutt could still meet the need, though it would be some work. You could screenshot each individual page of the index, and then use an image editing program to assemble them together. Maybe--if the resulting image was not too large for your application to handle. Or you could just paste each image into a document in a word processor, one image per page... It might be possible to create a virtual desktop large enough to display the entire index at once, and then use imagemagick or similar to capture the window to a file, but I suspect there again you may run into memory problems. I'm not sure any of those qualify as "something better..." -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. signature.asc Description: PGP signature
Re: Visualising contents of a Maildir
On Wed, Aug 17, 2022 at 09:22:31PM +0200, martin f krafft via Mutt-users wrote: > For reasons you don't want to know, You may be underestimating the curiosity of your audience. > I have to visualise a Maildir with a couple of thousand messages, i.e. > essentially provide a mutt-style index with correspondents, dates, > subjects, and threading, So far, so good. Use Mutt. It does this very nicely. (I'm not trying to be facetious - even with my repetitive answers below. This is a use-case for which Mutt is genuinely well-suited.) > ideally in form of an HTML table. This is puzzling, as follows: - Tables are tabular. - Threads are digraphs (usually polytrees - although in principle a single message can be a reply to *multiple* earlier messages). So there seems to be something of a topological mismatch between your intended input data structure and your intended output data structure. > Apart from the threading, Python's email module can do most of the > work, and combined with e.g. Jinja templating, I should be able to get > results quickly, but since I don't like reinventing wheels, I was > wondering if maybe you had a better idea? Again, Mutt does this very nicely. Why not just use Mutt? > Is there a way to "screenshot" the Mutt index beyond the scroll > window? Why would you need to? In what way does Mutt itself not meet your requirements? > Or can you think of command-line tools that visualise threads? Again: Mutt. (Emacs can do this, too. Probably there are other tools as well.) > Notmuch, which I use, can very quickly list all the threads, including > the count of messages, but I actually need to list to be *really big* > and not condensed, for reasons you don't want to know. > > I can make notmuch output json with threading, and then process that > with Python to create a list, but maybe there's a better tool? Again, why not just use Mutt? Sam
Visualising contents of a Maildir
Folks, This isn't really a Mutt question, but you're the kind of people that most likely would have good answers on the following: For reasons you don't want to know, I have to visualise a Maildir with a couple of thousand messages, i.e. essentially provide a mutt-style index with correspondents, dates, subjects, and threading, ideally in form of an HTML table. Apart from the threading, Python's email module can do most of the work, and combined with e.g. Jinja templating, I should be able to get results quickly, but since I don't like reinventing wheels, I was wondering if maybe you had a better idea? Is there a way to "screenshot" the Mutt index beyond the scroll window? Or can you think of command-line tools that visualise threads? Notmuch, which I use, can very quickly list all the threads, including the count of messages, but I actually need to list to be *really big* and not condensed, for reasons you don't want to know. I can make notmuch output json with threading, and then process that with Python to create a list, but maybe there's a better tool? Thanks for your time, -- @martinkrafft | https://matrix.to/#/#madduck:madduck.net "if one cannot enjoy reading a book over and over again, there is no use in reading it at all." -- oscar wilde spamtraps: madduck.bo...@madduck.net