From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: imap.el and nnimap.el [was Re: Build failure bzr trunk revno 103260] Date: Mon, 14 Feb 2011 11:45:24 -0800 Organization: Programmerer Ingebrigtsen Message-ID: <87sjvq4cyz.fsf@gnus.org> References: <8762sn4fgh.fsf@lifelogs.com> <87tyg72wrl.fsf@lifelogs.com> <87hbc6vf69.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297712746 24381 80.91.229.12 (14 Feb 2011 19:45:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 19:45:46 +0000 (UTC) Cc: ding@gnus.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 14 20:45:41 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp4Me-0004t0-T5 for ged-emacs-devel@m.gmane.org; Mon, 14 Feb 2011 20:45:41 +0100 Original-Received: from localhost ([127.0.0.1]:48715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp4Me-0001d6-Fy for ged-emacs-devel@m.gmane.org; Mon, 14 Feb 2011 14:45:40 -0500 Original-Received: from [140.186.70.92] (port=36806 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp4MX-0001Zv-6J for emacs-devel@gnu.org; Mon, 14 Feb 2011 14:45:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pp4MT-0002Sv-1q for emacs-devel@gnu.org; Mon, 14 Feb 2011 14:45:33 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:60182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pp4MS-0002Se-R1 for emacs-devel@gnu.org; Mon, 14 Feb 2011 14:45:28 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pp4MO-0004k8-85 for emacs-devel@gnu.org; Mon, 14 Feb 2011 20:45:24 +0100 Original-Received: from baybryj.net ([198.144.208.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Feb 2011 20:45:24 +0100 Original-Received: from larsi by baybryj.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Feb 2011 20:45:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: baybryj.net Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:pso+EVV2VvWpfXIrqbk0d0gC6j0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:136015 gmane.emacs.gnus.general:76726 Archived-At: Ted Zlatanov writes: > Gnus itself needs imap.el only in one place (mail-source.el) so I > propose we move imap.el to Emacs and out of Gnus when and if that > dependency is removed. It's a general-purpose library anyway. I wonder whether it might make some sense to re-separate out some of the more basic IMAP stuff from nnimap.el again. nnimap.el slurped in all the protocol-specific stuff from imap.el so that it could implement what Gnus needed more efficiently, but there isn't really much reason why, say, the login functions (and related) could be separated out again. Then non-Gnus packages could just use this new stripped-down basic IMAP library. I think, basically, what most useful is the login functions and a simple `imap-command' function, and the rest would be application specific. I've had a peek at the relevant nnimap and mail-source functions, and it seems like it should be doable in a pretty clean fashion. However, if the new basic IMAP library is called imap.el, then this would still break third-party applications. Thoughts? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen