Looks good to me. Any objections?
--
Thomas Roessler <roes...@does-not-exist.org>
--KsGdsel6WgEHnImy
Content-Type: message/rfc822
Content-Disposition: inline
Return-Path: <a...@wol.dk>
Delivered-To: roes...@sobolev.does-not-exist.org
Received: from localhost (localhost [127.0.0.1])
by sobolev.does-not-exist.org (Postfix) with ESMTP id C08262ED12
for <roes...@sobolev.does-not-exist.org>; Mon, 2 Oct 2000 14:35:08 +0200 (CEST)
Received: from sigtrap.guug.de
by localhost with POP3 (fetchmail-5.3.3)
for roes...@sobolev.does-not-exist.org (single-drop); Mon, 02 Oct 2000 14:35:08 +0200 (CEST)
Received: from fe080.worldonline.dk (fe080.worldonline.dk [212.54.64.210])
by sigtrap.guug.de (8.9.3/8.9.3/Debian/GNU) with SMTP id OAA29150
for <roes...@guug.de>; Mon, 2 Oct 2000 14:29:37 +0200
Received: (qmail 7681 invoked by uid 0); 2 Oct 2000 12:29:02 -0000
Received: from dustpuppy.worldonline.dk (212.54.66.102)
by fe080.worldonline.dk with SMTP; 2 Oct 2000 12:29:02 -0000
Received: (from apj@localhost)
by dustpuppy.worldonline.dk (8.9.1b+Sun/8.9.1) id OAA08959
for roes...@guug.de; Mon, 2 Oct 2000 14:29:00 +0200 (MET DST)
Date: Mon, 2 Oct 2000 14:29:00 +0200
From: WOL - Andreas Plesner Jacobsen <a...@wol.dk>
To: roes...@guug.de
Subject: Small patch for mutt
Message-ID: <2000100214...@wol.dk>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="ZPt4rx8FFjLCG7dd"
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
X-UIDL: ce3dce45b826217ff0c998293e7015de
--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi Thomas
I couldn't find anything in the docs about where to submit patches.
If you're not the right person, please forward.
One of my colleagues and I missed a flag for a message to indicate if
it was a mailinglist (colour-codes might be nice, but not enough if
you're at a b/w terminal).
This tiny patch adds an L-flag to %Z so that subscribed mailing-
lists are flagged:
Everything should be adequately documented.
--
Med venlig hilsen / Best Regards
Andreas Plesner Jacobsen (System Administrator) / World Online Denmark A/S
Peter Bangs Vej 26, 2000 Frederiksberg, Denmark
Tlf. (+45) 38 14 70 00 - Fax (+45) 38 14 70 07
--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=mutt+apj-p2
diff -u mutt-1.2.5/hdrline.c mutt-1.2.5+apj/hdrline.c
--- mutt-1.2.5/hdrline.c Fri Mar 3 11:10:08 2000
+++ mutt-1.2.5+apj/hdrline.c Mon Oct 2 14:08:52 2000
@@ -167,6 +167,7 @@
* 2: user is in the TO list
* 3: user is in the CC list
* 4: user is originator
+ * 5: sent to a subscribed mailinglist
*/
int mutt_user_is_recipient (HEADER *h)
{
@@ -187,6 +188,10 @@
}
else if (user_in_addr (env->cc))
h->recipient = 3;
+ else if (check_for_mailing_list (env->to, NULL, NULL, 0))
+ h->recipient = 5;
+ else if (check_for_mailing_list (env->cc, NULL, NULL, 0))
+ h->recipient = 5;
else
h->recipient = 0;
}
diff -u mutt-1.2.5/init.h mutt-1.2.5+apj/init.h
--- mutt-1.2.5/init.h Tue Jul 18 09:47:08 2000
+++ mutt-1.2.5+apj/init.h Mon Oct 2 14:10:18 2000
@@ -2030,7 +2030,7 @@
** This variable allows you to specify where Mutt will place its
** temporary files needed for displaying and composing messages.
*/
- { "to_chars", DT_STR, R_BOTH, UL &Tochars, UL " +TCF" },
+ { "to_chars", DT_STR, R_BOTH, UL &Tochars, UL " +TCFL" },
/*
** .pp
** Controls the character used to indicate mail addressed to you. The
@@ -2041,7 +2041,8 @@
** the message (default: T). The fourth character is used when your
** address is specified in the CC header field, but you are not the only
** recipient. The fifth character is used to indicate mail that was sent
- ** by \fIyou\fP.
+ ** by \fIyou\fP. The sixth character is used to indicate when a mail
+ ** was sent to a mailing-list you subscribe to (default: L).
*/
{ "use_8bitmime", DT_BOOL, R_NONE, OPTUSE8BITMIME, 0 },
/*
--ZPt4rx8FFjLCG7dd--
--KsGdsel6WgEHnImy--
Yes -- there's no documentation. Maybe you could reject patch
offering new features if they aren't documented, as do Bram
Moolenaar for ViM ?
Arnaud.
--
A computer programmer is a device for turning coffee into bugs.
Bram Moolenaar
> Yes -- there's no documentation. Maybe you could reject patch
> offering new features if they aren't documented, as do Bram
> Moolenaar for ViM ?
Look closer. It's documented in the muttrc(5) manual page and in
The Manual's reference section, which are autogenerated from the
comments in init.h.
--
Thomas Roessler <roes...@does-not-exist.org>
On Tue, Oct 03, 2000 at 10:33:04 +0200, Arnaud S . Launay wrote:
> Le Mon, Oct 02, 2000 at 07:18:03PM +0200, Thomas Roessler a écrit:
> > Looks good to me. Any objections?
I don't need this feature, but I have no objections if others want
to have it.
> Yes -- there's no documentation.
There is some, but section 2.3.1.1 in the manual isn't updated.
I attach a patch to do that.
> Maybe you could reject patch
> offering new features if they aren't documented, as do Bram
> Moolenaar for ViM ?
This is a good principle.
--
Byrial
http://home.worldonline.dk/~byrial/
--6TrnltStXW4iwmi0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=L-doc
--- manual.sgml.head~ Fri Sep 29 15:26:20 2000
+++ manual.sgml.head Tue Oct 3 11:10:11 2000
@@ -233,6 +233,7 @@
T message is to you, but also to or cc'ed to others
C message is cc'ed to you
F message is from you
+L message is sent to a subscribed mailing list
</verb></tscreen>
<sect2>The Pager
--6TrnltStXW4iwmi0--
Ok, works for me.
Arnaud, who, looking closer to the manual, see that there
are a lot of undocumented options.
--
Q: How does a UNIX Guru pick up a girl?
A: look; grep; which; eval; nice; uname; talk; date;