From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29007 Path: main.gmane.org!not-for-mail From: Greg Stark Newsgroups: gmane.emacs.gnus.general Subject: Re: spookmime.el Date: 30 Jan 2000 15:44:13 -0500 Organization: The Emacs Conspiracy; member since 1992 Sender: owner-ding@hpc.uh.edu Message-ID: <879017qogy.fsf@HSE-Montreal-ppp33976.qc.sympatico.ca> References: <9t9bt8vc68p.fsf@mraz.iskon.hr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035165752 32755 80.91.224.250 (21 Oct 2002 02:02:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:02:32 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by mailhost.sclp.com (Postfix) with ESMTP id DEEFCD051F for ; Sun, 30 Jan 2000 15:48:41 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB01217; Sun, 30 Jan 2000 14:48:34 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 30 Jan 2000 14:45:58 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA05357 for ; Sun, 30 Jan 2000 14:45:46 -0600 (CST) Original-Received: from smtp13.bellglobal.com (smtp13.bellglobal.com [204.101.251.52]) by mailhost.sclp.com (Postfix) with ESMTP id 73311D051E for ; Sun, 30 Jan 2000 15:44:18 -0500 (EST) Original-Received: from HSE-Montreal-ppp33976.qc.sympatico.ca (HSE-Montreal-ppp32127.qc.sympatico.ca [216.209.192.133]) by smtp13.bellglobal.com (8.8.5/8.8.5) with ESMTP id PAA16702; Sun, 30 Jan 2000 15:47:00 -0500 (EST) Original-Received: from localhost ([127.0.0.1] helo=HSE-Montreal-ppp33976.qc.sympatico.ca) by HSE-Montreal-ppp33976.qc.sympatico.ca with smtp (Exim 3.03 #1 (Debian)) id 12F1Cf-00034q-00; Sun, 30 Jan 2000 15:44:13 -0500 Original-To: Hrvoje Niksic In-Reply-To: Hrvoje Niksic's message of "16 Nov 1999 07:15:02 +0100" Original-Lines: 94 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.5 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29007 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hrvoje Niksic writes: > François Pinard writes: > > > > Shaun Lipscombe writes: > > > > > > Is anyone using spookmime.el with pgnus? I posted this a while ago: --=-=-= Content-Type: message/rfc822 Content-Disposition: inline X-From-Line: stark Sun Aug 8 00:24:35 1999 Received: from po11.mit.edu by fetchmail-4.6.4 POP3 for (single-drop); Sun, 08 Aug 1999 00:24:35 EDT Received: from SOUTH-STATION-ANNEX.MIT.EDU by po11.MIT.EDU (5.61/4.7) id AA00452; Sun, 8 Aug 99 00:22:05 EDT Received: from bart.math.uh.edu by MIT.EDU with SMTP id AA29029; Sun, 8 Aug 99 00:21:41 EDT Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id XAC21514; Sat, 7 Aug 1999 23:21:54 -0500 (CDT) Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 07 Aug 1999 23:22:44 -0500 (CDT) Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id XAA26017 for ; Sat, 7 Aug 1999 23:22:32 -0500 (CDT) Received: from sparkle.Generation.NET (sparkle.Generation.NET [205.205.119.4]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id AAA17459 for ; Sun, 8 Aug 1999 00:21:24 -0400 (EDT) Received: from x2-312.mtl.Generation.NET (brnstndkramden.acf.nyu.edu@x2-312.mtl.Generation.NET [209.205.10.220]) by sparkle.Generation.NET (8.9.3/8.9.3) with SMTP id AAA25609 for ; Sun, 8 Aug 1999 00:21:21 -0400 (EDT) To: ding@gnus.org Subject: Spook mime for Gnus From: Greg Stark Organization: People's Front Against MWM Date: 08 Aug 1999 00:21:16 -0400 X-Gnus-Mail-Source: directory:~/incoming Message-Id: <87yafm9a2r.fsf@x2-312.mtl.Generation.NET> User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.3 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-ding@hpc.uh.edu Precedence: list X-Majordomo: 1.94.jlt7 Xref: x2-519.mtl.Generation.NET list.ding:27 Lines: 41 Use spook.el to generate your mime separators! This was inspired by Noah Friedman's spookmime.el for VM (http://www.gnac.com/~hogan/vm/files/spookmime.el) which says the original idea came from Bryan O'Sullivan. One caveat, I don't actually know what restrictions MIME imposes on separators, we should strip out any improper characters, keep it within whatever size limits are relevant etc. This was just a quick first pass. As an aside, I really like Gnus's minimal separators. It was a good idea. I'm not sure the hack value of this outweighs the niceness of having human readable MIME encoded mail. That said, the benefit is likely to be lost anyways when all the MIME headers are inserted and the content is quoted-unreadabled. Without further ado, the code: (defun spook-make-boundary nil (save-excursion (set-buffer (generate-new-buffer " *spook tmp*")) (setq buffer-disable-undo t) (spook) (subst-char-in-region (point-min) (point-max) ?\n ?= t) (subst-char-in-region (point-min) (point-max) ? ?- t) (prog1 (buffer-substring (point-min) (min 70 (point-max))) (kill-buffer (current-buffer))))) To set gnus to use this just do something like: (defun mml-make-boundary nil (spook-make-boundary)) (except that won't dtrt if you load it before mml. -- greg --=-=-= -- greg --=-=-=--