From unknown Fri Jun 20 07:14:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18130 <18130@debbugs.gnu.org> To: bug#18130 <18130@debbugs.gnu.org> Subject: Status: rmail: allow for imaps proto Reply-To: bug#18130 <18130@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:14:15 +0000 retitle 18130 rmail: allow for imaps proto reassign 18130 emacs submitter 18130 Carlos Pita severity 18130 normal tag 18130 confirmed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 28 13:00:06 2014 Received: (at submit) by debbugs.gnu.org; 28 Jul 2014 17:00:06 +0000 Received: from localhost ([127.0.0.1]:41145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBoHI-0008NV-QK for submit@debbugs.gnu.org; Mon, 28 Jul 2014 13:00:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53865) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBoHB-0008ND-O6 for submit@debbugs.gnu.org; Mon, 28 Jul 2014 12:59:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBoH5-0005XQ-JI for submit@debbugs.gnu.org; Mon, 28 Jul 2014 12:59:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_20,FREEMAIL_FROM, HTML_MESSAGE,HTML_OBFUSCATE_05_10,T_DKIM_INVALID,WEIRD_PORT autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBoH5-0005XJ-GB for submit@debbugs.gnu.org; Mon, 28 Jul 2014 12:59:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBoH4-00048d-ER for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 12:59:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBoH3-0005X1-JV for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 12:59:46 -0400 Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:61904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBoH3-0005Wn-BK for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 12:59:45 -0400 Received: by mail-la0-f52.google.com with SMTP id e16so5773871lan.11 for ; Mon, 28 Jul 2014 09:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=24llAXpFg3bSk30xW77fSy4wL35SbK+voh6Q7RkSz6w=; b=ZkmGb3AuPa8JeO4hEbbVsw2BtK6NG/WbfJgtjwLHNkfXgVGbA6Pksk/gV/Uyh26Ext 0g6nD4UeMxCfyCTpRiCKRcA8bbiO5FZJCAcgi6KirTQzjQ3voPEaX6UcV6ZPEIrpGrs0 qpGunR6sxzyLags/w5/W7TsaHQJF8Zxf3fPhtcc1P1ROVq6sGuKT1pVvUb2IrCqROwSi I0TAtq9vSzX/qUKxT6jFe0WtUoGMGKaxlpRVLL7zMcheieF3M9v2AH4PgK3FNEjlH8aP 7OMRS/JqlQWzBx79PKEAtng3jYOkhbkz/OefbkAdXz+KTPAMDeG+oZlQojoZgCPMHbmV gS1A== X-Received: by 10.112.5.170 with SMTP id t10mr35232791lbt.54.1406566784064; Mon, 28 Jul 2014 09:59:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.137.38 with HTTP; Mon, 28 Jul 2014 09:59:23 -0700 (PDT) From: Carlos Pita Date: Mon, 28 Jul 2014 13:59:23 -0300 Message-ID: Subject: rmail: allow for imaps proto To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=14dae94edd6d84647404ff43d9c9 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --14dae94edd6d84647404ff43d9c9 Content-Type: text/plain; charset=UTF-8 Currently mailutils movemail works with gmail imap using this: movemail 'imaps://carlosjosepita%40gmail.com:XXXX@imap.gmail.com/INBOX' RMAIL but not this: movemail --tls 'imap://carlosjosepita%40gmail.com:X XXX@imap.gmail.com:993/INBOX' RMAIL I wouldn't be difficult to support imaps in rmail, as it's just forwarding the request to movemail, which already supports it. This way it would be possible to use gmail imap in rmail. --14dae94edd6d84647404ff43d9c9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Currently mailutils movemail works with gmail ima= p using this:

movemail 'imaps://carlosjosepita%40gmail.com:XXXX@imap.gmail.com/INBOX' R= MAIL

but not this:

movemail --tls 'imap://carlosjosepi= ta%40gmail.com:XXXX@imap.gm= ail.com:993/INBOX' RMAIL

I wouldn't be diffic= ult to support imaps in rmail, as it's just forwarding the request to m= ovemail, which already supports it. This way it would be possible to use gm= ail imap in rmail.

--14dae94edd6d84647404ff43d9c9-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 28 13:10:27 2014 Received: (at 18130) by debbugs.gnu.org; 28 Jul 2014 17:10:27 +0000 Received: from localhost ([127.0.0.1]:41150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBoRL-0000DP-3t for submit@debbugs.gnu.org; Mon, 28 Jul 2014 13:10:27 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:65472) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBoRE-0000Cy-0O for 18130@debbugs.gnu.org; Mon, 28 Jul 2014 13:10:20 -0400 Received: by mail-lb0-f175.google.com with SMTP id 10so6145132lbg.34 for <18130@debbugs.gnu.org>; Mon, 28 Jul 2014 10:10:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=aStCQ0BKIZX30p6yIEr/noYBN7aFEMD+mC38jQ7s81c=; b=h6Tbc/G92b5sxlyCQH8FXpLpJ4WKe0dNK3la43R+ikEvegIoVaECQWfk3lsNkA32du 8zWifFHgtvxWK9F/jRYcCIV7FTMOvJ9n4/oCO/rzmW+tVIJ7TIbKzsAvx952d9DarSq1 kN/aVy5kdeD9kvY2GOay271N1FHBwZyxwYBnc3icg/WRqurEYI1UHKZ+SlGe0XfH+M9v 12gRTHpzD91KdHNsK6kIabhB1iElzS/D1qtNp9KgR6pRQCAiA76ZhfaeoueNXoClLsP+ Y1NnC1VyP4HP4X46tSrM8t94VpZQv4HMB1Q97y75iEo0ePrkTn5pdqYghsgI0rblZ/J/ x2hA== X-Received: by 10.152.228.164 with SMTP id sj4mr36478856lac.7.1406567409574; Mon, 28 Jul 2014 10:10:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.137.38 with HTTP; Mon, 28 Jul 2014 10:09:49 -0700 (PDT) In-Reply-To: References: From: Carlos Pita Date: Mon, 28 Jul 2014 14:09:49 -0300 Message-ID: Subject: Re: bug#18130: Acknowledgement (rmail: allow for imaps proto) To: 18130@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18130 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Same for pop / pops: Error: [loscar@localhost ~]$ movemail --tls 'pop://carlosjosepita%40gmail.com:crapulario@pop.gmail.com:995' test3 movemail: mailbox `pop://carlosjosepita%40gmail.com:***@pop.gmail.com:995': cannot open: Input/output error Ok: [loscar@localhost ~]$ movemail 'pops://carlosjosepita%40gmail.com:crapulario@pop.gmail.com:995' test3 Currently there's no way to use rmail with gmail via movemail. On Mon, Jul 28, 2014 at 2:01 PM, GNU bug Tracking System wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@gnu.org > > If you wish to submit further information on this problem, please > send it to 18130@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > > -- > 18130: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18130 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 28 15:07:55 2014 Received: (at submit) by debbugs.gnu.org; 28 Jul 2014 19:07:55 +0000 Received: from localhost ([127.0.0.1]:41259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBqH0-000390-5l for submit@debbugs.gnu.org; Mon, 28 Jul 2014 15:07:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51728) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBqGt-00038h-2X for submit@debbugs.gnu.org; Mon, 28 Jul 2014 15:07:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBqGn-00021p-0B for submit@debbugs.gnu.org; Mon, 28 Jul 2014 15:07:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBqGm-00021j-TC for submit@debbugs.gnu.org; Mon, 28 Jul 2014 15:07:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBqGl-0001fq-VI for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 15:07:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBqGl-000210-4O for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 15:07:35 -0400 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:35771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBqGk-00020o-S8 for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 15:07:35 -0400 Received: by mail-la0-f49.google.com with SMTP id hz20so5736839lab.22 for ; Mon, 28 Jul 2014 12:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=32Qkf+PLBMhzi6nVHNEWw/t8U/dPhOX6QxEtffAh97E=; b=j9v0YjCbWmmGBaeIoM7Nwty8fdcRO01U27pGQGQ/ZV9lB6JsZyegXLjAk7YT1SIh/K 6Qa8l6D+LbZwzGMGouXnEMuvCImBGnhPudg0nK9tWrkvkmkgSSNeJiPx9kn+p3Lp8oMA 8XbvCSvoObfns9nHx884am/+QbndLrtxhA06hpG4yRI2HeGurLTY6YCHiTtnP3c8YvX5 G5OquQ5V+WSM19uNA9aKDNPOv8XJmnYLHZeMzONjNNL25co7JwmgBWT67EDcl3Ib9+t5 AkABIkpX2211RXddiVx81WvFOZBw5Fxbwdbhl5+bOBYG9y0U9SO/Ggbx1HqU9wbs7kYa 2uAQ== X-Received: by 10.152.30.71 with SMTP id q7mr23475171lah.56.1406574453003; Mon, 28 Jul 2014 12:07:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.137.38 with HTTP; Mon, 28 Jul 2014 12:07:12 -0700 (PDT) In-Reply-To: References: From: Carlos Pita Date: Mon, 28 Jul 2014 16:07:12 -0300 Message-ID: Subject: Re: rmail: allow for imaps proto To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The problem seems more general, indeed. Non recognized protocols are taken to be filenames and expanded, as in: maildir:/home/loscar/Mail/INBOX -> /home/loscar/maildir:/home/loscar/Mail/INBOX mailutils movemail is pretty smart, but rmail is dumbing it down. I think a more transparent delegation to the mailutils workhorse is in order. On Mon, Jul 28, 2014 at 1:59 PM, Carlos Pita wrote: > > Currently mailutils movemail works with gmail imap using this: > > movemail 'imaps://carlosjosepita%40gmail.com:XXXX@imap.gmail.com/INBOX' > RMAIL > > but not this: > > movemail --tls > 'imap://carlosjosepita%40gmail.com:XXXX@imap.gmail.com:993/INBOX' RMAIL > > I wouldn't be difficult to support imaps in rmail, as it's just forwarding > the request to movemail, which already supports it. This way it would be > possible to use gmail imap in rmail. > From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 28 16:28:16 2014 Received: (at submit) by debbugs.gnu.org; 28 Jul 2014 20:28:16 +0000 Received: from localhost ([127.0.0.1]:41294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBrWq-00052b-7i for submit@debbugs.gnu.org; Mon, 28 Jul 2014 16:28:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37018) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XBrWo-00052N-BF for submit@debbugs.gnu.org; Mon, 28 Jul 2014 16:28:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBrWi-0003bJ-1A for submit@debbugs.gnu.org; Mon, 28 Jul 2014 16:28:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBrWh-0003bF-Ud for submit@debbugs.gnu.org; Mon, 28 Jul 2014 16:28:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBrWg-0007tr-SH for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 16:28:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XBrWf-0003az-Tf for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 16:28:06 -0400 Received: from mail-la0-x233.google.com ([2a00:1450:4010:c03::233]:37005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XBrWf-0003as-M8 for bug-gnu-emacs@gnu.org; Mon, 28 Jul 2014 16:28:05 -0400 Received: by mail-la0-f51.google.com with SMTP id pn19so515871lab.38 for ; Mon, 28 Jul 2014 13:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=C2EOArypLtvGT0sp2hRZm7Ef180E8Kj9vBj/QbN36u0=; b=nfGgMbap78ju8RjlcT79Z9abyAJ5LK6eYbf8lLd5fbjqRirvJ5Yvyu38VO/QaJvUgN 85tq6OxbUBNf+O/FkujYRjky0CV8k0eztcTHGCpFxrdOQmoJrFFlxd9SsKMxtMls2sxu OmMm72hDuFmYoMU74whrQ4c5L81wcOLuILGrqKid8IvwHhOFiDVNOf77CsWmSi0tr78/ EnbVFfehQ7QtkH1tanQ31ILX4+ZYWNGMQ/XfJGoLxC9uZmuzM4vEOETWFSKIuBUDxg6p qEUvOC6aQHt5KdFN+Uj/P9078IG1BhldvjRqeJIm4cDDCZhezUaPZ+CkDd84Peoh8d4Z fFrg== X-Received: by 10.112.151.164 with SMTP id ur4mr34551992lbb.13.1406579284236; Mon, 28 Jul 2014 13:28:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.137.38 with HTTP; Mon, 28 Jul 2014 13:27:44 -0700 (PDT) In-Reply-To: References: From: Carlos Pita Date: Mon, 28 Jul 2014 17:27:44 -0300 Message-ID: Subject: Re: rmail: allow for imaps proto To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I've been doing some debugging. The problem is in rmail-insert-inbox-text, which calls expand-file-name. I'm not sure whether you intend to support anything more than mbox, pop and imap or not, but then this documentation: https://www.gnu.org/software/emacs/manual/html_node/emacs/Movemail.html#Movemail is very misleading in at least two ways: * It doesn't mention pops and imaps at all. * It suggests that a larger number of protocols could be used with mailutils movemail. So there's a bug anyway: * Either the documentation should clearly state that only "pop:...", "imap:..." and "/path/...." specifications are supported, despite the more powerful capabilities of mailutils movemail * Or the other protocols supported by mailutils movemail should be supported by rmail also. In this case, something has to be done before the filename logic in rmail-insert-inbox-text, which will be broken in many ways because of the protocol prefix. On Mon, Jul 28, 2014 at 4:07 PM, Carlos Pita wrote: > The problem seems more general, indeed. Non recognized protocols are > taken to be filenames and expanded, as in: > > maildir:/home/loscar/Mail/INBOX > -> > /home/loscar/maildir:/home/loscar/Mail/INBOX > > mailutils movemail is pretty smart, but rmail is dumbing it down. I > think a more transparent delegation to the mailutils workhorse is in > order. > > On Mon, Jul 28, 2014 at 1:59 PM, Carlos Pita wrote: >> >> Currently mailutils movemail works with gmail imap using this: >> >> movemail 'imaps://carlosjosepita%40gmail.com:XXXX@imap.gmail.com/INBOX' >> RMAIL >> >> but not this: >> >> movemail --tls >> 'imap://carlosjosepita%40gmail.com:XXXX@imap.gmail.com:993/INBOX' RMAIL >> >> I wouldn't be difficult to support imaps in rmail, as it's just forwarding >> the request to movemail, which already supports it. This way it would be >> possible to use gmail imap in rmail. >> From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 16 13:46:08 2014 Received: (at control) by debbugs.gnu.org; 16 Aug 2014 17:46:08 +0000 Received: from localhost ([127.0.0.1]:44782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XIi3L-0004ee-6w for submit@debbugs.gnu.org; Sat, 16 Aug 2014 13:46:07 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:37724 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XIi3I-0004eV-8V for control@debbugs.gnu.org; Sat, 16 Aug 2014 13:46:04 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XIi3H-0000f9-U7 for control@debbugs.gnu.org; Sat, 16 Aug 2014 13:46:04 -0400 Date: Sat, 16 Aug 2014 13:46:03 -0400 Message-Id: Subject: control message for bug 18130 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) merge 18278 18130 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 08 05:33:30 2014 Received: (at 18130) by debbugs.gnu.org; 8 Sep 2014 09:33:30 +0000 Received: from localhost ([127.0.0.1]:33227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XQvKD-000508-8R for submit@debbugs.gnu.org; Mon, 08 Sep 2014 05:33:30 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:42329) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XQvK9-0004zu-Mj for 18130@debbugs.gnu.org; Mon, 08 Sep 2014 05:33:27 -0400 Received: by mail-la0-f44.google.com with SMTP id mc6so1872522lab.31 for <18130@debbugs.gnu.org>; Mon, 08 Sep 2014 02:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FG+On1XUGHGY5BUipfJf2yOBielz2bEG8E5W6PZ9cJY=; b=JOumg+FH7oytiipcbyrJzdGLvGWQ9NEdPtisoXMBSXRd9W+dsFz+A1D5QwyQWUaLP+ fquFVmLVjXpOX9xqJUh7ck6QTYRC9rfumESoDfysbJEIbta6JdembfG+sidc7QruLzwh yi/BqVxkIR1nfw+l6FucGlmb86KpHv2PbpbogJemai3yQZBrV6uMCXBuEahIRGdf1dg+ JkNOTU1oOo87i9jHaVYWvNkZRh+6H0ZImHJTDio+zLKLqykFGglCbUTaAAWQ5BHbeT0u KdfSyNnSMzY7zTxBz0Au45fy/oscGZwQK+Mr6crTZ5WzB4YyiThJc8rSFJrq3PC0vi7H h6cw== MIME-Version: 1.0 X-Received: by 10.152.28.67 with SMTP id z3mr28569670lag.12.1410168799283; Mon, 08 Sep 2014 02:33:19 -0700 (PDT) Received: by 10.112.97.129 with HTTP; Mon, 8 Sep 2014 02:33:18 -0700 (PDT) Received: by 10.112.97.129 with HTTP; Mon, 8 Sep 2014 02:33:18 -0700 (PDT) In-Reply-To: <20140816155324.14384@ulysses.gnu.org.ua> References: <20140816155324.14384@ulysses.gnu.org.ua> Date: Mon, 8 Sep 2014 06:33:18 -0300 Message-ID: Subject: Fwd: [PATCH] bug#18130: rmail.el: handle imaps, pops, and local source mailboxes (maildir, MH, etc.) From: Carlos Pita To: 18130@debbugs.gnu.org Content-Type: multipart/alternative; boundary=089e0158c8d45acdf505028a8209 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18130 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --089e0158c8d45acdf505028a8209 Content-Type: text/plain; charset=UTF-8 Sergey has kindly contributed this patch I'm adding to the report because I'm afraid it could get lost otherwise. ---------- Forwarded message ---------- From: "Sergey Poznyakoff" Date: Aug 16, 2014 10:02 AM Subject: [PATCH] bug#18130: rmail.el: handle imaps, pops, and local source mailboxes (maildir, MH, etc.) To: Cc: "Carlos Pita" , Hello, When used with GNU Mailutils movemail, rmail handles only imap and pop mailboxes[1]. However, the Mailutils movemail supports a much wider set of mailbox formats (both remote and local). This patch makes rmail.el fully use the flexibility of GNU Mailutils. In particular, it makes it possible to use imaps and pops encrypted protocols. The patch is against the current Emacs trunk. The bug has been reported by Carlos Pita to both GNU Emacs[2] and Mailutuls[3]. [1] http://lists.gnu.org/archive/html/bug-mailutils/2014-07/msg00008.html. [2] http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-07/msg00867.html http://lists.gnu.org/archive/html/bug-gnu-emacs/2014-07/msg00869.html [3] http://lists.gnu.org/archive/html/bug-mailutils/2014-08/msg00000.html. * lisp/mail/rmail.el (rmail-remote-proto-p): New function. (rmail-parse-url): Return actual proto in the 2nd list element instead of the mere t. All callers updated. Do not require password unless the argument refers to a remote mailbox. (rmail-insert-inbox-text): Select a proper message depending on whether source mailbox is a remote one or not. Hanlde non-plainfile local source mailboxes (maildir, MH, etc.) --- lisp/mail/rmail.el | 58 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index f769204..a3d6343 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -1869,13 +1869,16 @@ not be a new one). It returns non-nil if it got any new messages." (setq result (> new-messages 0)) result)))) +(defun rmail-remote-proto-p (proto) + (string-match "^\\(\\(imap\\|pop\\)s?\\)$" proto)) + (defun rmail-parse-url (file) - "Parse the supplied URL. Return (list MAILBOX-NAME REMOTE PASSWORD GOT-PASSWORD) + "Parse the supplied URL. Return (list MAILBOX-NAME PROTO PASSWORD GOT-PASSWORD) WHERE MAILBOX-NAME is the name of the mailbox suitable as argument to the -actual version of `movemail', REMOTE is non-nil if MAILBOX-NAME refers to -a remote mailbox, PASSWORD is the password if it should be -supplied as a separate argument to `movemail' or nil otherwise, GOT-PASSWORD -is non-nil if the user has supplied the password interactively. +actual version of `movemail', PROTO is the protocol (use rmail-remote-proto-p +to see if it refers to a remote mailbox), PASSWORD is the password if it +should be supplied as a separate argument to `movemail' or nil otherwise, +GOT-PASSWORD is non-nil if the user has supplied the password interactively. " (cond ((string-match "^\\([^:]+\\)://\\(\\([^:@]+\\)\\(:\\([^@]+\\)\\)?@\\)?.*" file) @@ -1886,24 +1889,26 @@ is non-nil if the user has supplied the password interactively. (host (substring file (or (match-end 2) (+ 3 (match-end 1)))))) - (if (not pass) - (when rmail-remote-password-required - (setq got-password (not (rmail-have-password))) - (setq supplied-password (rmail-get-remote-password - (string-equal proto "imap")))) - ;; The password is embedded. Strip it out since movemail - ;; does not really like it, in spite of the movemail spec. - (setq file (concat proto "://" user "@" host))) + (if (rmail-remote-proto-p proto) + (if (not pass) + (when rmail-remote-password-required + (setq got-password (not (rmail-have-password))) + (setq supplied-password (rmail-get-remote-password + (string-match "imaps?" proto)))) + ;; FIXME + ;; The password is embedded. Strip it out since movemail + ;; does not really like it, in spite of the movemail spec. + (setq file (concat proto "://" user "@" host)))) (if (rmail-movemail-variant-p 'emacs) (if (string-equal proto "pop") (list (concat "po:" user ":" host) - t + proto (or pass supplied-password) got-password) (error "Emacs movemail does not support %s protocol" proto)) (list file - (or (string-equal proto "pop") (string-equal proto "imap")) + proto (or supplied-password pass) got-password)))) @@ -1971,18 +1976,18 @@ Value is the size of the newly read mail after conversion." (or (memq (file-locked-p buffer-file-name) '(nil t)) (error "RMAIL file %s is locked" (file-name-nondirectory buffer-file-name))) - (let (file tofile delete-files movemail popmail got-password password) + (let (file tofile delete-files movemail proto got-password password) (while files ;; Handle remote mailbox names specially; don't expand as filenames ;; in case the userid contains a directory separator. (setq file (car files)) (let ((url-data (rmail-parse-url file))) (setq file (nth 0 url-data)) - (setq popmail (nth 1 url-data)) + (setq proto (nth 1 url-data)) (setq password (nth 2 url-data)) (setq got-password (nth 3 url-data))) - (if popmail + (if proto (setq renamep t) (setq file (file-truename (substitute-in-file-name (expand-file-name file))))) @@ -2003,14 +2008,16 @@ Value is the size of the newly read mail after conversion." (expand-file-name buffer-file-name)))) ;; Always use movemail to rename the file, ;; since there can be mailboxes in various directories. - (when (not popmail) + (when (not proto) ;; On some systems, /usr/spool/mail/foo is a directory ;; and the actual inbox is /usr/spool/mail/foo/foo. (if (file-directory-p file) (setq file (expand-file-name (user-login-name) file)))) - (cond (popmail - (message "Getting mail from the remote server ...")) + (cond (proto + (message (if (rmail-remote-proto-p proto) + "Getting mail from the remote server ..." + (concat "Getting mail from " proto)))) ((and (file-exists-p tofile) (/= 0 (nth 7 (file-attributes tofile)))) (message "Getting mail from %s..." tofile)) @@ -2021,7 +2028,7 @@ Value is the size of the newly read mail after conversion." ;; rename or copy the file FILE to TOFILE if and as appropriate. (cond ((not renamep) (setq tofile file)) - ((or (file-exists-p tofile) (and (not popmail) + ((or (file-exists-p tofile) (and (not proto) (not (file-exists-p file)))) nil) (t @@ -2056,9 +2063,10 @@ Value is the size of the newly read mail after conversion." ;; If we just read the password, most likely it is ;; wrong. Otherwise, see if there is a specific ;; reason to think that the problem is a wrong passwd. - (if (or got-password - (re-search-forward rmail-remote-password-error - nil t)) + (if (and (rmail-remote-proto-p proto) + (or got-password + (re-search-forward rmail-remote-password-error + nil t))) (rmail-set-remote-password nil)) ;; If using Mailutils, remove initial error code -- 1.7.12.1 --089e0158c8d45acdf505028a8209 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Sergey has kindly contributed this patch I'm adding to the report be= cause I'm afraid it could get lost otherwise.

---------- Forwarded message ----------
From:= "Sergey Poznyakoff" <gray@gnu= .org>
Date: Aug 16, 2014 10:02 AM
Subject: [PATCH] bug#18130: = rmail.el: handle imaps, pops, and local source mailboxes (maildir, MH, etc.= )
To: <bug-gnu-emacs@gnu.or= g>
Cc: "Carlos Pita" <carlosjosepita@gmail.com>, <bug-mailutils@gnu.org>

Hello,

When used with GNU Mailutils movemail, rmail handles only imap and pop
mailboxes[1].=C2=A0 However, the Mailutils movemail supports a much wider set of mailbox formats (both remote and local).=C2=A0 This patch makes
rmail.el fully use the flexibility of GNU Mailutils.=C2=A0 In particular, it makes it possible to use imaps and pops encrypted protocols.=C2=A0 The patch is against the current Emacs trunk.=C2=A0 The bug has been reported b= y
Carlos Pita to both GNU Emacs[2] and Mailutuls[3].

[1] http://lists.gnu.org/archive/html/bug-mailutil= s/2014-07/msg00008.html.
[2] http://lists.gnu.org/archive/html/bug-gnu-emac= s/2014-07/msg00867.html
=C2=A0 =C2=A0 http://lists.gnu.org/archive/html/bu= g-gnu-emacs/2014-07/msg00869.html
[3] http://lists.gnu.org/archive/html/bug-mailutil= s/2014-08/msg00000.html.

* lisp/mail/rmail.el (rmail-remote-proto-p): New function.
(rmail-parse-url): Return actual proto in the 2nd list element
instead of the mere t. All callers updated. Do not require
password unless the argument refers to a remote mailbox.
(rmail-insert-inbox-text): Select a proper message depending
on whether source mailbox is a remote one or not.
Hanlde non-plainfile local source mailboxes (maildir, MH, etc.)
---
=C2=A0lisp/mail/rmail.el | 58 +++++++++++++++++++++++++++++++--------------= ---------
=C2=A01 file changed, 33 insertions(+), 25 deletions(-)

diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index f769204..a3d6343 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1869,13 +1869,16 @@ not be a new one).=C2=A0 It returns non-nil if it g= ot any new messages."
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq result (> new-messages 0))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 result))))

+(defun rmail-remote-proto-p (proto)
+=C2=A0 (string-match "^\\(\\(imap\\|pop\\)s?\\)$" proto))
+
=C2=A0(defun rmail-parse-url (file)
-=C2=A0 "Parse the supplied URL. Return (list MAILBOX-NAME REMOTE PASS= WORD GOT-PASSWORD)
+=C2=A0 "Parse the supplied URL. Return (list MAILBOX-NAME PROTO PASSW= ORD GOT-PASSWORD)
=C2=A0WHERE MAILBOX-NAME is the name of the mailbox suitable as argument to= the
-actual version of `movemail', REMOTE is non-nil if MAILBOX-NAME refers= to
-a remote mailbox, PASSWORD is the password if it should be
-supplied as a separate argument to `movemail' or nil otherwise, GOT-PA= SSWORD
-is non-nil if the user has supplied the password interactively.
+actual version of `movemail', PROTO is the protocol (use rmail-remote-= proto-p
+to see if it refers to a remote mailbox), PASSWORD is the password if it +should be supplied as a separate argument to `movemail' or nil otherwi= se,
+GOT-PASSWORD is non-nil if the user has supplied the password interactivel= y.
=C2=A0"
=C2=A0 =C2=A0(cond
=C2=A0 =C2=A0 ((string-match "^\\([^:]+\\)://\\(\\([^:@]+\\)\\(:\\([^@= ]+\\)\\)?@\\)?.*" file)
@@ -1886,24 +1889,26 @@ is non-nil if the user has supplied the password in= teractively.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (host=C2=A0 (substring file (or (= match-end 2)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(+ 3 (mat= ch-end 1))))))

-=C2=A0 =C2=A0 =C2=A0 =C2=A0(if (not pass)
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(when rmail-remote-password-requi= red
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq got-password (not (r= mail-have-password)))
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq supplied-password (r= mail-get-remote-password
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (string-equal p= roto "imap"))))
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; The password is embedded.=C2=A0 Strip= it out since movemail
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; does not really like it, in spite of = the movemail spec.
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq file (concat proto "://"= user "@" host)))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0(if (rmail-remote-proto-p proto)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(if (not pass)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(when rmail-remote-= password-required
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq got-pa= ssword (not (rmail-have-password)))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq suppli= ed-password (rmail-get-remote-password
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (= string-match "imaps?" proto))))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; FIXME
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; The password is embedde= d.=C2=A0 Strip it out since movemail
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; does not really like it= , in spite of the movemail spec.
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq file (concat proto &= quot;://" user "@" host))))

=C2=A0 =C2=A0 =C2=A0 =C2=A0 (if (rmail-movemail-variant-p 'emacs)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (if (string-equal proto "pop= ")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (list (concat "= ;po:" user ":" host)
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0t
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0proto
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (or pass supplied-password)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 got-password)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (error "Emacs movemai= l does not support %s protocol" proto))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (list file
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(or (string-equal p= roto "pop") (string-equal proto "imap"))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0proto
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (or supplied-passwo= rd pass)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 got-password))))
@@ -1971,18 +1976,18 @@ Value is the size of the newly read mail after conv= ersion."
=C2=A0 =C2=A0(or (memq (file-locked-p buffer-file-name) '(nil t))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(error "RMAIL file %s is locked"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(file-name-nondirectory buf= fer-file-name)))
-=C2=A0 (let (file tofile delete-files movemail popmail got-password passwo= rd)
+=C2=A0 (let (file tofile delete-files movemail proto got-password password= )
=C2=A0 =C2=A0 =C2=A0(while files
=C2=A0 =C2=A0 =C2=A0 =C2=A0;; Handle remote mailbox names specially; don= 9;t expand as filenames
=C2=A0 =C2=A0 =C2=A0 =C2=A0;; in case the userid contains a directory separ= ator.
=C2=A0 =C2=A0 =C2=A0 =C2=A0(setq file (car files))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(let ((url-data (rmail-parse-url file)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq file (nth 0 url-data))
-=C2=A0 =C2=A0 =C2=A0 =C2=A0(setq popmail (nth 1 url-data))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0(setq proto (nth 1 url-data))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq password (nth 2 url-data))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq got-password (nth 3 url-data)))

-=C2=A0 =C2=A0 =C2=A0 (if popmail
+=C2=A0 =C2=A0 =C2=A0 (if proto
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq renamep t)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq file (file-truename
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (subs= titute-in-file-name (expand-file-name file)))))
@@ -2003,14 +2008,16 @@ Value is the size of the newly read mail after conv= ersion."
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(expand-file-name buffer-file-name))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0;; Always use movemail to rename the file,
=C2=A0 =C2=A0 =C2=A0 =C2=A0;; since there can be mailboxes in various direc= tories.
-=C2=A0 =C2=A0 =C2=A0 (when (not popmail)
+=C2=A0 =C2=A0 =C2=A0 (when (not proto)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; On some systems, /usr/spool/mail/foo is a di= rectory
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; and the actual inbox is /usr/spool/mail/foo/= foo.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (if (file-directory-p file)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq file (expand-file-name (use= r-login-name)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fi= le))))
-=C2=A0 =C2=A0 =C2=A0 (cond (popmail
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (message "Getting mail from= the remote server ..."))
+=C2=A0 =C2=A0 =C2=A0 (cond (proto
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (message (if (rmail-remote-proto= -p proto)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0"Getting mail from the remote server ..."
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0(concat "Getting mail from " proto))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ((and (file-exists-p tofile)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (/=3D 0 (nth= 7 (file-attributes tofile))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(message "Getting mail= from %s..." tofile))
@@ -2021,7 +2028,7 @@ Value is the size of the newly read mail after conver= sion."
=C2=A0 =C2=A0 =C2=A0 =C2=A0;; rename or copy the file FILE to TOFILE if and= as appropriate.
=C2=A0 =C2=A0 =C2=A0 =C2=A0(cond ((not renamep)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq tofile file))
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((or (file-exists-p tofile) (and = (not popmail)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((or (file-exists-p tofile) (and = (not proto)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0(not (file-exists-p file))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0nil)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (t
@@ -2056,9 +2063,10 @@ Value is the size of the newly read mail after conve= rsion."
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; If = we just read the password, most likely it is
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; wro= ng.=C2=A0 Otherwise, see if there is a specific
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; rea= son to think that the problem is a wrong passwd.
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (if (or got= -password
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (re-search-forward rmail-remote-password-error
-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0nil t))
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (if (and (r= mail-remote-proto-p proto)
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(or got-password
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(re-search-forward rmail-remote-passw= ord-error
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 nil t)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0(rmail-set-remote-password nil))

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; If = using Mailutils, remove initial error code
--
1.7.12.1

--089e0158c8d45acdf505028a8209-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 08 21:07:02 2017 Received: (at control) by debbugs.gnu.org; 9 Apr 2017 01:07:03 +0000 Received: from localhost ([127.0.0.1]:38627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cx1Jm-0004VU-Q7 for submit@debbugs.gnu.org; Sat, 08 Apr 2017 21:07:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cx1Jl-0004V0-W2 for control@debbugs.gnu.org; Sat, 08 Apr 2017 21:07:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cx1Jg-0004l1-1Q for control@debbugs.gnu.org; Sat, 08 Apr 2017 21:06:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cx1Jf-0004kx-VA for control@debbugs.gnu.org; Sat, 08 Apr 2017 21:06:55 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cx1Je-0008JC-Qa for control@debbugs.gnu.org; Sat, 08 Apr 2017 21:06:54 -0400 Subject: control message for bug 26376 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sat, 08 Apr 2017 21:06:54 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 18278 26376 tag 26376 confirmed From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 08 21:44:37 2017 Received: (at control) by debbugs.gnu.org; 9 Apr 2017 01:44:37 +0000 Received: from localhost ([127.0.0.1]:38667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cx1u8-0007Az-UO for submit@debbugs.gnu.org; Sat, 08 Apr 2017 21:44:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cx1u7-0007An-SS for control@debbugs.gnu.org; Sat, 08 Apr 2017 21:44:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cx1u2-00064Y-3t for control@debbugs.gnu.org; Sat, 08 Apr 2017 21:44:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cx1u2-00064U-0H for control@debbugs.gnu.org; Sat, 08 Apr 2017 21:44:30 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cx1u1-0002Ik-LN for control@debbugs.gnu.org; Sat, 08 Apr 2017 21:44:29 -0400 Subject: control message for bug 18278 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sat, 08 Apr 2017 21:44:29 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) # 48536f6 close 18278 26.1 From unknown Fri Jun 20 07:14:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 07 May 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator