reopen 208570 Luca Capello <[EMAIL PROTECTED]>
thanks
 
Luca Capello <[EMAIL PROTECTED]> wrote:

> Hello Peter,
> 
> I hope to have done the correct thing reopening the bug instead of
> submitting a new one.  Otherwise, excuse me.

It's fine, but you also emailed to ` [EMAIL PROTECTED]' which
closed it again.  Reopening it now.
 
> I set the originator to me as I think it's the correct process:
> Francesco found the bug and got a solution, which broke my Gnus.
> Again, sorry for the confusion if I was in fault.
> 
> On Sat 05 Nov 2005 19:32 +0100, Peter S Galbraith wrote:
> > Source: emacs-goodies-el
> > Source-Version: 26.3-1
> [...]
> >      - debian-bug.el: Swap CC: for X-Debbugs-CC: in mail header.
> >        Thanks to Francesco Potorti` (Closes: #208570).
> 
> The solution provided is not correct if you're using Gnus with
> `gnus-message-archive-method', like I'm doing.
> 
> This adds a Gcc: header, which is then recognized as cc: and so
> swapped, resulting in a nonsense GX-Debbugs-CC: header (and the sent
> mail is not archived by Gnus).
> 
> The attached patch is a quick-and-dirty solution ;-)
> 
> Thx, bye,
> Gismo / Luca
> 
> 
> --- debian-bug.el.ORG 2005-11-12 19:09:43.000000000 +0100
> +++ debian-bug.el     2005-11-12 19:10:24.000000000 +0100
> @@ -642,8 +642,11 @@
>            (set-buffer "*mail*"))   ; Bug in emacs21.1?  Moves to " *nntpd*"
>        (goto-char (point-min))
>        (when (re-search-forward "cc:" nil t)
> -        (delete-region (match-beginning 0)(match-end 0))
> -        (insert "X-Debbugs-CC:"))
> +     (goto-char (match-beginning 0))
> +     (if (not (equal "Gcc" (word-at-point)))
> +         (progn
> +           (delete-region (match-beginning 0)(match-end 0))
> +           (insert "X-Debbugs-CC:"))))
>        (goto-char (point-min))
>        (cond
>         ((re-search-forward "To: " nil t)

Thanks for catching this Luca !

Looking at the code I now realise I was a bit sloppy.  I should have
used (re-search-forward "^cc:" nil t) to catch the beginning of line.

I'll fix it soon.  Sorry about that.

-- 
Peter S. Galbraith, Debian Developer          <[EMAIL PROTECTED]>
                                 http://people.debian.org/~psg
GPG key 1024/D2A913A1 - 97CE 866F F579 96EE  6E68 8170 35FF 799E


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to