From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16293 invoked from network); 7 Apr 2022 16:43:33 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 7 Apr 2022 16:43:33 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ncVEJ-000EOx-62 for ml@inbox.vuxu.org; Thu, 07 Apr 2022 11:43:31 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1ncVEI-0070e8-FF for ml@inbox.vuxu.org; Thu, 07 Apr 2022 11:43:30 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1ncVEH-0070e2-M0 for ding@lists.math.uh.edu; Thu, 07 Apr 2022 11:43:29 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ncVEF-004I98-KT for ding@lists.math.uh.edu; Thu, 07 Apr 2022 11:43:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FEsve3Rl/Lv7po55KuaUQWLBPp2stTY6kc4l500+K3w=; b=gfTyFE0AxE+FUH2Reif8QEuBwh B7Q37/lPZIHzXwC5PNlyu+oKO0ZI9ZlzaxMq2P613XZNAR97fsb8MZuXoAh0F60wZ2MrB6iYrIoq9 YFNkXTznrX+LBloqugYRaUK5hWgb2De+gkcf6VXB72G9sm3LV+nCpfoJxY6ZkwoGpyg4=; Received: from haven.eyrie.org ([166.84.7.159]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncVE7-0004WD-Uf for ding@gnus.org; Thu, 07 Apr 2022 18:43:22 +0200 Received: from lothlorien.eyrie.org (unknown [IPv6:2603:3024:160b:400:ae22:bff:fe50:db06]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by haven.eyrie.org (Postfix) with ESMTPS id CEEEB1180E7 for ; Thu, 7 Apr 2022 09:43:16 -0700 (PDT) Received: by lothlorien.eyrie.org (Postfix, from userid 1000) id 89C18B429DB; Thu, 7 Apr 2022 09:43:14 -0700 (PDT) From: Russ Allbery To: ding@gnus.org Subject: Re: set up Gnus to work with a remote system mailserver (with Dovecot?) In-Reply-To: <878rshyypw.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 07 Apr 2022 11:28:11 +0100") Organization: The Eyrie References: <87fsmp1yk9.fsf@zoho.eu> <8735ipqnrw.fsf@mat.ucm.es> <878rshyypw.fsf@ucl.ac.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Date: Thu, 07 Apr 2022 09:43:14 -0700 Message-ID: <87mtgwkfod.fsf@hope.eyrie.org> MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk Eric S Fraga writes: > For OP, if the mail is actually mbox format in /var/mail/incal, can gnus > use a tramp specification for the file name? I.e. maybe something like > (setq mail-sources '((file :path "/ssh:user@host:/var/mail/incal"))) > might work (untested, of course) but maybe not as it might depend on > what movemail supports? In a similar situation, I use the following configuration: (setq mail-sources '((file :prescript "ssh bin/getmail >%t"))) where bin/getmail is the following shell script: #!/bin/sh MAIL="/var/spool/mail/$USER" TMP="$HOME/tmp/mailbox" rm -f "$TMP" && movemail "$MAIL" "$TMP" >/dev/null && cat "$TMP" This is not very robust and if something goes wrong in the middle it can lose mail, so if there's something more built-in, I'd also love to hear about it, but it's worked for years. This assumes that movemail is installed on the remote system (on Debian, it's provided by the mailutils package). -- Russ Allbery (eagle@eyrie.org)