From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Gnus and offline Email Date: Mon, 14 Nov 2016 13:29:00 -0800 Message-ID: <874m39ycmb.fsf@ericabrahamsen.net> References: <58273138.4070808@openmailbox.org> <87twbc1od3.fsf@ericabrahamsen.net> <582A21AB.2050707@openmailbox.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1479160922 30097 195.159.176.226 (14 Nov 2016 22:02:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 14 Nov 2016 22:02:02 +0000 (UTC) User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 14 23:01:54 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1c6PJO-0001dW-Bb for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Nov 2016 23:01:10 +0100 Original-Received: from localhost ([::1]:42918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6PJP-0005Cg-VN for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Nov 2016 17:01:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6OpT-0005m5-GJ for help-gnu-emacs@gnu.org; Mon, 14 Nov 2016 16:30:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6OpQ-0008PS-E6 for help-gnu-emacs@gnu.org; Mon, 14 Nov 2016 16:30:15 -0500 Original-Received: from [195.159.176.226] (port=51760 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c6OpQ-0008Of-76 for help-gnu-emacs@gnu.org; Mon, 14 Nov 2016 16:30:12 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c6Ooc-0002c5-6J for help-gnu-emacs@gnu.org; Mon, 14 Nov 2016 22:29:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:WJxABpCLV4U/hSOwFLbRbR/opJ0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-Mailman-Approved-At: Mon, 14 Nov 2016 16:58:10 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111731 Archived-At: Tim Zander writes: > On 12.11.2016 20:37, Eric Abrahamsen wrote: >> Tim Zander writes: >>> how do I set-up Gnus (and my GNU/Linux operating) to read and send my >>> emails? Preferably with IMAP but it should also work offline. Everything >>> I found online was very old, but if you know that some guide still works >>> today I could give it a try. >> >> What most people do in your case is to install a local IMAP server, >> usually dovecot, on your local machine. Then use isync or offlineimap to >> sync that to the remote server. Gnus only ever talks to the local IMAP >> server. > > Great, I had success for this, I followed your guide: > > https://ericabrahamsen.net/tech/2014/oct/gnus-dovecot-lucene.html > > But I used this in my .gnus file: > > (setq gnus-select-method > '(nnimap "OPENMAILBOX" > (nnimap-stream network) > (nnimap-address "localhost") > (nnimap-authenticator login) > (nnimap-user "timisch@openmailbox.org"))) > >> I use msmtp to send mails, and .. >> there is a msmtp-queue package that will let send emails from >> Gnus, but queue them up until there's an internet connection to .. >> send them. > > Is there any guide for that? Here's something: https://github.com/tpn/msmtp/blob/master/scripts/msmtpq/README.msmtpq I've never used it though! >> Otherwise, you just use the Gnus agent, toggle unplugged, send as >> usual, and when you're back online, toggle plugged. > > Any way of letting Gnus do this automatically? Sure, you can add the function `gnus-group-send-queue' to `gnus-agent-plugged-hook'. Even if you don't do that, it's very easy to do manually: "J j" to toggle plugged, then "J S" to send the queue. E