all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Mats Lidell <matsl@gnu.org>, 43896@debbugs.gnu.org
Subject: bug#43896: 28.0.50; End of file during parsing ~/.pop3-uidl
Date: Sun, 11 Oct 2020 14:06:54 +0200	[thread overview]
Message-ID: <87pn5phspt.fsf@igel.home> (raw)
In-Reply-To: <87tuv124wj.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 10 Oct 2020 22:38:04 +0200")

On Okt 10 2020, Lars Ingebrigtsen wrote:

> Mats Lidell <matsl@gnu.org> writes:
>
>> Trying to use gnus with pop3 but getting "end of file during parsing ~/.pop3-uidl" when fetching mail. The file that is created when fetching mails look strange:
>>
>> (("fencepost.gnu.org"
>>   ("matsl"
>>    "Mm6!!WRW!!3k~"!*&@!!" (24448 57982)
>>    "bL^"!i1n!!W#N"!Q$I!!" (24448 57982)
>>    "Dc7!!~J-!!X1T!!A%$#!" (24448 57982)
>>    "\L9!!GWa"!n+p"!Q1^"!" (24448 57982))))
>>
>> Any ideas what could be causing this?
>
> I'm not sure whether that file looks strange or not?  It looks
> well-formed, at least.

It's not, the embedded double quotes need to be quoted.

diff --git a/lisp/net/pop3.el b/lisp/net/pop3.el
index 6f5898437c..d7d563fbc2 100644
--- a/lisp/net/pop3.el
+++ b/lisp/net/pop3.el
@@ -463,7 +463,7 @@ Return non-nil if it is necessary to update the local UIDL file."
 		(when (cdr elt)
 		  (insert "(\"" (pop elt) "\"\n   ")
 		  (while elt
-		    (insert (format "\"%s\" %s\n   " (pop elt) (pop elt))))
+		    (insert (format "%S %s\n   " (pop elt) (pop elt))))
 		  (delete-char -4)
 		  (insert ")\n  ")))
 	      (delete-char -3)

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





  parent reply	other threads:[~2020-10-11 12:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-09 22:34 bug#43896: 28.0.50; End of file during parsing ~/.pop3-uidl Mats Lidell
2020-10-10 20:38 ` Lars Ingebrigtsen
     [not found]   ` <87ft6lr82f.fsf@gnu.org>
2020-10-11  4:40     ` Lars Ingebrigtsen
2020-10-11 20:18       ` Mats Lidell
2020-10-11 12:06   ` Andreas Schwab [this message]
2020-10-11 20:11     ` Mats Lidell
2021-01-06 20:29 ` bug#43896: (no subject) Mats Lidell
2021-01-07 12:21   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pn5phspt.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=43896@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=matsl@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.