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:
|
|