FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » maillist.php creating empty posts
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
maillist.php creating empty posts [message #17582] Mon, 05 April 2004 23:26 Go to next message
sutehi is currently offline  sutehi   Canada
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 Wink

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 #17590 is a reply to message #17582] Tue, 06 April 2004 13:07 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS.

FUDforum Core Developer
Re: maillist.php creating empty posts [message #17597 is a reply to message #17590] Tue, 06 April 2004 14:58 Go to previous messageGo to next message
sutehi is currently offline  sutehi   Canada
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)Sad.*[^-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: maillist.php creating empty posts [message #17599 is a reply to message #17597] Tue, 06 April 2004 15:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Change you execution line to
php /u2/afs/home/arakune/web_tree/test.data/scripts/maillist.php 1

I think the problem is that it tries to run maillist.php as a shell script and not a PHP script.
Re: maillist.php creating empty posts [message #17601 is a reply to message #17597] Tue, 06 April 2004 15:55 Go to previous messageGo to next message
sutehi is currently offline  sutehi   Canada
Messages: 5
Registered: April 2004
Karma: 0
Junior Member
Aha! That did it.

Thanks so much for all of your help (and for a great piece of software)! =D I'm very excited about the forum to mail list mirroring (this is something that I've been looking for, for some time).
Re : maillist.php creating empty posts [message #35606 is a reply to message #17582] Wed, 24 January 2007 21:13 Go to previous messageGo to next message
DiliaK is currently offline  DiliaK   France
Messages: 24
Registered: May 2006
Location: Villeurbanne, France
Karma: 0
Junior Member

Hello,

Same problem in FUDforum 2.7.6. : Body is empty.
Is there an issue ?

Edit:

I found why.
The topic is registered on "messages" folder by procmail with name of procmail user. I use different name (apache) and it is unreadable.


Pat.
http://www.fudforum.fr
Il faut être con pour vivre avec les cons. J'ai essayé, on peut.
San Antonio.

[Updated on: Wed, 24 January 2007 21:39]

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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re : maillist.php creating empty posts [message #35616 is a reply to message #17582] Thu, 25 January 2007 11:35 Go to previous messageGo to next message
DiliaK is currently offline  DiliaK   France
Messages: 24
Registered: May 2006
Location: Villeurbanne, France
Karma: 0
Junior Member

Hello Illia,

They are 666. But apache:apache and when procmail work, it change it to maildiliak:maildiliak... and forum display empty topics.


Pat.
http://www.fudforum.fr
Il faut être con pour vivre avec les cons. J'ai essayé, on peut.
San Antonio.
Re: Re : maillist.php creating empty posts [message #35618 is a reply to message #35616] Thu, 25 January 2007 13:36 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well, the topics that could not be written before are gone, the fix will only help subsequent messages.

FUDforum Core Developer
Re : Re: Re : maillist.php creating empty posts [message #35625 is a reply to message #35618] Thu, 25 January 2007 20:46 Go to previous messageGo to next message
DiliaK is currently offline  DiliaK   France
Messages: 24
Registered: May 2006
Location: Villeurbanne, France
Karma: 0
Junior Member

They are written on messages directory but not readable.
If i change to apache:apache after procmailrc work, messages appears on forum.


Pat.
http://www.fudforum.fr
Il faut être con pour vivre avec les cons. J'ai essayé, on peut.
San Antonio.
Re: Re : Re: Re : maillist.php creating empty posts [message #35626 is a reply to message #35625] Thu, 25 January 2007 23:39 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Just chmod the file 666 and you'll be fine, then the owner of the file wouldn't matter.

FUDforum Core Developer
Re : maillist.php creating empty posts [message #35656 is a reply to message #17582] Mon, 29 January 2007 14:01 Go to previous message
DiliaK is currently offline  DiliaK   France
Messages: 24
Registered: May 2006
Location: Villeurbanne, France
Karma: 0
Junior Member

Yes that's it.
My .procmailrc make messages on user name of my mail account but make it on 600. I must change it to 666. I am trying to do it on my .procmailrc file.


Pat.
http://www.fudforum.fr
Il faut être con pour vivre avec les cons. J'ai essayé, on peut.
San Antonio.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Fudforum upgrade from 2,7.3 to 2.7.6
Next Topic: SUSE Installation Question
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 18 01:59:43 GMT 2024

Total time taken to generate the page: 0.02648 seconds