From: Thomas Hurst Date: 2001-12-30T00:00:39+09:00 Subject: [ruby-talk:29634] Re: Subject numbers and threading * Hal E. Fulton (hal9000@hypermetrics.com) wrote: > Anyhow, I'll quietly go along with Matz and/or the majority on this > issue. Enough said already. If your mailer (use mutt) doesn't have the ability to thread purely on message-id (use mutt) or simply insists on creating a new thread every time it thinks the subject changes (use mutt), you can (use mutt) make a procmail recipe which will move the list header for you (use mutt), ala: (here keeping topical :) :0fw | ruby -n \ -e 'if /^Subject: (.*)(\[ruby-talk:[0-9]+\])(.*)$/ =~ ($_.chomp)' \ -e ' puts "Subject: #{$1 $3}"' \ -e ' puts "X-Ruby: #{$2}"' \ -e ' puts "X-Use: mutt"' \ -e 'else' \ -e ' print $_' \ -e 'end' Proper handling of CRLF, subject lines appearing in message bodies, and fixing any dumb mistakes are left as an exercise for the reader. (use mutt) -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ - I know not how I came into this, shall I call it a dying life or a living death? -- St. Augustine