maillist.php creating empty posts [message #17582] |
Mon, 05 April 2004 23:26 |
sutehi
Messages: 5 Registered: April 2004
Karma: 0
|
Junior Member |
|
|
I'm not sure if this is an installation issue, or a bug, but since I can't find any other posts about the problem in these forums, I assume the problem is at my end
I've got a brand-spanking new installation (stable version--2.6.1) running on a redhat server, with up to date versions of PHP and MySQL.
I'm currently trying to get the forums<->mailing list integration working. I have a GNU Mailman mailing list (version 2.1), which I have associated with a forum in the FUD Mailing List Manager. I've added the appropriate procmail filter (pasted from the MLM, with the script location fixed).
Now, when I add a post directly to the forums, it gets posted as expected to the mailing list (albeit with a blank subject line. I note that there's a thread about this problem, which I'll be looking at shortly).
When I submit a message to the mailing list, a post likewise gets added to the appropriate FUD forum, with the subject line and poster name appropriately set. However, the body of the post is empty. I'm not entirely sure where to go next to troubleshoot this. maillist.php appears to run without errors (nothing in procmail.log, or in standard error when I run it manually).
I'm not sure what other information might be relevant. Body mangling has been left blank.
If anyone can recommend a place to start looking, it would be greatly appreciated!
Thanks in advance.
|
|
|
|
Re: maillist.php creating empty posts [message #17597 is a reply to message #17590] |
Tue, 06 April 2004 14:58 |
sutehi
Messages: 5 Registered: April 2004
Karma: 0
|
Junior Member |
|
|
> Fixed in CVS.
I've just re-installed from the current CVS, and now maillist.php *does* generate errors when trying to import a mail list message to the forums.
~test.data is my data directory
~test.cp is the web root for FUD
test(at)listserv(dot)domain(dot)net is the mail list address for my forum.
----------------------------------------------------------------
procmail: Match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To).*[^-a-zA-Z0-9_.])?).*test(at)listserv(dot)clutchpig(dot)net"
procmail: Assigning "LASTFOLDER=/u2/afs/home/arakune/web_tree/test.data/scripts/maillist.php 1"
From test-bounces(at)listserv(dot)domain(dot)net Tue Apr 6 10:34:47 2004
Subject: [test] test from email to forums 2
Folder: /u2/afs/home/arakune/web_tree/test.data/scripts/maillist.php 2576
procmail: Notified comsat: "arakune@:/u2/afs/home/arakune/web_tree/test.data/scripts/maillist.php 1"
procmail: Unlocking "/afs/home/arakune/.lockmail"
procmail: Executing "/u2/afs/home/arakune/web_tree/test.data/scripts/maillist.php,1"
/u2/afs/home/arakune/web_tree/test.data/scripts/maillist.php: From: command not found
/u2/afs/home/arakune/web_tree/test.data/scripts/maillist.php: syntax error near unexpected token `<test-bounces(at)listserv(dot)domain(dot)net>'
/u2/afs/home/arakune/web_tree/test.data/scripts/maillist.php: /u2/afs/home/arakune/web_tree/test.data/scripts/maillist.php: line 2: `Return-Path: <test-bounces(at)listserv(dot)domain(dot)net>'
------------------------------------------------------
As near as I can tell (and I could be way off on this), it seems to be having trouble parsing the message headers. If this is indeed the case, the message headers from the post are as follows:
----------------------------------------------------------------
From test-bounces(at)listserv(dot)domain(dot)net Tue Apr 6 10:37:32 2004
Return-Path: <test-bounces(at)listserv(dot)domain(dot)net>
Received: from psmtp.com by cadence.domain.org (8.9.3/linuxconf)
with SMTP id KAA21208 for <stephanie(at)domain(dot)org>; Tue, 6
Apr 2004 10:37:30 -0400
Received: from peltier.cp.domain.org (peltier.cp.domain.org [127.0.0.1])
by peltier.cp.domain.org (8.11.6/8.11.6) with ESMTP id i36EbQM30099
for <stephanie(at)domain(dot)org>; Tue, 6 Apr 2004 10:37:26 -0400
X-Mailman-Handler: $Id: mm-handler,v 1.2 2002/04/05 19:41:09 bwarsaw Exp $
Received: from cadence.domain.org (IDENT:root(at)cadence(dot)domain(dot)org)
by peltier.cp.domain.org (8.11.6/8.11.6) with ESMTP id i36EbOM30093
for <test(at)listserv(dot)domain(dot)net>; Tue, 6 Apr 2004 10:37:21 -0400
Received: (from arakune@localhost)
by cadence.domain.org (8.9.3/linuxconf) id KAA21190
for test(at)listserv(dot)domain(dot)net; Tue, 6 Apr 2004 10:37:20 -0400
Date: Tue, 6 Apr 2004 10:37:20 -0400
From: Steph Smith <stephanie(at)domain(dot)org>
To: test(at)listserv(dot)domain(dot)net
Message-ID: <20040406143720(dot)GA1518(at)cadence(dot)domain(dot)org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.1i
Subject: [Test] test from email to forum 3
X-BeenThere: test(at)listserv(dot)domain(dot)net
X-Mailman-Version: 2.1
Precedence: list
Reply-To: Steph Smith <stephanie(at)domain(dot)org>
List-Id: <test.listserv.domain.net>
List-Unsubscribe: <http://listserv.domain.net/mailman/listinfo/test>,
<mailto:test-request(at)listserv(dot)domain(dot)net?subject=unsubscribe>
List-Archive: <http://listserv.domain.net/pipermail/test>
List-Post: <mailto:test(at)listserv(dot)domain(dot)net>
List-Help: <mailto:test-request(at)listserv(dot)domain(dot)net?subject=help>
List-Subscribe: <http://listserv.domain.net/mailman/listinfo/test>,
<mailto:test-request(at)listserv(dot)domain(dot)net?subject=subscribe>
Sender: test-bounces(at)listserv(dot)domain(dot)net
Errors-To: test-bounces(at)listserv(dot)domain(dot)net
X-pstn-levels: (S:99.90000/99.90000 R:95.9108 P: 0.0000 M:99.4056 C:81.6251 )
X-pstn-settings: 3 (1.0000:25.0000) r P m C
X-pstn-addresses: from <stephanie(at)domain(dot)org> [652/24]
-----------------------------------------------------------------
I tried removing the first 'From' line (on the chance that it was confused by it), and piped the message to maillist.php manually, but the same errors appeared.
[Updated on: Tue, 06 April 2004 14:59] Report message to a moderator
|
|
|
|
|
|
Re: Re : maillist.php creating empty posts [message #35611 is a reply to message #35606] |
Wed, 24 January 2007 23:54 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to make sure that the messages directory and the files in it are chmoded 666 to allow the user procmail runs as to write to them and allow the forum to do the same.
FUDforum Core Developer
|
|
|
|
|
|
|
|