Gnus development mailing list
 help / color / mirror / Atom feed
From: Stainless Steel Rat <ratinox@peorth.gweep.net>
Subject: Re: pop3.el: Content-Length generation (was: bad (i.e. serious) mail problems
Date: Tue, 6 Apr 1999 15:35:14 -0400	[thread overview]
Message-ID: <99Apr6.153203edt.13847-2@gateway.intersys.com> (raw)
In-Reply-To: wmperry@aventail.com's message of "06 Apr 1999 13:59:02 -0500"

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

* wmperry@aventail.com (William M. Perry)  on Tue, 06 Apr 1999
| Ummmm... content-length is supposed to be the byte count, is it not?

Okay, this patch should Do The Right Thing.  I hope.


[-- Attachment #2: patch --]
[-- Type: application/octet-stream, Size: 1548 bytes --]

*** -	Tue Apr  6 15:32:18 1999
--- pop3.el	Tue Apr  6 15:31:50 1999
***************
*** 4,10 ****
  
  ;; Author: Richard L. Pieri <ratinox@peorth.gweep.net>
  ;; Keywords: mail, pop3
! ;; Version: 1.3q
  
  ;; This file is part of GNU Emacs.
  
--- 4,10 ----
  
  ;; Author: Richard L. Pieri <ratinox@peorth.gweep.net>
  ;; Keywords: mail, pop3
! ;; Version: 1.3r
  
  ;; This file is part of GNU Emacs.
  
***************
*** 37,43 ****
  (require 'mail-utils)
  (provide 'pop3)
  
! (defconst pop3-version "1.3q")
  
  (defvar pop3-maildrop (or (user-login-name) (getenv "LOGNAME") (getenv "USER") nil)
    "*POP3 maildrop.")
--- 37,43 ----
  (require 'mail-utils)
  (provide 'pop3)
  
! (defconst pop3-version "1.3r")
  
  (defvar pop3-maildrop (or (user-login-name) (getenv "LOGNAME") (getenv "USER") nil)
    "*POP3 maildrop.")
***************
*** 247,253 ****
  	      (setq From_ (concat (substring From_ 0 (match-beginning 0))
  				  (substring From_ (match-end 0)))))
  	    (goto-char (point-min))
! 	    (insert From_))))))
  
  ;; The Command Set
  
--- 247,261 ----
  	      (setq From_ (concat (substring From_ 0 (match-beginning 0))
  				  (substring From_ (match-end 0)))))
  	    (goto-char (point-min))
! 	    (insert From_)
! 	    (re-search-forward "\n\n")
! 	    (narrow-to-region (point) (point-max))
! 	    (let ((size (- (point-max) (point-min))))
! 	      (goto-char (point-min))
! 	      (widen)
! 	      (forward-line -2)
! 	      (insert (format "Content-Length: %s\n" size)))
! 	    )))))
  
  ;; The Command Set
  

[-- Attachment #3: Type: text/plain, Size: 168 bytes --]


-- 
Rat <ratinox@peorth.gweep.net>    \ Happy Fun Ball may stick to certain types
Minion of Nathan - Nathan says Hi! \ of skin.
PGP Key: at a key server near you!  \ 

  parent reply	other threads:[~1999-04-06 19:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-06 18:37 Stainless Steel Rat
1999-04-06 18:59 ` William M. Perry
1999-04-06 19:29   ` Stainless Steel Rat
1999-04-06 19:35   ` Stainless Steel Rat [this message]
1999-04-06 19:10 ` paul stevenson

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=99Apr6.153203edt.13847-2@gateway.intersys.com \
    --to=ratinox@peorth.gweep.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).