* Show size of a mail/posting?
@ 2017-06-26 6:07 Loris Bennett
2017-06-26 7:53 ` Emanuel Berg
2017-06-26 8:04 ` Teemu Likonen
0 siblings, 2 replies; 5+ messages in thread
From: Loris Bennett @ 2017-06-26 6:07 UTC (permalink / raw)
To: info-gnus-english
Hi,
What's the easiest way to display the total size, i.e. including
attachments, of a mail or posting?
Cheers,
Loris
--
This signature is currently under construction.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Show size of a mail/posting?
2017-06-26 6:07 Show size of a mail/posting? Loris Bennett
@ 2017-06-26 7:53 ` Emanuel Berg
2017-06-26 8:04 ` Teemu Likonen
1 sibling, 0 replies; 5+ messages in thread
From: Emanuel Berg @ 2017-06-26 7:53 UTC (permalink / raw)
To: info-gnus-english
"Loris Bennett" <loris.bennett@fu-berlin.de> writes:
> What's the easiest way to display the total size,
> i.e. including attachments, of a mail or posting?
What mail client do you use?
If it archives the post/mail as a single text file,
you can use
$ ls -b -l FILE
or
$ wc -c FILE
to count the bytes/chars, including the headers.
As for the attachment you can do the same (ls -bl) on
the file and then add the number of bytes to that of
the text file.
--
underground experts united
http://user.it.uu.se/~embe8573
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Show size of a mail/posting?
2017-06-26 6:07 Show size of a mail/posting? 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
1 sibling, 2 replies; 5+ messages in thread
From: Teemu Likonen @ 2017-06-26 8:04 UTC (permalink / raw)
To: Loris Bennett; +Cc: info-gnus-english
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Show size of a mail/posting?
2017-06-26 8:04 ` Teemu Likonen
@ 2017-06-26 8:14 ` Emanuel Berg
2017-06-29 8:18 ` Loris Bennett
1 sibling, 0 replies; 5+ messages in thread
From: Emanuel Berg @ 2017-06-26 8:14 UTC (permalink / raw)
To: info-gnus-english
Teemu Likonen <tlikonen@iki.fi> writes:
> (gnus-summary-show-raw-article)
> (get-buffer gnus-article-buffer)
And
(buffer-size)
?
--
underground experts united
http://user.it.uu.se/~embe8573
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Show size of a mail/posting?
2017-06-26 8:04 ` Teemu Likonen
2017-06-26 8:14 ` Emanuel Berg
@ 2017-06-29 8:18 ` Loris Bennett
1 sibling, 0 replies; 5+ messages in thread
From: Loris Bennett @ 2017-06-29 8:18 UTC (permalink / raw)
To: info-gnus-english
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-29 8:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-26 6:07 Show size of a mail/posting? 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 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).