Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[hypermail] Problems with 2.1.8

1 view
Skip to first unread message

Bill Moseley

unread,
Jan 20, 2004, 11:02:07 AM1/20/04
to
Here's a list of unresolved issues working with this latest version of
hypermail. Please let me know if any of these are resolved in the
current cvs before I try and fix anything -- or if I just mis-configured
hypermail in some way.


1) gmtime implementation seems broken:

In mbox file:
Date: Mon, 01 May 2000 14:21:44 -0500

In config:
dateformat = ++%a %b %d %Y - %H:%M:%S %Z
gmtime = On

results in: Date: ++Mon May 01 2000 - 19:21:44 PST
(correct time, wrong time zone)

with gmtime = Off
results in: Date: ++Mon May 01 2000 - 12:21:44 PDT

Changing (or leaving blank) the dateformat does not help.

I replaced %Z with UTC, but then I get:

This archive was generated by hypermail
2.1.8 : ++Thu Jan 15 2004 - 22:28:50 UTC PST
^^^
So the zone is still displayed.

Currently, seems like the best workaround is to not set gmtime and
instead use TZ=UTC before running hypermail.


2) The "received" line at the bottom of .mail is missing time zone.


3) minor nit, but the antispam_at only munges the From: link. The other
email addresses are munged with html tricks spamprotect. Since parsing
the HTML is trivial for spammers I think a more effective measure would
be to apply the antispam_at to all messages as those can be unique to
each archive.

4) I'm using folders (folder_by_date = %Y-%m) and the main index.html
has the periods listed. Selecting that line goes to 2004-01/date.html
that has three columns (indextable = On): subject, author, and date.
The date column is *blank* on these pages. The sort by: thread and
subject pages include the article date, but the date page does not.

5) Another minor point, but in this setup using folders, the article
pages do not seem to have a link back to the top-level folders. To get
back there you have to go to the bottom of the message, click on one of
the "Contemporary messages sorted:" links (date, thread, subject,
author) and then click on "List of Folders".


6) Yet another very minor point. Patches: I'm using the html
formatting showhtml = 2, which works very nice. Only complaint is that
it makes dif -u patches unusable. I know that's the risk of using that
level of showhtml.

Here's a big one:

7) Hypermail is not consistent in its use of dates. It's my opinion
that the "Date:" headers should not be used for sorting.

For example, I've got a message that contains an incorrect Date: header
of 1996, but the real date (from the Received: and 'From ' headers) is
in 1998. The message is submitted to hypermail in the correct order (as
by the 'From ' date).

- the message is stored in the 1996-05 directory. Here
hypermail is using Date: header (wrong)

- in the folders list the message is sorted using the incorrect
1996 date, but the link say "10 May 1998", which is the correct
date. (Again, it links to 1996-05/date.html

- following that link to the (by date/thread/subject) hypermmail
is using the wrong date:

1 messages: Starting 11 May 1996, Ending 11 May 1996

and also in the "Date" column.

8) I'm still not clear what -x does.


--
Bill Moseley
mos...@hank.org

Peter C. McCluskey

unread,
Jan 20, 2004, 1:47:59 PM1/20/04
to
mos...@hank.org (Bill Moseley) writes:
>1) gmtime implementation seems broken:

There is a change in the cvs version which seems to fix this.

>2) The "received" line at the bottom of .mail is missing time zone.

This appears to be fixed in cvs.

>3) minor nit, but the antispam_at only munges the From: link. The other
>email addresses are munged with html tricks spamprotect. Since parsing
>the HTML is trivial for spammers I think a more effective measure would
>be to apply the antispam_at to all messages as those can be unique to
>each archive.

This appears to be fixed in cvs.

>4) I'm using folders (folder_by_date = %Y-%m) and the main index.html
>has the periods listed. Selecting that line goes to 2004-01/date.html
>that has three columns (indextable = On): subject, author, and date.
>The date column is *blank* on these pages. The sort by: thread and
>subject pages include the article date, but the date page does not.

There is a date now, although the format (e.g. Tuesday, 4 September)
has raised some questions.

>5) Another minor point, but in this setup using folders, the article
>pages do not seem to have a link back to the top-level folders. To get
>back there you have to go to the bottom of the message, click on one of
>the "Contemporary messages sorted:" links (date, thread, subject,
>author) and then click on "List of Folders".

I'm not sure whether I would want to add any more links on the message page.

>6) Yet another very minor point. Patches: I'm using the html
>formatting showhtml = 2, which works very nice. Only complaint is that
>it makes dif -u patches unusable. I know that's the risk of using that
>level of showhtml.

How are you trying to use patches and why does showhtml = 2 interfere
with them?

>Here's a big one:
>
>7) Hypermail is not consistent in its use of dates. It's my opinion
>that the "Date:" headers should not be used for sorting.

> - the message is stored in the 1996-05 directory. Here


> hypermail is using Date: header (wrong)

This was fixed recently. There has been no change with these:

> - in the folders list the message is sorted using the incorrect
> 1996 date, but the link say "10 May 1998", which is the correct
> date. (Again, it links to 1996-05/date.html
>
> - following that link to the (by date/thread/subject) hypermmail
> is using the wrong date:
>
> 1 messages: Starting 11 May 1996, Ending 11 May 1996
>
> and also in the "Date" column.

>8) I'm still not clear what -x does.

I've rewritten the documentation in hmrc.html and moved it to the "output"
section:

Set to 1 to make Hypermail rewrite all messages.
Set to 0 to rewrite as few messages as possible.
Rewriting all messages is slower, but if you change the options
that control the appearance of the messages you may want to rewrite
all the messages to make the appearance consistent throughout the archive.

--
------------------------------------------------------------------------------
Peter McCluskey | "To announce that there must be no criticism of
http://www.rahul.net/pcm | the President, or that we are to stand by the
| President right or wrong, is not only unpatriotic
| and servile, but morally treasonable to the
| American public." - Theodore Roosevelt

Bill Moseley

unread,
Jan 20, 2004, 2:04:25 PM1/20/04
to
On Tue, Jan 20, 2004 at 10:47:27AM -0800, Peter C. McCluskey wrote:
> mos...@hank.org (Bill Moseley) writes:
> >1) gmtime implementation seems broken:
>
> There is a change in the cvs version which seems to fix this.

Ok, I'll try the cvs version. I've become lazy with Debian and depend
too much on apt-get.

> >5) Another minor point, but in this setup using folders, the article
> >pages do not seem to have a link back to the top-level folders. To get
> >back there you have to go to the bottom of the message, click on one of
> >the "Contemporary messages sorted:" links (date, thread, subject,
> >author) and then click on "List of Folders".
>
> I'm not sure whether I would want to add any more links on the message page.

I understand. I added it using a header template.

> >6) Yet another very minor point. Patches: I'm using the html
> >formatting showhtml = 2, which works very nice. Only complaint is that
> >it makes dif -u patches unusable. I know that's the risk of using that
> >level of showhtml.
>
> How are you trying to use patches and why does showhtml = 2 interfere
> with them?

Like I said, minor point, but since they are not wrapped in <pre> they
can't be cut-n-pasted from the archive. I doubt anyone would really do
that.

I started out with HTML formatting off because I think mail should
remain plain text. But the showhtml = 2 is really pretty and hard to
resist...


> >8) I'm still not clear what -x does.
>
> I've rewritten the documentation in hmrc.html and moved it to the "output"
> section:
>
> Set to 1 to make Hypermail rewrite all messages.
> Set to 0 to rewrite as few messages as possible.
> Rewriting all messages is slower, but if you change the options
> that control the appearance of the messages you may want to rewrite
> all the messages to make the appearance consistent throughout the archive.

So, this creates an initial archive

$ rm -rf archive
$ cat lots-of-message | hypermail -i

So at this point what's the difference between these (not lack of -u):

$ cat new_message | hypermail -i
$ cat new_message | hypermail -i -x

Thanks Peter,


--
Bill Moseley
mos...@hank.org

Bill Moseley

unread,
Jan 20, 2004, 3:01:30 PM1/20/04
to
Peter,

Yes, the CVS version seems to fix quite a bit. Thanks.

But, I have a problem on installation:

I ran ./configure --prefix=$HOME/local

bmoseley@sunsite:~/hypermail$ make install
../install-sh -s -c -m 0755 hypermail /home/bmoseley/local/bin
../install-sh -c -m 0644 hypermail.1 /home/bmoseley/local/man/man1
../install-sh -c -m 0644 hmrc.4 /home/bmoseley/local/man/man4
mkdir: "/usr/local/apache/htdocs/hypermail": Permission denied
*** Error code 2

Do you think that should use the prefix?

--
Bill Moseley
mos...@hank.org

Peter C.McCluskey

unread,
Jan 20, 2004, 6:07:13 PM1/20/04
to
mos...@hank.org (Bill Moseley) writes:
>So, this creates an initial archive
>
> $ rm -rf archive
> $ cat lots-of-message | hypermail -i
>
>So at this point what's the difference between these (not lack of -u):
>
> $ cat new_message | hypermail -i
> $ cat new_message | hypermail -i -x

If you are doing an incremental update (i.e. have an .hmrc with increment = 1
or increment = -1 and new_message has no old messages), the -x option makes no
difference (I guess I ought to add that to the documentation).
If you are not doing an incremental update (i.e. have an .hmrc with increment
= 0 and new_message contains lots-of-message plus something new), then
if you changed your config file from showhtml = 1 to showhtml = 2 between
the lots-of-message command and the new_message command, the -x will cause
the entire archive to have the showhtml = 2 format, and avoiding -x will
produce and archive with mixed format.

Peter C.McCluskey

unread,
Jan 20, 2004, 6:32:02 PM1/20/04
to
mos...@hank.org (Bill Moseley) writes:
>I ran ./configure --prefix=$HOME/local
>
>bmoseley@sunsite:~/hypermail$ make install
>./install-sh -s -c -m 0755 hypermail /home/bmoseley/local/bin
>./install-sh -c -m 0644 hypermail.1 /home/bmoseley/local/man/man1
>./install-sh -c -m 0644 hmrc.4 /home/bmoseley/local/man/man4
>mkdir: "/usr/local/apache/htdocs/hypermail": Permission denied
>*** Error code 2
>
>Do you think that should use the prefix?

I don't know. I don't get the impression that many people are much affected
either way. Does anyone else have an opinion on this?

Warren L Dodge

unread,
Jan 20, 2004, 6:38:58 PM1/20/04
to

I think it should follow the prefix variable unless it is set by some other
directory switch. I can't write to /usr/local in our company so this must not
be to important. Not to mention that apache isn't installed there either.


The key is you have to figure out what is going on to assure it isn't bad.

No errors during a build should be the goal. You can add to the
readme/install files to document any issues.

Bill Moseley

unread,
Jan 20, 2004, 7:40:25 PM1/20/04
to
On Tue, Jan 20, 2004 at 03:31:39PM -0800, Peter C.McCluskey wrote:
> mos...@hank.org (Bill Moseley) writes:
> >I ran ./configure --prefix=$HOME/local
> >
> >bmoseley@sunsite:~/hypermail$ make install
> >./install-sh -s -c -m 0755 hypermail /home/bmoseley/local/bin
> >./install-sh -c -m 0644 hypermail.1 /home/bmoseley/local/man/man1
> >./install-sh -c -m 0644 hmrc.4 /home/bmoseley/local/man/man4
> >mkdir: "/usr/local/apache/htdocs/hypermail": Permission denied
> >*** Error code 2
> >
> >Do you think that should use the prefix?
>
> I don't know. I don't get the impression that many people are much affected
> either way. Does anyone else have an opinion on this?

I agree with Warren that prefix should be the prefix for everything.
But you should be able to do:

./configure --prefix=$HOME/local --with-htmldir=/var/www/htdocs

to override.

BTW -- what dows --with-httpddir doe?

--
Bill Moseley
mos...@hank.org

Bill Moseley

unread,
Jan 22, 2004, 11:13:50 PM1/22/04
to
On Tue, Jan 20, 2004 at 10:47:27AM -0800, Peter C. McCluskey wrote:
> mos...@hank.org (Bill Moseley) writes:
> >1) gmtime implementation seems broken:

Looks like there a stray %z in this <a title="..."> attribute:

title="Monday, 1 December 2003 to Tuesday, 30 December 2003 GMT%z listed by date"

That's in the folders output. I'm not using any date format, but I am
using gmtime.

--
Bill Moseley
mos...@hank.org

Peter C.McCluskey

unread,
Jan 23, 2004, 1:32:09 PM1/23/04
to

I am unable to duplicate this.

0 new messages