Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Loris Bennett <loris.bennett@fu-berlin.de>
Cc: info-gnus-english@gnu.org
Subject: Re: Show size of a mail/posting?
Date: Mon, 26 Jun 2017 11:04:55 +0300	[thread overview]
Message-ID: <874lv3qimw.fsf@mithlond.arda> (raw)
In-Reply-To: <87k23zs2n8.fsf@fu-berlin.de> (Loris Bennett's message of "Mon, 26 Jun 2017 08:07:23 +0200")


[-- Attachment #1.1: Type: text/plain, Size: 687 bytes --]

Loris Bennett [2017-06-26 08:07:23+02] wrote:

> What's the easiest way to display the total size, i.e. including
> attachments, of a mail or posting?

In summary buffer the raw message content can be piped to external
command with "|" key. So "| wc" counts lines and bytes. The raw message
content can be displayed with "C-u g". Then on that buffer "M-x
count-words" count lines, words and characters.

With custom Emacs Lisp code these function are likely useful:

    (gnus-summary-show-raw-article)
    (get-buffer gnus-article-buffer)

-- 
/// Teemu Likonen   - .-..   <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]



  parent reply	other threads:[~2017-06-26  8:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-26  6:07 Loris Bennett
2017-06-26  7:53 ` Emanuel Berg
2017-06-26  8:04 ` Teemu Likonen [this message]
2017-06-26  8:14   ` Emanuel Berg
2017-06-29  8:18   ` Loris Bennett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874lv3qimw.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --cc=info-gnus-english@gnu.org \
    --cc=loris.bennett@fu-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).