Summary | Time period - vacation error |
Queue | Ingo |
Queue Version | 1.2-RC2 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | selsky (at) columbia (dot) edu |
Requester | linuxbox (at) wavenet (dot) at |
Created | 03/20/2008 (6352 days ago) |
Due | 03/20/2008 (6352 days ago) |
Updated | 06/18/2008 (6262 days ago) |
Assigned | 06/18/2008 (6262 days ago) |
Resolved | 06/18/2008 (6262 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
lg
Martin
State ⇒ Feedback
yes the time period works now with the patch - a reply mail is
correctly sent BUT
the incoming mail is not stored in my mailbox any more ....
http://cvs.horde.org/diff.php/ingo/docs/CHANGES?r1=1.55.2.99&r2=1.55.2.100&ty=u
http://cvs.horde.org/diff.php/ingo/lib/Script/procmail.php?r1=1.46.10.28&r2=1.46.10.29&ty=u
http://cvs.horde.org/diff.php/ingo/docs/CHANGES?r1=1.194&r2=1.195&ty=u
http://cvs.horde.org/diff.php/ingo/lib/Script/procmail.php?r1=1.96&r2=1.97&ty=u
additional brackets from the patch it now works fine.
thanks!
New Attachment: procmail.patch
procmail experts on what's wrong with our generated .procmailrc that
would be great.
Assigned to Matt Selsky
Thank you for your work.
I patched procmail.php and it produces the file on the bottom but
does not send an reply email (find the log also on the bottom) -
BUT
it generates a file named ":0" in my home directory - output
you can find also at the bottom
lg
Martin
.procmailrc
-----------------------------------------------------
##### Abwesenheit #####
:0
{
FILEDATE=`test -f '.vacation.martin.hochreiter' && ls -lcn
--time-style=+%s '.vacation.martin.hochreiter' | awk '{ print $6 +
(172800) }'`
DATE=`date +%s`
DUMMY=`test -f '.vacation.martin.hochreiter' && test $FILEDATE -le
$DATE && rm '.vacation.martin.hochreiter'`
START=1210024800
END=1210111200
:0 Whc: vacation.lock
* ? test $DATE -gt $START && test $END -gt $DATE
:0 Whaf
* ^TO_martin.hochreiter
* !^X-Loop: martin.hochreiter
* !^X-Spam-Flag: YES
* !^From.*root@xxx.xx
* !^From.*webmaster@xxx.xx
* !^From.*log@xxx.xx,
* !^FROM_DAEMON
| formail -rD 8192 .vacation.martin.hochreiter
:0 ehc
| (formail -rI"Precedence: junk" \
-a"From: <martin.hochreiter>" \
-A"X-Loop: martin.hochreiter" \
-i"Subject: Urlaubsmeldung" \
-i"Content-Transfer-Encoding: quoted-printable" \
-i"Content-Type: text/plain; charset=UTF-8" ; \
-----------------------------------------------------
procmail log:
--------------------------------------------------------------
procmail: Skipped "Whaf"
procmail: Skipped "* ^TO_martin.hochreiter"
procmail: Skipped "* !^X-Loop: martin.hochreiter"
procmail: Skipped "* !^X-Spam-Flag: YES"
procmail: Skipped "* !^From.*root@xxx.xx"
procmail: Skipped "* !^From.*webmaster@xxx.xx"
procmail: Skipped "* !^From.*log@xxx.xx,"
procmail: Skipped "* !^FROM_DAEMON"
procmail: Skipped "| formail -rD 8192 .vacation.martin.hochreiter"
procmail: Skipped "Whaf"
procmail: Skipped "* ^TO_martin_hochreiter"
procmail: Skipped "* !^X-Loop: martin_hochreiter"
procmail: Skipped "* !^X-Spam-Flag: YES"
procmail: Skipped "* !^From.*root@xxx.xx"
procmail: Skipped "* !^From.*webmaster@xxx.xx"
procmail: Skipped "* !^From.*log@xxx.xx,"
procmail: Skipped "* !^FROM_DAEMON"
procmail: Skipped "| formail -rD 8192 .vacation.martin_hochreiter"
From martin.hochreiter@yyy.yy Tue May 6 13:35:10 2008
Subject: test
Folder:
/home/martin_hochreiter/Maildir/new/1210073710.10309_2.linux 4155
--------------------------------------------------------------
produced file :0 :
------------------------------------------------------------------
From martin.hochreiter@yyy.yy Tue May 6 13:35:10 2008
Return-Path: <martin.hochreiter@yyy.yy>
X-Original-To: martin_hochreiter@mail.xxx.xx
Delivered-To: martin_hochreiter@mail.xxx.xx
Received: from localhost (localhost [127.0.0.1])
by mail.xxx.xx (Postfix) with ESMTP id 3B931B96FB
for <martin_hochreiter@mail.xxx.xx>; Tue, 6 May 2008 13:35:10 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mail.xxx.xx
Received: from mail.xxx.xx ([127.0.0.1])
by localhost (mail.xxx.xx [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id DRGpnCaxqS5q
for <martin_hochreiter@mail.xxx.xx>;
Tue, 6 May 2008 13:35:07 +0200 (CEST)
Received: from scalix.yyy.yy (scalix.yyy.yy [195.202.144.3])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by mail.xxx.xx (Postfix) with ESMTPS id 6BD44B96F5
for <martin.hochreiter@xxx.xx>; Tue, 6 May 2008 13:35:06 +0200 (CEST)
MailScanner-NULL-Check: 1210678495.59215@UHHnSw//utRH4988ysGNag
Received: from scalix.yyy.yy (localhost [127.0.0.1])
by scalix.yyy.yy (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id m46BYtqa026770
for <martin.hochreiter@xxx.xx>; Tue, 6 May 2008 13:34:55 +0200
Received: from [10.222.0.240] (fwint.yyy.yy [195.202.144.1])
by scalix.yyy.yy (Scalix SMTP Relay 11.3.0.11339)
via ESMTP; Tue, 06 May 2008 13:34:20 +0200 (CEST)
Date: Tue, 6 May 2008 13:34:23 +0200
From: Martin Hochreiter <martin.hochreiter@yyy.yy>
To: martin.hochreiter@xxx.xx
Message-ID: <4820423F.3010008@yyy.yy>
Subject: test
x-scalix-Hops: 1
User-Agent: Thunderbird 2.0.0.12 (X11/20080227)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="------------070109070806060504000007"
X-FH-StP-MailScanner-Information: Please contact the ISP for more information
X-MailScanner-ID: m46BYtqa026770
X-FH-StP-MailScanner: Found to be clean
X-FH-StP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,
score=-104.264, required 3, autolearn=not spam, ALL_TRUSTED -1.80,
BAYES_00 -2.60, HTML_50_60 0.13, HTML_MESSAGE 0.00,
USER_IN_WHITELIST -100.00)
X-FH-StP-MailScanner-From: martin.hochreiter@yyy.yy
From martin.hochreiter@yyy.yy Tue May 6 13:35:10 2008
Return-Path: <martin.hochreiter@yyy.yy>
X-Original-To: martin_hochreiter@mail.xxx.xx
Delivered-To: martin_hochreiter@mail.xxx.xx
Received: from localhost (localhost [127.0.0.1])
by mail.xxx.xx (Postfix) with ESMTP id 3B931B96FB
for <martin_hochreiter@mail.xxx.xx>; Tue, 6 May 2008 13:35:10 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mail.xxx.xx
Received: from mail.xxx.xx ([127.0.0.1])
by localhost (mail.xxx.xx [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id DRGpnCaxqS5q
for <martin_hochreiter@mail.xxx.xx>;
Tue, 6 May 2008 13:35:07 +0200 (CEST)
Received: from scalix.yyy.yy (scalix.yyy.yy [195.202.144.3])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by mail.xxx.xx (Postfix) with ESMTPS id 6BD44B96F5
for <martin.hochreiter@xxx.xx>; Tue, 6 May 2008 13:35:06 +0200 (CEST)
MailScanner-NULL-Check: 1210678495.59215@UHHnSw//utRH4988ysGNag
Received: from scalix.yyy.yy (localhost [127.0.0.1])
by scalix.yyy.yy (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id m46BYtqa026770
for <martin.hochreiter@xxx.xx>; Tue, 6 May 2008 13:34:55 +0200
Received: from [10.222.0.240] (fwint.yyy.yy [195.202.144.1])
by scalix.yyy.yy (Scalix SMTP Relay 11.3.0.11339)
via ESMTP; Tue, 06 May 2008 13:34:20 +0200 (CEST)
Date: Tue, 6 May 2008 13:34:23 +0200
From: Martin Hochreiter <martin.hochreiter@yyy.yy>
To: martin.hochreiter@xxx.xx
Message-ID: <4820423F.3010008@yyy.yy>
Subject: test
x-scalix-Hops: 1
User-Agent: Thunderbird 2.0.0.12 (X11/20080227)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="------------070109070806060504000007"
X-FH-StP-MailScanner-Information: Please contact the ISP for more information
X-MailScanner-ID: m46BYtqa026770
X-FH-StP-MailScanner: Found to be clean
X-FH-StP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached,
score=-104.264, required 3, autolearn=not spam, ALL_TRUSTED -1.80,
BAYES_00 -2.60, HTML_50_60 0.13, HTML_MESSAGE 0.00,
USER_IN_WHITELIST -100.00)
X-FH-StP-MailScanner-From: martin.hochreiter@yyy.yy
--------------------------------------------------------------
State ⇒ Feedback
Taken from ben
http://lists.horde.org/archives/cvs/Week-of-Mon-20080428/077998.html
State ⇒ Assigned
So .. I am a little bit the man in the middle:
That's what I got from the procmail list to the
code Ingo generates:
--------------------------------------------------------------------------------------------
:0 Whc: vacation.lock
| /bin/sh -c 'if [ $DATE -gt $START ]; then if [ $END -gt $DATE ];
then true; else false;fi;fi;'
--------------------------------------------------------------------------------------------
This will never work...
It should be:
:0 Whc: vacation.lock
* ? test $DATE -gt $START && test $END -gt $DATE
--------------------------------------------------------------------------------------------
State ⇒ Resolved
---------------------------------------------------------------------------------------
<foo@bar.rk-lilienfeld.at>: Host or domain name not found. Name service error
for name=bar.rk-lilienfeld.at type=AAAA: Host not found
---------------------------------------------------------------------------------------
server, or some invalid email address being used.
---------------------------------------------------------------------------------------
Folder: /home/office/Maildir//.SPAM/new/1206436443.4314_0.linux1
1821
procmail: Error while writing to " /bin/sh -c 'if [ $DATE -gt $START
]; then if [ $END -gt $DATE ]; then true; else false;fi;fi;'"
exactly the error is. This still is not an Ingo issue, but probably a
problem with your procmail setup. Try running that code manually and
see what happens. For further help ask on the Ingo or Procmail mailing
list.
I installed ingo from scratch - without any advancments (see procmail.log).
Additionally the sender gets a mail returned with:
---------------------------------------------------------------------------------------
<foo@bar.rk-lilienfeld.at>: Host or domain name not found. Name service error
for name=bar.rk-lilienfeld.at type=AAAA: Host not found
---------------------------------------------------------------------------------------
Maybe there is missing a package or something on Suse?
procmail.log
---------------------------------------------------------------------------------------
Folder: /home/office/Maildir//.SPAM/new/1206436443.4314_0.linux1
1821
procmail: Error while writing to " /bin/sh -c 'if [ $DATE -gt $START
]; then if [ $END -gt $DATE ]; then true; else false;fi;fi;'"
Folder:
/home/martin_hochreiter/Maildir/new/1206436500.4359_2.linux1 1782
procmail: Error while writing to " /bin/sh -c 'if [ $DATE -gt $START
]; then if [ $END -gt $DATE ]; then true; else false;fi;fi;'"
procmail: Error while writing to " /bin/sh -c 'if [ $DATE -gt $START
]; then if [ $END -gt $DATE ]; then true; else false;fi;fi;'"
---------------------------------------------------------------------------------------
Filter (ingo) H3 (1.2-RC2)
I'll try to install a full version of ingo (I used the patch)- I did had
troubles with paching dimp too, if I use the "full" version it worked.
I'll report afterwards
lg
lg
State ⇒ Feedback
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Due ⇒ 03/20/2008
Summary ⇒ Time period - vacation error
Type ⇒ Bug
Queue ⇒ Ingo
If you set up a starting an ending time in the prebuild vacation rule
of ingo then you got the following error message in the procmail.log
(and no vacation answer mail of course)
/bin/sh: line 0: [: 1177587873-gt: unary operator expected
procmail: Error while writing to " /bin/sh -c 'if [ $DATE-gt $START ];
then if [ $END -gt $DATE ]; then true; else false;fi;fi;
I am using the latest RC Versions of Horde, Imp and Ingo on a Suse
10.1 Linux (Kernel 2.6.16.54-0.2.5)
Package Versions
Procmail 3.22-56
postfix 2.2.9-10
courier-imap 4.1.2-47.1
php 5.1.2-29.50
apache 2.2.6-4.2
mysql 5.0.26-12.16