From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85322 Path: news.gmane.org!not-for-mail From: Peter Davis Newsgroups: gmane.emacs.gnus.general Subject: Re: Mutt/Gnus hybrid for mail? Date: Tue, 09 Dec 2014 09:34:10 -0500 Message-ID: References: <87egs952jy.fsf@micropit.roche-blanche.homenet.org> <8761dl3xth.fsf@pinto.chemeng.ucl.ac.uk> <87ppbsgbi7.fsf@ucl.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1418135684 13010 80.91.229.3 (9 Dec 2014 14:34:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2014 14:34:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33566@lists.math.uh.edu Tue Dec 09 15:34:39 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XyLs3-0001cZ-OP for ding-account@gmane.org; Tue, 09 Dec 2014 15:34:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1XyLrl-0004RX-U9; Tue, 09 Dec 2014 08:34:17 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XyLrj-0004RF-WC for ding@lists.math.uh.edu; Tue, 09 Dec 2014 08:34:16 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XyLri-0001Oq-JK for ding@lists.math.uh.edu; Tue, 09 Dec 2014 08:34:15 -0600 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XyLrg-0003JW-Fc for ding@gnus.org; Tue, 09 Dec 2014 15:34:12 +0100 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3C23D213F7 for ; Tue, 9 Dec 2014 09:34:11 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 09 Dec 2014 09:34:11 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:references :date:in-reply-to:message-id:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=sbpWRkH1Bz1ilop+WAv5zQ zur1I=; b=Rw5JtNe6rBRrGdQqYa3cUwDRo3ObfbiecLmMHQibDLhnP4MM2qajlG xT+6D7k3Gop5gY3nm9Z593d6218YhydAI4Dx4fS+M0wJpWeBAzW++Te0Vno/d7z8 j+41MUOkXMnsOzeaZBGzJpoI8Sk7U+t8BfjfxqnCk1noDD6gmLweY= X-Sasl-enc: BT2BH9PGmJ2OXuEM9acvOxZRwPMqifnymIxAvTcSw3nT 1418135650 Original-Received: from PFDStudio-Air.home (unknown [173.76.32.54]) by mail.messagingengine.com (Postfix) with ESMTPA id E3BD2C0027F; Tue, 9 Dec 2014 09:34:10 -0500 (EST) In-Reply-To: <87ppbsgbi7.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Tue, 9 Dec 2014 14:10:08 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85322 Archived-At: Thanks, Eric, Comments below ... Eric S Fraga writes: > On Tuesday, 9 Dec 2014 at 07:49, Peter Davis wrote: >> > >> 3) delete the current message, and move to and read the next message. > > E > > These commands do exactly what you want, for me, when both summary and > article windows are displayed and summary window is selected. The 'E' command does not open the next message. It merely moves the cursor in the Summary buffer. The Article buffer still displays the just-expired message content. I have to press the spacebar to see the next message. This may seem like a small point, but if I'm trying to bang through lots of messages, it's an annoyance. Mutt wins on this. > >> If I'm on the last message in the mutt index and I delete that, mutt >> simply closes the 'pager' view and just displays the index view for the >> whole screen. > > In gnus, if you hit space or n to go to the next email, and if you > happen to be at the last message, gnus will prompt to go to the next > group if you hit the same key again. > Yes, I'm aware of that. I mentioned this mutt behavior because, if I can somehow get gnus to actually display the next message, then being on the last message in the Summary would require special handling. >> >> 2) Opening a group/mailbox >> >> In mutt, when I open a mailbox (group), I see an index of all the >> messages in the mailbox, with the cursor positioned at the first unread, >> if any. I like that, > > gnus does exactly this for me. > For me, Summary only shows the unread messages, and not even the rest of the threads they belong to (unless I type 'A T'). >> but I'd settle for seeing all of the threads >> containing any unread messages. As I understand it, >> gnus-fetch-old-headers is supposed to do that, but I haven't found a way >> to make it work, at least with Fastmail.fm IMAP. > > nothing to do with the source of emails. have you tried enabling the > gnus agent? > >> >> For extra credit, in mutt's index (Summar) view, I can very easily >> filter the list of messages with a few keystrokes. For instance, if I >> type lpfd, I'll see just a list of messages whose headers contain >> "pfd". Of course, this is not especially useful in gnus since the >> Summary buffer doesn't show me a long list of earlier messages, but if I >> could make that happen, it would be very useful. > > /spfd RET should do what you want. You may need to /o first. then /w > to pop back to previous view. > The 'l' command in mutt is not search, it's limit ... it limits the display to messages matching some criteria. Admittedly I haven't searched exhaustively for gnus features to mimic this, but I didn't see any obvious ones. Of course, as I said, since only unread messages show up in the Summary, this is not very useful in gnus. > maybe post your .gnus.el? Sure. Here it is. It's cobbled together from bits and pieces I found in various places, so I'm sure it's not optimal. --8<---------------cut here---------------start------------->8--- ;; @see http://www.gnu.org/software/emacs/manual/html_node/gnus/Expiring-Ma= il.html ;; press 'E' to expire email (setq nnmail-expiry-target "INBOX.Trash") (setq nnmail-expiry-wait 'immediate) (setq user-mail-address "pfd@pfdstudio.com") (setq user-full-name "Peter Davis") (setq gnus-fetch-old-headers t) (setq gnus-select-method '(nnimap "Fastmail" ; primary email (nnimap-address "mail.messagingengine.com") (nnimap-server-port 993) (nnimap-authenticator login) (nnimap-expunge-on-close 'never) (nnimap-stream ssl) )) (setq gnus-article-browse-delete-temp t) (setq gnus-fetch-old-headers t) (setq message-sendmail-envelope-from 'header) (setq send-mail-function 'smtpmail-send-it message-send-mail-function 'smtpmail-send-it) (setq smtpmail-default-smtp-server "smtps-proxy.messagingengine.com" smtpmail-smtp-server "smtps-proxy.messagingengine.com" smtpmail-smtp-service 80 smtpmail-starttls-credentials '(("smtps-proxy.messagingengine.com" 80= nil nil))) (setq smtpmail-stream-type 'tls) (setq fill-flowed-display-column nil) (add-hook 'gnus-article-mode-hook (lambda () (setq truncate-lines nil word-wrap t))) (setq gnus-posting-styles '((".*" (name "Peter Davis") (address "pfd@pfdstudio.com") (BCC "pfd@pfdstudio.com")))) (setq gnus-html-frame-width 180) (defun my-message-mode-setup () (setq fill-column 72) (turn-on-auto-fill)) (add-hook 'message-mode-hook 'my-message-mode-setup) ;;switch to gnus group buffer or start gnus (defun my-switch-to-gnus-group-buffer () "Switch to gnus group buffer if it exists, otherwise start gnus" (interactive) (if (or (not (fboundp 'gnus-alive-p)) (not (gnus-alive-p))) (gnus) (switch-to-buffer "*Group*"))) (global-set-key (kbd "C-c n") 'my-switch-to-gnus-group-buffer) (setq-default gnus-summary-line-format "%U%R%z %(%&user-date; %-15,15f %B%s%)\n" gnus-user-date-format-alist '((t . "%Y-%m-%d %H:%M")) gnus-summary-thread-gathering-function 'gnus-gather-threads-by-referen= ces gnus-thread-sort-functions '(gnus-thread-sort-by-date) gnus-sum-thread-tree-false-root "" gnus-sum-thread-tree-indent " " gnus-sum-thread-tree-leaf-with-other "=E2=94=9C=E2=96=BA " gnus-sum-thread-tree-root "" gnus-sum-thread-tree-single-leaf "=E2=94=94=E2=96=BA " gnus-sum-thread-tree-vertical "=E2=94=82") --8<---------------cut here---------------end--------------->8---