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

Home » FUDforum » FUDforum Installation Issues » MailLIst configuration issue -- mail from list does not show up
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
MailLIst configuration issue -- mail from list does not show up [message #18583] Sat, 29 May 2004 12:38 Go to next message
mayank_r_jain is currently offline  mayank_r_jain   India
Messages: 7
Registered: May 2004
Karma: 0
Junior Member
I installed fudforum as part of the EGW -- FUDforum 2.6.0 (FUDeGW)

First I had issues regarding the maillist.php not being where the UI suggested. I created the scripts directory. copied maillist.php there. set up procmailrc.

Now when I post message to the forum, the list gets mail-- so that part is working fine. However when someone sends a mail to the list, it gets send back to the list but does not show up on the web forum.

When i run
cat message.txt | /path/to/maillist.php 1
it just prints 2 blank lines and the message does not show up on the web

on doing, cat message.txt | php /path/to/maillist.php it says

X-Powered-By: PHP/4.2.2
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Location: /egroupware/login.php?cd=10&phpgw_forward=%252F
Content-type: text/html

and nothing else.

I tried changing the perms on a whole lot of files in the include directory and the path up to it (all under the writeable directory).

Can someone please tell me what I am doing wrong?

Thanks.

Mayank

[Updated on: Sat, 29 May 2004 12:39]

Report message to a moderator

Re: MailLIst configuration issue -- mail from list does not show up [message #18593 is a reply to message #18583] Sat, 29 May 2004 17:03 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
First it would seem that you are using PHP-CGI and not PHP-CLI.

You should be running the script as "cat message.txt | /path/to/maillist.php 1"

What is the cvs revision of the maillist.php you are using, it should be 1.5 or 1.4.


FUDforum Core Developer
Re: MailLIst configuration issue -- mail from list does not show up [message #18596 is a reply to message #18593] Sat, 29 May 2004 19:45 Go to previous messageGo to next message
mayank_r_jain is currently offline  mayank_r_jain   India
Messages: 7
Registered: May 2004
Karma: 0
Junior Member
Hello,

Thank you for the reply.

The maillist.php version is:
* $Id: maillist.php,v 1.5 2004/04/01 16:04:58 petere78 Exp $


I tried running both with and without php -q and it gives me the same 2 blank lines. The message does not show up in the forum.
======== snapshot =====
-bash-2.05b$ cat lists | /var/www/egwfiles/fudforum/3814588639/scripts/maillist.php 1


-bash-2.05b$
========= end snapshot

The forum files are unlocked. msg_1 is world writable.

Please advise.


Mayank

[Updated on: Sat, 29 May 2004 19:52]

Report message to a moderator

Re: MailLIst configuration issue -- mail from list does not show up [message #18597 is a reply to message #18596] Sat, 29 May 2004 20:24 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
Did you try the forum's error log to see if there are any failures? There is a forum admin control panel to do that.

FUDforum Core Developer
Re: MailLIst configuration issue -- mail from list does not show up [message #18599 is a reply to message #18597] Sat, 29 May 2004 20:42 Go to previous messageGo to next message
mayank_r_jain is currently offline  mayank_r_jain   India
Messages: 7
Registered: May 2004
Karma: 0
Junior Member
The errors/.mlist/ directory does not contain any files and the web interface only points to Session timeouts. No error pertaining to maillist shows up.


Please note that I had to create a sym link for header.inc.php to another location since maillist used to crib it could not locate that.

ln -s /var/www/html/egroupware/header.inc.php /var/www/egwfiles/fudforum/header.inc.php

Mayank

[Updated on: Sat, 29 May 2004 20:45]

Report message to a moderator

Re: MailLIst configuration issue -- mail from list does not show up [message #18604 is a reply to message #18599] Sun, 30 May 2004 17:37 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
Try enabled PHP's error logging mechanism and see if any PHP errors are logged when you run the maillist.php script.

FUDforum Core Developer
Re: MailLIst configuration issue -- mail from list does not show up [message #18606 is a reply to message #18604] Sun, 30 May 2004 18:18 Go to previous message
mayank_r_jain is currently offline  mayank_r_jain   India
Messages: 7
Registered: May 2004
Karma: 0
Junior Member
I solved it. Used lots of echo statements in php to figure out what was going on.

The mailist used to get stuck in the "NT FIX" section of the header.inc.php. I am on linux so I guess that was not relevant for me and so I copied the header.inc.php to antoher location, changed the require statement to read from the new location and in this new_header.inc.php, I commented the NT FIX section out.

Next the variable (many of them) did not match in the header.inc.php and the maillist.php. For example the db_type is ($GLOBALS['phpgw_domain']['default']['db_type']) while maillist.php has a switch on
($GLOBALS['phpgw_info']['server']['db_type']

This was the cause that the script could not make sql connections .. all vars were null.

i had to make similar changes at a couple of other places. Since I am using mysql, I changed on that section.

Once I did these, my messages from the email began showing up on the web.

Thanks for your help and I hope the above explanation will help others with similar problems.

Mayank



  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problems when importing
Next Topic: user mapping with egw/fudforum
Goto Forum:
  

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

Current Time: Fri Nov 22 20:34:29 GMT 2024

Total time taken to generate the page: 0.02703 seconds