From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7987 Path: news.gmane.org!not-for-mail From: Peter Dalgaard Newsgroups: gmane.emacs.gnus.user Subject: Re: Those blasted \201 characters Date: 15 Sep 2006 22:56:55 +0200 Organization: Linux Private Site Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1158356527 18992 80.91.229.2 (15 Sep 2006 21:42:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Sep 2006 21:42:07 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Sep 15 23:42:06 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GOLRi-0006J9-B8 for gegu-info-gnus-english@m.gmane.org; Fri, 15 Sep 2006 23:42:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GOLRh-00032B-Sb for gegu-info-gnus-english@m.gmane.org; Fri, 15 Sep 2006 17:42:01 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!news.net.uni-c.dk!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 365 Original-NNTP-Posting-Host: turmalin.kubism.ku.dk Original-X-Trace: news.net.uni-c.dk 1158353815 25977 192.38.18.4 (15 Sep 2006 20:56:55 GMT) Original-X-Complaints-To: usenet@news.net.uni-c.dk Original-NNTP-Posting-Date: Fri, 15 Sep 2006 20:56:55 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78172 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7987 Archived-At: Peter Dalgaard writes: > Reiner Steib writes: > > > On Fri, Sep 15 2006, Peter Dalgaard wrote: > > > > > Every accented character received in mail from certain senders get > > > preceded by the dreaded \201 character. > > > > > > I think this happened after I killed an ancient line with > > > > > > (standard-display-european 1) > > > > > > to get rid of a UTF8 display problem. It appears to be happening in > > > the nnmail step - i.e. there are no \201's in $MAIL, but they are > > > there in ~/Mail/misc/mail/12345. > > > > > > I tried reinstating the above line, > > > > Please don't. > > > > > which reintroduced the UTF8 problem, but didn't cure the \201 > > > thing... (well, maybe I didn't check on newly arrived mail, need to > > > recheck). > > > > > > Any clues? > > > > > > [LC_CTYPE=da_DK, other LC items set to C] > > > > I'm quite sure that there's something bogus in your setup. I haven't > > used Gnus 5.9 since ages, but I guess it should not show this problem > > (unless you use standard-display-european). > > > Could you upgrade to Gnus 5.10.8 or upgrade to CVS Emacs (some > > distributions offer it as emacs-snapshot or similar) which includes a > > more recent Gnus version and see it the problem persists? > > That's awkward since it is my department account and they'd rather not > support things not in SuSE. (The 10.0 running on some other machines > is still only emacs 21.3/gnus 5.9) > > > Else, can you send me one of the problematic mails as gzipped > > attachment (secret stuff x-ed out)? If the problem also appears in > > news or mailing list article you could simply give us the Message-Id > > or the URL to an mbox file if available. > > I can give it a try. Most likely I can reproduce with mail sent by > myself (which should help with the secrecy thing). The ones that bit > me earlier are gone from $MAIL for obvious reasons. Haven't seen it in > news. OK, here's the grub: This is a copy of my inbox >>From pd@pubhealth.ku.dk Fri Sep 15 22:40:38 2006 Return-Path: X-Original-To: pd@turmalin.kubism.ku.dk Delivered-To: pd@pubhealth.ku.dk Received: from turmalin.kubism.ku.dk (turmalin.kubism.ku.dk [192.38.18.4]) by slim.kubism.ku.dk (Postfix) with ESMTP id 2137117554 for ; Fri, 15 Sep 2006 22:40:38 +0200 (CEST) Received: by turmalin.kubism.ku.dk (Postfix, from userid 105) id 0D60FD4D0; Fri, 15 Sep 2006 22:40:38 +0200 (CEST) Date: Fri, 15 Sep 2006 22:40:37 +0200 To: pd@pubhealth.ku.dk Subject: test =?iso-8859-1?Q?tegns=E6t?= Message-ID: <450B0FC5.mailI5111Q376@turmalin.kubism.ku.dk> User-Agent: nail 11.4 8/29/04 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit From: pd@pubhealth.ku.dk (Peter Dalgaard) test æøå ----------------------------------------------------- and the nnmail file shows up in "less" (C-x i seems to be stripping the \201's) like this: Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on turmalin.kubism.ku.dk X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.3 X-Original-To: pd@turmalin.kubism.ku.dk Delivered-To: pd@pubhealth.ku.dk Received: from turmalin.kubism.ku.dk (turmalin.kubism.ku.dk [192.38.18.4]) by slim.kubism.ku.dk (Postfix) with ESMTP id 2137117554 for ; Fri, 15 Sep 2006 22:40:38 +0200 (CEST) Received: by turmalin.kubism.ku.dk (Postfix, from userid 105) id 0D60FD4D0; Fri, 15 Sep 2006 22:40:38 +0200 (CEST) Date: Fri, 15 Sep 2006 22:40:37 +0200 To: pd@pubhealth.ku.dk Subject: test =?iso-8859-1?Q?tegns=E6t?= X-Gnus-Mail-Source: file:/var/mail/pd Message-ID: <450B0FC5.mailI5111Q376@turmalin.kubism.ku.dk> User-Agent: nail 11.4 8/29/04 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit From: pd@pubhealth.ku.dk (Peter Dalgaard) Lines: 2 Xref: turmalin.kubism.ku.dk mail.misc:77462 test 201æ201ø201å -------------------------------------------------------------- Gnus message-buffer: From: pd@pubhealth.ku.dk (Peter Dalgaard) Subject: test tegnsæt To: pd@pubhealth.ku.dk Date: Fri, 15 Sep 2006 22:40:37 +0200 test \201æ\201ø\201å -------------------------------------------------------------- .emacs looks like this (pardon the crud...) ;;; Added by Tony (setq load-path (append '("/home/bs/pd/Tony/ecb-1.96" "/home/bs/pd/Tony/eieio-0.17" "/home/bs/pd/Tony/semantic-1.4.4" "/home/bs/pd/Tony/speedbar-0.14beta4") load-path)) (setq semantic-load-turn-everything-on t) (require 'semantic-load) (require 'ecb) ;;; Original .emacs (require 'tex-site) (autoload 'bibtex-mode "bibtex" "" t) (require 'ess-site "ess-site" 1) ;; don't fail if absent (global-set-key "\e\e" 'ESC-prefix) (global-set-key [remove] 'delete-char) (global-set-key [delete] 'delete-char) (setq sentence-end-double-space nil) (setq comint-input-ring-size 256) (setq auto-mode-alist (cons '("\\.?web$" . indented-text-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("snd\\.[0-9]*" . text-mode) auto-mode-alist)) (setq text-mode-hook '(lambda () (auto-fill-mode 1) ) ) (setq c-mode-hook '(lambda () (setq c-indent-level 8) (setq c-continued-statement-offset 8) (setq c-brace-offset -8) (setq c-brace-imaginary-offset 0) (setq c-argdecl-indent 8) (setq c-label-offset -8) ) ) (setq TeX-default-mode 'LaTeX-mode) (setq LaTeX-mode-hook '(lambda () (setq TeX-directory "~/tmp/") (setq TeX-dvi-print-command "dvips -Pps1") (defun TeX-kill-job () "Kill the currently running TeX job." (interactive) (stop-process "TeX-shell" t) (send-string "TeX-shell" "kill %latex\n") ) ) ) (setq LaTeX2e-hook '(lambda () (defvar LaTeX-command-style '(("." "latex2e")) '(("." "latex2e")) "*List of style options and LaTeX commands. If the first element (a regular expresion) matches the name of one of the style files, any occurrence of the string %l in a command in TeX-command-list will be replaced with the second element. The first match is used, if no match is found the %l is replaced with the empty string. In LaTeX2e the command is always latex2e") ) ) ;;(cond ((eq system-type 'usg-unix-v) ;; S plus configurarion ;;(load "/home/bs/pd/S-mode-4.8.MM6.XE1/S-site") ;; Want to use default directory for running S ;; (defvar S-directory (file-name-as-directory (getenv "PWD")) ;; "*The directory S is run from. It must end in a slash. ;; Provided as a default if S-ask-for-S-directory is non-nil.") ;; )) (setq gnus-secondary-select-methods '((nnml "") ;; (nnimap "mail.pubhealth.ku.dk" ;; (nnimap-address "mail.pubhealth.ku.dk") ;; (nnimap-stream ssl) ;; (nnimap-list-pattern ("ifsv-info")) ;; (nnimap-server-port 993) ;; (imap-username "pd") ;; ;;;(nnimap-authenticator login) ;; ) ) ) (setq mail-signature t) (setq nnml-get-new-mail t) (setq gnus-message-archive-group '((if (message-news-p) "misc-news" "misc-mail"))) (setq gnus-local-organization "Little, if any") (defun lbr-fix-asr () (and (message-news-p) (string-match "alt\\.sysadmin\\.recovery$" gnus-newsgroup-name) (or (or (mail-position-on-field "X-No-ahbou") (insert "yes") ) (or (mail-position-on-field "Approved") (insert "bofh@biostat.ku.dk") ) ) ) ) (add-hook 'message-setup-hook 'lbr-fix-asr) (setq nnmail-split-methods 'nnmail-split-fancy ) (put 'downcase-region 'disabled nil) ;(define-mail-alias "dsts" ;"p.dalgaard@biostat.ku.dk, ;bxc@svs.dk, ;eva@mi.aau.dk, ;ded@novo.dk, ;susanne@iesd.auc.dk, ;nimmo@allerup.dpi.dk") ;;;;Add a (: hc:fancy-split-spamassassin) rule to your nnmail-split-fancy ;;;;variable (defun hc:fancy-split-spamassassin () (save-excursion (set-buffer " *nnmail incoming*") (call-process-region (point-min) (point-max) "spamc" t t nil "-f") (goto-char (point-min)) (when (re-search-forward "^x-spam-flag: yes$" nil t) ;; edit the following to the group where spam is to be dropped "mail.spam"))) (setq user-mail-address "p.dalgaard@biostat.ku.dk") (setq mail-aliases t) ;;(setq imap-log "*imap-log*") ;;(setq imap-debug "*imap-debug*") (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(browse-url-netscape-program "firefox") '(case-fold-search t) ;;'(current-language-environment "Latin-1") ;;'(default-input-method "latin-1-prefix") '(delete-selection-mode nil nil (delsel)) '(gnus-select-method (quote (nntp "news.net.uni-c.dk"))) '(gnus-summary-show-article-charset-alist (quote ((8 . utf-8)))) '(gnus-use-cache t) '(imap-ssl-program (quote ("openssl s_client -ssl3 -connect %s:%p -quiet"))) '(message-header-hook nil) '(message-send-mail-partially-limit 10000000) '(metamail-environment (quote ("KEYHEADS=*" "MM_QUIET=1" "MM_USEPAGER=0")) t) '(nnmail-split-fancy (quote (| ("Gnus-Warning" "duplicate" "mail.dupes") (: hc:fancy-split-spamassassin) ("sender" "r-help*" "mail.R") ("sender" "r-devel.*" "mail.R-devel") ("sender" "r-core.*" "mail.R-core") ("sender" "bioinfo.*" "mail.bioinfo") ("sender" "owner-r-help.*" "mail.R") ("sender" "owner-r-devel.*" "mail.R-devel") ("subject" "\\*\\*\\*\\*\\*SPAM\\*\\*\\*\\*\\*" "mail.spam") ("sender" "owner-r-core.*" "mail.R-core") ("cc" "[Rr]-core.*" "mail.R-core") ("to" "[Rr]-core.*" "mail.R-core") ("x-mailinglist" "suse-amd64" "mail.amd64") "mail.misc"))) '(ps-paper-type (quote a4) t) '(scroll-bar-mode (quote right)) '(show-paren-mode t nil (paren)) '(transient-mark-mode t)) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(message-cited-text-face ((((class color) (background light)) nil)))) ;;;-- Implement "R core indentation style"-------------------------------- (add-hook 'c-mode-hook '(lambda() (c-set-style "bsd"))) (add-hook 'ess-mode-hook '(lambda() (if (or (string< ess-version "5.0") (string= ess-version "5.0")) (ess-set-style 'C++) (ess-set-style 'C++ 'quiet)) ;; Because ;; DEF GNU BSD K&R C++ ;; ess-indent-level 2 2 8 5 4 ;; ess-continued-statement-offset 2 2 8 5 4 ;; ess-brace-offset 0 0 -8 -5 -4 ;; ess-arg-function-offset 2 4 0 0 0 ;; ess-expression-offset 4 2 8 5 4 ;; ess-else-offset 0 0 0 0 0 ;; ess-close-brace-offset 0 0 0 0 0 (add-hook 'local-write-file-hooks '(lambda() (delete-trailing-whitespace) )) )) (add-hook 'perl-mode-hook '(lambda() (setq perl-indent-level 4))) (defun R-devel ( &optional args) (interactive "P") (setq inferior-R-program-name "~/misc/r-devel/BUILD/bin/R") (R args) ) (defun up-slightly () (interactive) (scroll-up 5)) (defun down-slightly () (interactive) (scroll-down 5)) (global-set-key [mouse-4] 'down-slightly) (global-set-key [mouse-5] 'up-slightly) (defun up-one () (interactive) (scroll-up 1)) (defun down-one () (interactive) (scroll-down 1)) (global-set-key [S-mouse-4] 'down-one) (global-set-key [S-mouse-5] 'up-one) (defun up-a-lot () (interactive) (scroll-up)) (defun down-a-lot () (interactive) (scroll-down)) (global-set-key [C-mouse-4] 'down-a-lot) (global-set-key [C-mouse-5] 'up-a-lot) (set-input-mode (car (current-input-mode)) (nth 1 (current-input-mode)) 0) ;;(standard-display-european 1) ;; Fuglagervej 10... (setq calendar-latitude 55.6972) (setq calendar-longitude 12.4758) ;(set-keyboard-coding-system 'iso-8859-15) -- O__ ---- Peter Dalgaard Øster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907