<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">On 20.11.2018 23.51, <a class="moz-txt-link-abbreviated" href="mailto:jon.sp2@wp.pl">jon.sp2@wp.pl</a>
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:24460be80389474aa09be7e678386ebe@grupawp.pl">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>Hi,<br>
</div>
<div><br>
</div>
<div>Could you please advice how I can replace envelope of a
message received on my server? Best would be using sieve.<br>
</div>
<div><br>
</div>
<div>Simple case - email <a href="mailto:A@example.com"
moz-do-not-send="true">A@example.com</a> receives message,
which I'd like to repack into new envelope (I want to have
control what values in the envelope will be there - from, to,
replay-to et.c) and send to <a href="mailto:B@test.com"
moz-do-not-send="true">B@test.com</a>.<br>
</div>
<div><br>
</div>
<div>At first I wanted to use editheader extension, but it is not
allowing me to modify From or To values as far as I can tell.
Another idea was to use envelope, but I don't see any way of
editing values. Only reading.<br>
</div>
<div><br>
</div>
<div>Now, I am thinking of writing script and from sieve it will
be passed there, where I'll do message parsing and send new
message using mutt or something similar. Frankly speaking I
suppose there is much better solution to that and I'd appreciate
any advice on the topic.<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
<div>Jon</div>
</blockquote>
<p>sieve redirect could maybe do this?<br>
</p>
<p>Aki<br>
</p>
</body>
</html>