Great Circle Associates Majordomo-Users
(September 1998)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: masquerading header From
From: Ben Smithurst <ben @ scientia . demon . co . uk>
Date: Wed, 16 Sep 1998 20:10:07 +0100
To: ramon . lopez @ afina . es, majordomo-users @ GreatCircle . COM
In-reply-to: <35FF9399.65AC1CD2@afina.es>
References: <35FF9399.65AC1CD2@afina.es>
User-agent: Mutt/0.94.3i (FreeBSD 3.0-CURRENT i386)

Jose Ramon Lopez wrote:

> In my company we had an majordomo list to talk about our work in a
> criticize way, so it is very dangerous talk about things like: my boss
> is stupid becouse........, I think that is wrong...... and so.
> 
> So we need to masquerading the **From header** of the person that post
> the messages to the list. 
> 
> Now, this is the headers of messages sent to the list
> 
> -----------------------
> From: user@domain.com
> To: list-name@domain.com
> ----------------------------
> 
> I want to set-up majordomo to achieve this:
> 
> ------------------------------
> From: none
> To: list-name@domain
> ------------------------------

Yes, by editing the source code. Look in the resend script for a block
something like,

$skip_headers = '/^from /i' .
          '|| /^x-confirm-reading-to:/i' .
[...]
          '|| /^encoding:/i'
          ;

Somewhere within that block, add a line like

        '|| /^from:/i' .

(make sure you include the dot at the end). This will make the From:
header be removed. Repeat as needed for other identifying headers, for
example reply-to:, message-id:.

There are probably better ways, such as stripping _all_  headers, except
Subject:. Try this to acheive that.. look for a block like

  if (eval $skip_headers) {
     $kept_last = 0;
[...]

Then replace 

  eval $skip_headers

with

  !/^subject:/i

or, to keep Date: as well,

  !/^subject:/i && !/^date:/i

Expand as needed for other headers to want to keep.  This will skip all
headers except subject.  (This, I think, will break multiline subject:
headers, but those seem fairly rare.)  You may like to add

From: none
To: list@domain

to the message_headers block in the config file too.

-- 
Ben Smithurst : ben@scientia.demon.co.uk : http://www.scientia.demon.co.uk/

PGP: 0x99392F7D - 3D 89 87 42 CE CA 93 4C  68 32 0E D5 36 05 3D 16
     http://www.scientia.demon.co.uk/ben/pgp-key.html (or use keyservers)


References:
Indexed By Date Previous: Re: welc
From: Marilyn Davis <marilyn@deliberate.com>
Next: Re: newaliases problems continue
From: Mats Dufberg <Mats.Dufberg@abc.se>
Indexed By Thread Previous: Re: masquerading header From
From: Raven <raven@Tribe.OnlineToday.Com>
Next: Re: masquerading header From
From: Michael Salmon <Michael.Salmon@uab.ericsson.se>

Google
 
Search Internet Search www.greatcircle.com