Gnus development mailing list
 help / color / mirror / Atom feed
* Not removing annoying subject parts
@ 1998-09-22 15:28 Anders Melchiorsen
  1998-09-22 15:37 ` Karl Kleinpaste
  1998-09-23 22:18 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 14+ messages in thread
From: Anders Melchiorsen @ 1998-09-22 15:28 UTC (permalink / raw)



In .gnus I have:

(add-hook 'nnmail-prepare-incoming-hook 'nnmail-remove-list-identifiers)
(setq nnmail-list-identifiers  '("\\[SSLUG\\]" "nagnagnag"))

to avoid "[SSLUG]" stuff from certain subject headers.


Still, in the particular mailing list, not all headers have this
removed. Some have, though. Am I doing something wrong? A cut from the 
summary buffer:

   [   8:  Kaare Rasmussen    ] [SSLUG] Re: Riva 128
   [  11:  Thomas S. Iversen  ] Re: [SSLUG] Redhat 5.1 - CD-ROM problemer - hjælp !!
   [  28:  Samuel Arvidsson   ] Re: Fetchmail...
   [   8:  Tobias Rathje      ] [SSLUG] Linux og printerservere

I am using 5.6.43 and do not really want to go on to pGnus just yet.

-- 
Regards, Anders
(address is valid)

Diplomacy is the art of saying 'Nice doggie!'... till you can find a rock.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-22 15:28 Not removing annoying subject parts Anders Melchiorsen
@ 1998-09-22 15:37 ` Karl Kleinpaste
  1998-09-22 20:48   ` Anders Melchiorsen
  1998-09-23 22:18 ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 14+ messages in thread
From: Karl Kleinpaste @ 1998-09-22 15:37 UTC (permalink / raw)


Anders Melchiorsen <postmaster@and.nospam.kampsax.k-net.dk> writes:
> (setq nnmail-list-identifiers  '("\\[SSLUG\\]" "nagnagnag"))
> to avoid "[SSLUG]" stuff from certain subject headers.

I think the "\\]" portion is not needed or proper, though it may work
incidentally in some cases.  Remove the "\\".  You do still need the
"\\[", of course.

I use this:

(setq nnmail-list-identifiers
      '("\\[Y2K]" "<Y2KPrep>" "PA-RKBA!" "L&J:" "PA-POL!" "\\[leatherparent]"))

It has never failed to remove things like "[Y2K]" from headers.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-22 15:37 ` Karl Kleinpaste
@ 1998-09-22 20:48   ` Anders Melchiorsen
  0 siblings, 0 replies; 14+ messages in thread
From: Anders Melchiorsen @ 1998-09-22 20:48 UTC (permalink / raw)


Karl Kleinpaste <karl@jprc.com> writes:

> Anders Melchiorsen <postmaster@and.nospam.kampsax.k-net.dk> writes:
> > (setq nnmail-list-identifiers  '("\\[SSLUG\\]" "nagnagnag"))
> > to avoid "[SSLUG]" stuff from certain subject headers.
> 
> I think the "\\]" portion is not needed or proper, though it may work
> incidentally in some cases.  Remove the "\\".  You do still need the
> "\\[", of course.
> 
> I use this:
> 
> (setq nnmail-list-identifiers
>       '("\\[Y2K]" "<Y2KPrep>" "PA-RKBA!" "L&J:" "PA-POL!" "\\[leatherparent]"))

I now tried this but unfortunately it seems to be just the same. It
will remove the string from some posts, not from others. Weird.

-- 
Regards, Anders
(address is valid)

Diner's Dilemma:
A clean tie attracts the soup of the day.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-22 15:28 Not removing annoying subject parts Anders Melchiorsen
  1998-09-22 15:37 ` Karl Kleinpaste
@ 1998-09-23 22:18 ` Lars Magne Ingebrigtsen
  1998-09-24  0:32   ` Anders Melchiorsen
  1 sibling, 1 reply; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-09-23 22:18 UTC (permalink / raw)


Anders Melchiorsen <postmaster@and.nospam.kampsax.k-net.dk> writes:

> (setq nnmail-list-identifiers  '("\\[SSLUG\\]" "nagnagnag"))

[...]

>    [   8:  Kaare Rasmussen    ] [SSLUG] Re: Riva 128

What does the complete Subject line for this article look like?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-23 22:18 ` Lars Magne Ingebrigtsen
@ 1998-09-24  0:32   ` Anders Melchiorsen
  1998-09-24  1:23     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Anders Melchiorsen @ 1998-09-24  0:32 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Anders Melchiorsen <postmaster@and.nospam.kampsax.k-net.dk> writes:
> 
> > (setq nnmail-list-identifiers  '("\\[SSLUG\\]" "nagnagnag"))
> 
> [...]
> 
> >    [   8:  Kaare Rasmussen    ] [SSLUG] Re: Riva 128
> 
> What does the complete Subject line for this article look like?

Subject: [SSLUG] Re: Riva 128


-- 
Regards, Anders
(address is valid)

Unnamed Law:
If it happens, it must be possible.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-24  0:32   ` Anders Melchiorsen
@ 1998-09-24  1:23     ` Lars Magne Ingebrigtsen
  1998-09-24 13:20       ` Anders Melchiorsen
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-09-24  1:23 UTC (permalink / raw)


Anders Melchiorsen <and@kampsax.dtu.dk> writes:

> > > (setq nnmail-list-identifiers  '("\\[SSLUG\\]" "nagnagnag"))
> > 
> > [...]
> > 
> > >    [   8:  Kaare Rasmussen    ] [SSLUG] Re: Riva 128
> > 
> > What does the complete Subject line for this article look like?
> 
> Subject: [SSLUG] Re: Riva 128

If I run `(nnmail-remove-list-identifiers)' in a buffer with that line 
in it, the "[SSLUG]" is removed.  So I'm unable to reproduce this
bug. 

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-24  1:23     ` Lars Magne Ingebrigtsen
@ 1998-09-24 13:20       ` Anders Melchiorsen
  1998-09-24 13:33         ` Karl Kleinpaste
  0 siblings, 1 reply; 14+ messages in thread
From: Anders Melchiorsen @ 1998-09-24 13:20 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> If I run `(nnmail-remove-list-identifiers)' in a buffer with that line 
> in it, the "[SSLUG]" is removed.  So I'm unable to reproduce this
> bug. 

Hmmm... to really try out that approach I entered the group with some
new messages. Some of them had it removed, some had not. I picked one
that had not and pressed Ctrl-Tab (to switch window to the article
buffer).

Pressing M-: alt entering "(nnmail-remove-list-identifiers)" placed
the cursor in the Subject line, right after the part that should be
removed (it was not removed since the buffer is read only).

So, it is only ignoring the identifier on some headers and when it
does it is actually able to find it when invoked manually. Weird!

Is there some hook or something that I may have screwed up?

-- 
Regards, Anders
(address is valid)

Gattuso's Extension:
Nothing is ever so bad that it can't get worse.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-24 13:20       ` Anders Melchiorsen
@ 1998-09-24 13:33         ` Karl Kleinpaste
  1998-09-24 15:41           ` Anders Melchiorsen
  0 siblings, 1 reply; 14+ messages in thread
From: Karl Kleinpaste @ 1998-09-24 13:33 UTC (permalink / raw)


Anders Melchiorsen <and@kampsax.dtu.dk> writes:
> So, it is only ignoring the identifier on some headers and when it
> does it is actually able to find it when invoked manually. Weird!

Just for clarification, to be sure there isn't a misunderstanding of
what's intended, list identifier removal is done during mail
splitting, not during group entry and *Summary* generation.  The
removal is done to the messages as they exist on disc.  Any messages
picked up before you started using a list of removable identifiers
will not change.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-24 13:33         ` Karl Kleinpaste
@ 1998-09-24 15:41           ` Anders Melchiorsen
  1998-09-24 17:24             ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Anders Melchiorsen @ 1998-09-24 15:41 UTC (permalink / raw)


Karl Kleinpaste <karl@jprc.com> writes:

> Anders Melchiorsen <and@kampsax.dtu.dk> writes:
> > So, it is only ignoring the identifier on some headers and when it
> > does it is actually able to find it when invoked manually. Weird!
> 
> Just for clarification, to be sure there isn't a misunderstanding of
> what's intended, list identifier removal is done during mail
> splitting, not during group entry and *Summary* generation.  The

I do realize that. It happens even with new mail (well, it is not
split that much since I have procmail splitting into groups).

Further investigation seems to suggest that it is only removed from
the first message of a batch. What appeared random might be the result 
of me importing mail several times without reading that group in between.

-- 
Regards, Anders
(address is valid)

Fourth Law of Hacking:
you will find the exit at the entrance.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-24 15:41           ` Anders Melchiorsen
@ 1998-09-24 17:24             ` Lars Magne Ingebrigtsen
  1998-09-24 23:10               ` Anders Melchiorsen
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-09-24 17:24 UTC (permalink / raw)


Anders Melchiorsen <and@kampsax.dtu.dk> writes:

> I do realize that. It happens even with new mail (well, it is not
> split that much since I have procmail splitting into groups).

If you have procmail splitting into the directories, no functions will
be run (at all) to wash the files.  

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-24 17:24             ` Lars Magne Ingebrigtsen
@ 1998-09-24 23:10               ` Anders Melchiorsen
  1998-09-29 10:32                 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Anders Melchiorsen @ 1998-09-24 23:10 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> > I do realize that. It happens even with new mail (well, it is not
> > split that much since I have procmail splitting into groups).
> 
> If you have procmail splitting into the directories, no functions will
> be run (at all) to wash the files.  

Oh. I have procmail splitting into spool files (one file for each
group) and Gnus tossing them into the destination groups (one file per 
message). Is that it?

But why is the nnmail-list-identifiers removed from the first article
on each import, then?

-- 
Regards, Anders
(address is valid)

Thom's Law of Marital Bliss:
The length of marriage is inversly proportional to the cost of the wedding.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-24 23:10               ` Anders Melchiorsen
@ 1998-09-29 10:32                 ` Lars Magne Ingebrigtsen
  1998-10-01  9:41                   ` Anders Melchiorsen
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-09-29 10:32 UTC (permalink / raw)


Anders Melchiorsen <postmaster@and.nospam.kampsax.k-net.dk> writes:

> Oh. I have procmail splitting into spool files (one file for each
> group) and Gnus tossing them into the destination groups (one file per 
> message). Is that it?

That should be ok.

> But why is the nnmail-list-identifiers removed from the first article
> on each import, then?

I'm unable to reproduce this bug.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-09-29 10:32                 ` Lars Magne Ingebrigtsen
@ 1998-10-01  9:41                   ` Anders Melchiorsen
  1998-10-01 14:23                     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Anders Melchiorsen @ 1998-10-01  9:41 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> > But why is the nnmail-list-identifiers removed from the first article
> > on each import, then?
> 
> I'm unable to reproduce this bug.

I figured it out. It turned out to be my fault after all :-/. I had
cut'n'pasted wrongly from the manual.

As I wrote in my initial mail, I had

  (add-hook 'nnmail-prepare-incoming-hook
    'nnmail-remove-list-identifiers)

which should, of course, have been

  (add-hook 'nnmail-prepare-incoming-header-hook
    'nnmail-remove-list-identifiers)


However, it was not until doing C-h v on nnmail-prepare-incoming-hook
that I realised that it is only called once for all imported messages
in a group (as opposed to once for each message). I do not think the
manual makes that obvious (in the washing section). When you know it,
you can deduce it from the description of
nnmail-prepare-incoming-message-hook but I never read that far before
using nnmail-prepare-incoming-hook.

Changing the description to include something like the on-line help
"The hook is run in a buffer with all the new, incoming mail" would
help, I think.

-- 
Regards, Anders
(address is valid)

Alan's Corollary:
Two wrongs don't make a right, but two Wrights make an airplane.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Not removing annoying subject parts
  1998-10-01  9:41                   ` Anders Melchiorsen
@ 1998-10-01 14:23                     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-01 14:23 UTC (permalink / raw)


Anders Melchiorsen <postmaster@and.nospam.kampsax.k-net.dk> writes:

> However, it was not until doing C-h v on nnmail-prepare-incoming-hook
> that I realised that it is only called once for all imported messages
> in a group (as opposed to once for each message). I do not think the
> manual makes that obvious (in the washing section).

I've now made this clearer.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~1998-10-01 14:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-22 15:28 Not removing annoying subject parts Anders Melchiorsen
1998-09-22 15:37 ` Karl Kleinpaste
1998-09-22 20:48   ` Anders Melchiorsen
1998-09-23 22:18 ` Lars Magne Ingebrigtsen
1998-09-24  0:32   ` Anders Melchiorsen
1998-09-24  1:23     ` Lars Magne Ingebrigtsen
1998-09-24 13:20       ` Anders Melchiorsen
1998-09-24 13:33         ` Karl Kleinpaste
1998-09-24 15:41           ` Anders Melchiorsen
1998-09-24 17:24             ` Lars Magne Ingebrigtsen
1998-09-24 23:10               ` Anders Melchiorsen
1998-09-29 10:32                 ` Lars Magne Ingebrigtsen
1998-10-01  9:41                   ` Anders Melchiorsen
1998-10-01 14:23                     ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).