From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32018 Path: main.gmane.org!not-for-mail From: simon@josefsson.org Newsgroups: gmane.emacs.gnus.general Subject: Re: 8bit mails via POP and IMAP mail-source Date: 09 Aug 2000 15:56:10 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <200008091327.PAA02018@SnowWhite.inet.cz> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035168361 17422 80.91.224.250 (21 Oct 2002 02:46:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:46:01 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id 6B768D051E for ; Wed, 9 Aug 2000 09:59:31 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id IAC15278; Wed, 9 Aug 2000 08:55:58 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 09 Aug 2000 08:55:15 -0500 (CDT) 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 IAA13034 for ; Wed, 9 Aug 2000 08:55:06 -0500 (CDT) Original-Received: from vic20.blipp.com (unknown [195.84.94.187]) by mailhost.sclp.com (Postfix) with ESMTP id CD95DD051E for ; Wed, 9 Aug 2000 09:55:31 -0400 (EDT) Original-Received: from barbar.josefsson.org (IDENT:root@localhost [127.0.0.1]) by vic20.blipp.com (8.10.1/8.10.1) with SMTP id e79DtK301678; Wed, 9 Aug 2000 15:55:21 +0200 Original-To: Pavel@Janik.cz (Pavel =?iso-8859-2?q?Jan=EDk?= ml.) In-Reply-To: <200008091327.PAA02018@SnowWhite.inet.cz> X-Gnus-Agent-Gcc: nnimap+vic20:sent-mail.2000-08 Original-Lines: 37 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32018 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32018 Pavel@Janik.cz (Pavel Jan=EDk ml.) writes: > Via IMAP, the mail is stored in \202X/202Y and is then viewed as such :-( `coding-system-for-write' seem to be bound to nil in pop3.el, here's a similar (untested) patch for mail-source.el. Does it work? (Assuming asking the user for character sets can be regarded as "work". Should the variable, and the one in pop3.el, default to 'raw-text instead?) Index: mail-source.el =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/local/cvsroot/gnus/lisp/mail-source.el,v retrieving revision 5.38 diff -w -u -u -w -r5.38 mail-source.el --- mail-source.el 2000/05/15 14:14:42 5.38 +++ mail-source.el 2000/08/04 13:53:48 @@ -649,6 +649,9 @@ (autoload 'imap-list-to-message-set "imap") (autoload 'nnheader-ms-strip-cr "nnheader")) =20 +(defvar mail-source-imap-file-coding-system nil + "Coding system for the crashbox made by `mail-source-fetch-imap'.") + (defun mail-source-fetch-imap (source callback) "Fetcher for imap sources." (mail-source-bind (imap source) @@ -662,7 +665,7 @@ user (or (cdr (assoc from mail-source-password-cache)) password) buf) (imap-mailbox-select mailbox nil buf)) - (let (str (coding-system-for-write 'binary)) + (let (str (coding-system-for-write mail-source-imap-file-coding-system)) (with-temp-file mail-source-crash-box ;; remember password (with-current-buffer buf