Bug#95583: marked as done (FWD: Re: Documentation for total beginners)

Debian Bug Tracking System owner@bugs.debian.org
Sat, 09 Apr 2005 04:18:22 -0700


Your message dated Sat, 9 Apr 2005 13:13:34 +0200
with message-id <20050409111334.GA31333@fistandantilus.takhisis.org>
and subject line [Vim #95583] Is that bug still valid?
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Apr 2001 04:27:34 +0000
>From joey@silk.kitenet.net Fri Apr 27 23:27:34 2001
Return-path: <joey@silk.kitenet.net>
Received: from as5800-84-129.access.naxs.com (silk.kitenet.net) [216.98.84.129] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 14tM3k-0006TI-00; Fri, 27 Apr 2001 23:10:17 -0500
Received: from joey by silk.kitenet.net with local (Exim 3.22 #1 (Debian))
	id 14tF54-0000iT-00
	for <submit@bugs.debian.org>; Fri, 27 Apr 2001 16:43:10 -0400
Date: Fri, 27 Apr 2001 16:43:10 -0400
From: Joey Hess <joeyh@debian.org>
To: submit@bugs.debian.org
Subject: FWD: Re: Documentation for total beginners
Message-ID: <20010427164310.B2481@kitenet.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.17i
Sender: Joey Hess <joey@silk.kitenet.net>
Delivered-To: submit@bugs.debian.org

Package: vim

As seen below, vim uses some ghastly regexp against the filename to
figure out if the FileType is mail, and this fails for some cases in
mutt. This should be fixed.

----- Forwarded message from will trillich <will@serensoft.com> -----

From: will trillich <will@serensoft.com>
Date: Wed, 25 Apr 2001 15:08:45 -0500
To: debian-user@lists.debian.org
Subject: Re: Documentation for total beginners

On Fri, Apr 20, 2001 at 09:45:00PM -0700, Joey Hess wrote:
> Matthew Dalton wrote:
> > If you use vim with mutt, but also use it for other things and you don't
> > want it to wrap to 72 characters for those other things, put something
> > like this in your .muttrc
> > 
> >   set editor = "vim -c 'set tw=72'"
> 
> A cleaner method is this, in your .vimrc:
> 
> autocmd FileType mail set textwidth=72

that usually works pretty well because mutt has some patterns it
looks for in the filenames... when starting a new message using
mutt, it goes into /tmp/mutt-<hostname>-<digits>

BUT when "RESUMING" an outgoing message that you postponed in mutt
(postpone via "q" and then "y" to save message for later; resume
via "R") the temp filename is /tmp/mutt<digits> which doesn't
match the same pattern. all i have to do is :set ft=mail to get
my highlighting and textwidth settings, but where's the pattern
specified for ft=mail?

aha!

in /usr/share/vim/vim56/filetype.vim i found the line
au BufNewFile,BufRead snd.\d\+,.letter,.letter.\d\+,.followup,.article,.article.\d\+,pico.\d\+,mutt-*-\d\+,ae\d\+.txt set ft=mail

the part that works for new mutt email is

	mutt-*-\d\+

but we need to add a pattern to match filenames like

	/tmp/muttlEoKra
	/tmp/muttDSveKd

what's the syntax for these vim patterns? (-*- looks like glob,
but then we have \d for digit (i presume) and \+ for... well, i
don't know.)

-- 
DEBIAN NEWBIE TIP #14 from Will Trillich <will@serensoft.com>:
What's a RUNLEVEL? It's simply a big-time setting group;
runlevel 2 might have a full-blown web server plus X running,
and runlevel 3 might be ssh-only, for secure logins. Check
/etc/inittab (and /etc/rc<RUNLEVEL>.d/*) for details on how
yours are set up. And try "man runlevel".

Also see http://newbieDoc.sourceForge.net/ ...


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


----- End forwarded message -----
-- 
see shy jo

---------------------------------------
Received: (at 95583-done) by bugs.debian.org; 9 Apr 2005 11:14:06 +0000
>From zack@bononia.it Sat Apr 09 04:14:06 2005
Return-path: <zack@bononia.it>
Received: from ms003msg.fastwebnet.it [213.140.2.42] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DKDuf-0005ym-00; Sat, 09 Apr 2005 04:14:06 -0700
Received: from fistandantilus.takhisis.org (37.10.140.106) by ms003msg.fastwebnet.it (7.2.052.3)
        id 41FFB1A400FBC10D; Sat, 9 Apr 2005 13:13:35 +0200
Received: by fistandantilus.takhisis.org (Postfix, from userid 3148)
	id 7479D2741FB; Sat,  9 Apr 2005 13:13:34 +0200 (CEST)
Date: Sat, 9 Apr 2005 13:13:34 +0200
From: Stefano Zacchiroli <zack@debian.org>
To: 95583-done@bugs.debian.org
Cc: 95583-submitter@bugs.debian.org, 95583@bugs.debian.org
Subject: [Vim #95583] Is that bug still valid?
Message-ID: <20050409111334.GA31333@fistandantilus.takhisis.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd"
Content-Disposition: inline
User-Agent: Mutt/1.5.8i
Delivered-To: 95583-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2


--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Alexis Sukrieh <sukria@sukria.net> wrote:
> Hello Joey, that bug is pretty old, could you please tell me if it's
> still reproducible?
>=20
> I'm unable to reproduce it here.

I'm not able either, regexpes about mutt in
/usr/share/vim/vim63/filetype.vim work properly, and original submitter
did not reply.

Closing this bug.

--=20
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-

--ZPt4rx8FFjLCG7dd
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCV7je1cqbBPLEI7wRArK7AJ45SLr/zaUcjn5TgSkopdRH00LjzQCgvFpn
QCxTA30sR4cYNEiqgwz8P3I=
=JjBH
-----END PGP SIGNATURE-----

--ZPt4rx8FFjLCG7dd--