From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34798 Path: main.gmane.org!not-for-mail From: NAGY Andras Newsgroups: gmane.emacs.gnus.general Subject: [patch] imap.el imap-gssapi-open fix Date: 15 Feb 2001 00:48:47 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035170654 32148 80.91.224.250 (21 Oct 2002 03:24:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:24:14 +0000 (UTC) Cc: bugs@gnus.org Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id 2151CD04AF for ; Wed, 14 Feb 2001 18:49:43 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id RAC23385; Wed, 14 Feb 2001 17:49:23 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 14 Feb 2001 17:48:31 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id RAA09134 for ; Wed, 14 Feb 2001 17:48:22 -0600 (CST) Original-Received: from mail.inf.elte.hu (mail.inf.elte.hu [157.181.161.6]) by mailhost.sclp.com (Postfix) with ESMTP id 07DEFD04AF; Wed, 14 Feb 2001 18:48:49 -0500 (EST) Original-Received: by mail.inf.elte.hu (Postfix, from userid 28535) id 5ADF680ED; Thu, 15 Feb 2001 00:48:48 +0100 (NFT) Original-To: ding@gnus.org Mail-Copies-To: nobody User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Biscayne) Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 25 Xref: main.gmane.org gmane.emacs.gnus.general:34798 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34798 --=-=-= Symptom: using nnimap with gssapi authentication (with external imtest program), unable to upload messages. Problem: the APPEND command needs to know the exact size of the message to be uplaoded, which should be calculated using two-byte line terminator size. Unlike other transports, imtest requires "\n" as line the terminator instead of "\r\n". Gnus calculates the size after changing the line terminator to "\n", causing wrong result. Solution: in imap-gssapi-open, set imap-calculate-literal-size-first to the correct value, besides imap-client-eol, as seen in imap-kerberos4-open. Other possible occurrence: imap-shell-open also sets imap-client-eol but not imap-calculate-literal-size-first. As I'm unable to test this, not included in the patch. Patch: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=imap.el.patch-gss diff -u -r6.3 imap.el --- imap.el 2000/12/19 22:18:56 6.3 +++ imap.el 2001/02/14 23:43:38 @@ -521,7 +521,8 @@ response) (when process (with-current-buffer buffer - (setq imap-client-eol "\n") + (setq imap-client-eol "\n" + imap-calculate-literal-size-first t) (while (and (memq (process-status process) '(open run)) (goto-char (point-min)) ;; cyrus 1.6.x (13? < x <= 22) queries capabilities --=-=-= Andras --=-=-=--