From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18645 Path: news.gmane.org!.POSTED!not-for-mail From: "Loris Bennett" Newsgroups: gmane.emacs.gnus.user Subject: Re: Show size of a mail/posting? Date: Thu, 29 Jun 2017 10:18:59 +0200 Message-ID: <8760ffw6j0.fsf@fu-berlin.de> References: <87k23zs2n8.fsf@fu-berlin.de> <874lv3qimw.fsf@mithlond.arda> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1498731323 22901 195.159.176.226 (29 Jun 2017 10:15:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Jun 2017 10:15:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Jun 29 12:15:19 2017 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQWTk-0005ay-RJ for gegu-info-gnus-english@m.gmane.org; Thu, 29 Jun 2017 12:15:16 +0200 Original-Received: from localhost ([::1]:38153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQWTq-0000wg-5o for gegu-info-gnus-english@m.gmane.org; Thu, 29 Jun 2017 06:15:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQWTl-0000wN-OC for info-gnus-english@gnu.org; Thu, 29 Jun 2017 06:15:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQWTh-0007QO-JH for info-gnus-english@gnu.org; Thu, 29 Jun 2017 06:15:17 -0400 Original-Received: from [195.159.176.226] (port=54196 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQWTh-0007Pg-Ci for info-gnus-english@gnu.org; Thu, 29 Jun 2017 06:15:13 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dQWTY-00052c-29 for info-gnus-english@gnu.org; Thu, 29 Jun 2017 12:15:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:het+DmcnlocSKrL2n1vxCiFRT2k= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18645 Archived-At: Teemu Likonen 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.