Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: info-gnus-english@gnu.org
Subject: Re: Show size of a mail/posting?
Date: Thu, 29 Jun 2017 10:18:59 +0200	[thread overview]
Message-ID: <8760ffw6j0.fsf@fu-berlin.de> (raw)
In-Reply-To: <874lv3qimw.fsf@mithlond.arda>

Teemu Likonen <tlikonen@iki.fi> writes:

> 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)

Piping to 'wc' seems be what nearly what I need.

However, if I display the raw message and do 'wc -c' I get a smaller
value than if I don't display the raw message, move the cursor to the
attachment, display it inline and then do 'wc -c'.  In this latter case
I get the real size of the attachment as given if I save it separately.

Is this the expected behaviour?

Cheers,

Loris

-- 
This signature is currently under construction.



      parent reply	other threads:[~2017-06-29  8:18 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
2017-06-26  8:14   ` Emanuel Berg
2017-06-29  8:18   ` Loris Bennett [this message]

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=8760ffw6j0.fsf@fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --cc=info-gnus-english@gnu.org \
    /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).