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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28005 invoked from network); 7 Dec 2022 00:30:51 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 7 Dec 2022 00:30:51 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2iKb-0006A3-GS; Tue, 06 Dec 2022 19:30:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2iKa-00069O-3R for info-gnus-english@gnu.org; Tue, 06 Dec 2022 19:30:36 -0500 Received: from mail.ericabrahamsen.net ([52.70.2.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2iKX-0006n2-IF for info-gnus-english@gnu.org; Tue, 06 Dec 2022 19:30:35 -0500 Received: from localhost (unknown [76.135.104.211]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id E5B4EFA095; Wed, 7 Dec 2022 00:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1670373025; bh=HlrtbBvGrNOiPI8dXMPoXP4N+5DGO7gIymkjqXzfI9I=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=iZwfzFOzy4LfD0HrIIZPKgpgJXkh5Jmpe/YYNMy9F4zp0smePnVUMZRuKky6litFM fLXkmw+G1LjlsTt82AeVqg8KI4pqmROhSnkunn2Fgi9zGI4YbTR7rLBV9QmmOdvtIx 4vZrpabeWCGl20E4S6pGLufUnR7h72i+D48h4jec= From: Eric Abrahamsen To: "jindam, vani" Cc: info-gnus-english@gnu.org Subject: Re: delete downloaded marked emails after specific days & pop3 advice In-Reply-To: <61f16e8141130fbdfb3c8576c7f0c7ff@disroot.org> (vani jindam's message of "Tue, 06 Dec 2022 06:19:35 +0000") References: <61f16e8141130fbdfb3c8576c7f0c7ff@disroot.org> Date: Tue, 06 Dec 2022 16:30:19 -0800 Message-ID: <87wn74m4x0.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 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+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org "jindam, vani" writes: > after much trials, i found its impossible to run > dovecot on debian 11 on userland (1). i have a > copy of gnus manual (by lars magne, 1995-2015, > no version). recently disvovered check paren > for looking errors on .gnus > > i have few questions: > > (a) is it possible to download all emails on my > local machine, i dont want to retain email copies > on server mbsync doesn't offer this: the only available setting is the Sync directive in the config file, and that doesn't allow deleting messages remotely but not locally. This sounds more like using pop3 as a mail-source, with the :leave setting at `nil'. > (b) do i have to specify all email directories > on .gnus for downloading, ex: spam, draft With "Patterns *" in your mbsync config, mbsync will sync all folders. Gnus will make all those folders available through the nnmaildir backend, though you can also subscribe/unsubscribe to them within Gnus, so = you can choose what you see. > (c) how do i auto expunge all marked emails on > .gnus or mbsync.rc after specific period See the "Expiring Mail" section of the Gnus manual. With the settings you've shown below, when Gnus eventually deletes a message that deletion will get synced to the server, as well. > (d) seriously, reconsidering to use getmail > to fetch all emails through pop3, is it good > idea. pop3 supports or recognises only one > directory =E2=80=94inbox & does it mean it will include > spam emails in inbox? If you don't care about the state of the server, and would prefer to not leave messages there, then yes I think using a pop3 mail-source might be a better option than mbsync. You can still use nnmaildir locally, with split rules that send incoming mail there. I don't use this and I don't know if pop will pull messages from multiple folders; the docs don't mention any relevant config. Note that you've got this in your nnmaildir config: (get-new-mail t) That *only* comes into play if you're using mail sources. That means that given the config below you don't need it: mbsync will add messages to nnmaildir, which nnmaildir will detect automatically. > * mbsync.rc: > IMAPAccount disroot > Host disroot.org > User jindam.vani@disroot.org > SSLType IMAPS > SSLVersions TLSv1.2 > > # you may have to tweak the awk here + filename to your netrc/authinfo: > # PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d $HOME/.netrc.gpg | > awk '$2=3D=3D\"mail.messagingengine.com\" && $4=3D=3D\"me@fastmail.com\" > {print $6;exit(0)}'" > # Port 992 > # Port 992 has a "flat" hierarchy; use with > # mail_location =3D maildir:~/.Maildir/:LAYOUT=3Dfs:INBOX=3D~/.Maildir/IN= BOX > # in dovecot (see also MaildirStore.Inbox below) > > IMAPStore disroot-remote > Account disroot > > MaildirStore disroot-local > # The trailing "/" is meaningful > Path ~/.Maildir/ > Inbox ~/.Maildir/INBOX > SubFolders Legacy > > Channel disroot > Master :disroot-remote: > Slave :disroot-local: > Patterns * > Create Slave > Sync All > Expunge Both > SyncState * > > * .gnus: > (setq gnus-select-method '(nnnil "")) > > (add-to-list 'gnus-secondary-select-methods > '(nnmaildir "" > (directory "/home/jin/.Maildir/") > (get-new-mail t) > (directory-files nnheader-directory-files-safe))) > > (setq mail-user-agent 'gnus-user-agent) > (setq read-mail-command 'gnus) > > > (1) https://github.com/CypherpunkArmory/UserLAnd > > regards, > jindam, vani