alitrix |
05-24-2008 03:47 AM |
procmail removing headers after forwarding
Hi,
For some reason procmail isnīt duplicating the whole email when itīs forwarding.
/etc/procmail
Code:
PATH=/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/.mailbox/
DEFAULT=$HOME/.mailbox/
LOGFILE=$MAILDIR/from #recommended
:0Hh
* .*\@letscall.nl
.INBOX.aliLC/new/.
This should forward emails that are ment for *@letscall.nl to a IMAP-subdir.
Don't look at the procmail-rules, those work fine. I just wanted to test something.
Orginal email (~/testmail.txt):
Code:
Return-Path: <alitrix@gmail.com>
X-Original-To: alitrix@localhost
Delivered-To: alitrix@localhost
Received: by alitrix.nl (Postfix, from userid 1007)
id 3011362C1D0; Sat, 24 May 2008 16:36:30 +0200 (CEST)
X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on r1k7s19.kdiss.com
X-Spam-Level: **
X-Spam-Status: No, score=2.1 required=5.0 tests=HTML_MESSAGE,
HTML_SHORT_LENGTH,MISSING_SUBJECT,NO_RECEIVED,TO_CC_NONE autolearn=no
version=3.1.4
Received: from r1k7s19.kdiss.com (localhost [127.0.0.1])
by alitrix.nl (Postfix) with ESMTP id 0FA6762C082
for <alitrix@localhost>; Sat, 24 May 2008 16:36:25 +0200 (CEST)
Envelope-to: ali@letscall.nl
Delivery-date: Sat, 24 May 2008 10:31:52 +0200
Received: from mail.letscall.nl [81.4.97.190]
by r1k7s19.kdiss.com with POP3 (fetchmail-6.3.4)
for <alitrix@localhost> (single-drop); Sat, 24 May 2008 16:36:25 +0200 (CEST)
Received: from an-out-0708.google.com ([209.85.132.246])
by blade24.geenpunt.nl with esmtp (Exim 4.63)
(envelope-from <alitrix@gmail.com>)
id 1JzpAN-0000qQ-DS
for ali@letscall.nl; Sat, 24 May 2008 10:31:51 +0200
Received: by an-out-0708.google.com with SMTP id c38so237616ana.3
for <ali@letscall.nl>; Sat, 24 May 2008 01:31:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type;
bh=rlbtInY6KRTZg0R8gzXdHCminImaA5sLZtcOoPQAAD4=;
b=c2CdtRt/vaakBxGxaz6Iiyfr2FErj8dffVPizEapTaJtG1mssK1oj29gb0js2IUxtMHmZQDSWRsm4t0ddTco776JT2IKmS/JNZPWwbL9XfwaO3BT2sfbOkKKgsXYQVPN/l88MYTsGAaxilq0adJ8ssSCQ9HHVA30f8niMHgeKaQ=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=message-id:date:from:to:subject:mime-version:content-type;
b=MGQh090HWftfq/Rebq8uS3wvFJiBvM0YMUIvkzU7wJDr9hQFWN0QM5+vW7gazH61BvxqEir22sH1434MeXsVLgqPZ4vZ6062AGwD5CgJaVzGughA0Eu6t/cTOADTwuJTulbJ8BZjND/9CWq8aW6jjDVaVkrhLpucZlmfGVVBscU=
Received: by 10.100.228.17 with SMTP id a17mr3425165anh.100.1211617909932;
Sat, 24 May 2008 01:31:49 -0700 (PDT)
Received: by 10.100.178.6 with HTTP; Sat, 24 May 2008 01:31:49 -0700 (PDT)
Message-ID: <d004dafc0805240131o77b5693ajf58f76dce941508b@mail.gmail.com>
Date: Sat, 24 May 2008 10:31:49 +0200
From: "Alitrix aka Ali" <alitrix@gmail.com>
To: ali@letscall.nl
Subject: testing.... with new stuff
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_17727_13626508.1211617909927"
------=_Part_17727_13626508.1211617909927
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
adfasdf
asd
f
asdf
------=_Part_17727_13626508.1211617909927
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
adfasdf<br>asd<br>f<br>asdf<br>
------=_Part_17727_13626508.1211617909927--
Forwarded mail (too ~/.mailbox/.INBOX.aliLC/new/):
Code:
Return-Path: <alitrix@gmail.com>
X-Original-To: alitrix@localhost
Delivered-To: alitrix@localhost
Received: by alitrix.nl (Postfix, from userid 1007)
id 3011362C1D0; Sat, 24 May 2008 16:36:30 +0200 (CEST)
X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on r1k7s19.kdiss.com
X-Spam-Level: **
X-Spam-Status: No, score=2.1 required=5.0 tests=HTML_MESSAGE,
HTML_SHORT_LENGTH,MISSING_SUBJECT,NO_RECEIVED,TO_CC_NONE autolearn=no
version=3.1.4
Received: from r1k7s19.kdiss.com (localhost [127.0.0.1])
by alitrix.nl (Postfix) with ESMTP id 0FA6762C082
for <alitrix@localhost>; Sat, 24 May 2008 16:36:25 +0200 (CEST)
Envelope-to: ali@letscall.nl
Delivery-date: Sat, 24 May 2008 10:31:52 +0200
Received: from mail.letscall.nl [81.4.97.190]
by r1k7s19.kdiss.com with POP3 (fetchmail-6.3.4)
for <alitrix@localhost> (single-drop); Sat, 24 May 2008 16:36:25 +0200 (CEST)
Received: from an-out-0708.google.com ([209.85.132.246])
by blade24.geenpunt.nl with esmtp (Exim 4.63)
(envelope-from <alitrix@gmail.com>)
id 1JzpAN-0000qQ-DS
for ali@letscall.nl; Sat, 24 May 2008 10:31:51 +0200
Received: by an-out-0708.google.com with SMTP id c38so237616ana.3
for <ali@letscall.nl>; Sat, 24 May 2008 01:31:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type;
bh=rlbtInY6KRTZg0R8gzXdHCminImaA5sLZtcOoPQAAD4=;
b=c2CdtRt/vaakBxGxaz6Iiyfr2FErj8dffVPizEapTaJtG1mssK1oj29gb0js2IUxtMHmZQDSWRsm4t0ddTco776JT2IKmS/JNZPWwbL9XfwaO3BT2sfbOkKKgsXYQVPN/l88MYTsGAaxilq0adJ8ssSCQ9HHVA30f8niMHgeKaQ=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=message-id:date:from:to:subject:mime-version:content-type;
b=MGQh090HWftfq/Rebq8uS3wvFJiBvM0YMUIvkzU7wJDr9hQFWN0QM5+vW7gazH61BvxqEir22sH1434MeXsVLgqPZ4vZ6062AGwD5CgJaVzGughA0Eu6t/cTOADTwuJTulbJ8BZjND/9CWq8aW6jjDVaVkrhLpucZlmfGVVBscU=
Received: by 10.100.228.17 with SMTP id a17mr3425165anh.100.1211617909932;
Sat, 24 May 2008 01:31:49 -0700 (PDT)
Received: by 10.100.178.6 with HTTP; Sat, 24 May 2008 01:31:49 -0700 (PDT)
Message-ID: <d004dafc0805240131o77b5693ajf58f76dce941508b@mail.gmail.com>
Date: Sat, 24 May 2008 10:31:49 +0200
From: "Alitrix aka Ali" <alitrix@gmail.com>
To: ali@letscall.nl
Subject: testing.... with new stuff
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_17727_13626508.1211617909927"
I tested it on 2 ways: - Through mailbox_command in /etc/postfix/main.cf
- Through 'procmail < ~/testmail.txt'
Both forward the email correct, but everything after the "Content-Type" is removed :(
Does somebody know what's going on?
Greetz,
Ali
|