From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: Add Maildir support to RMAIL Date: Mon, 26 Jul 2021 13:45:45 +0300 Message-ID: References: <1627214524.13283@bluehome.net> <83tukiwnzv.fsf@gnu.org> <83sg02wnfd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36287"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.7+183 (3d24855) (2021-05-28) Cc: csh@bluehome.net, Eli Zaretskii , emacs-devel@gnu.org To: Antoine Kalmbach Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 26 12:49:05 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m7yAT-0009GK-CD for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Jul 2021 12:49:05 +0200 Original-Received: from localhost ([::1]:51246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7yAS-0005Dk-E6 for ged-emacs-devel@m.gmane-mx.org; Mon, 26 Jul 2021 06:49:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7y9n-0004RQ-3v for emacs-devel@gnu.org; Mon, 26 Jul 2021 06:48:23 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:35745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7y9l-0007eK-9E; Mon, 26 Jul 2021 06:48:22 -0400 Original-Received: from localhost ([::ffff:41.202.241.46]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000057F2B.0000000060FE92F2.00007672; Mon, 26 Jul 2021 03:48:17 -0700 Mail-Followup-To: Antoine Kalmbach , Eli Zaretskii , csh@bluehome.net, emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271641 Archived-At: * Antoine Kalmbach [2021-07-26 12:36]: > Eli Zaretskii writes: > > > Alternatively, don't GNU Mailutils support Maildir? If they do, you > > could use their 'movemail' instead of the one that comes with Emacs. > > > > This is how I use Rmail, by using Maildir and GNU Mailutils. Rmail > supports Maildir just fine if one installs GNU Mailutils, it will > automatically do this if you configure an inbox using 'maildir://...' > and you have GNU Mailutils installed. Maybe you think it will support mbox after conversion from Maildir. Maildir has directory structure: ~/Maildir/my-folder-1/tmp ~/Maildir/my-folder-1/cur ~/Maildir/my-folder-1/new ~/Maildir/my-folder-2/tmp ~/Maildir/my-folder-2/cur ~/Maildir/my-folder-2/new and I see no trace in RMAIL library to support that directory structure. This library supports maildir: ;; Author: Nic Ferrier ;; Url: http://github.com/nicferrier/emacs-maildir What would mean "supporting Maildir"? - detecting if directory is Maildir directory; (defun cf-dir-is-maildir-p (dir) "Verifies if the directory is maildir" (let* ((main-dir-p (file-directory-p dir)) (new (concat dir "/new")) (new-dir (file-directory-p new)) (tmp (concat dir "/tmp")) (tmp-dir (file-directory-p tmp)) (cur (concat dir "/cur")) (cur-dir (file-directory-p cur))) (if (and main-dir-p new-dir tmp-dir cur-dir) t nil))) - being able to generate file names according to Maildir specifications, and store messages - to delete messages, to copy messages from one Maildir to other, and possibly to other formats; minor functions; - to list messages in Maildir, provide threading if possible, this is probably largest part; tabulated-list-mode would be good option for this; - to compose (built-in) while making sure that message is stored into Maildir, that could involve some adjustments to mail- and message- modes -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/