MailLIst configuration issue -- mail from list does not show up [message #18583] |
Sat, 29 May 2004 12:38 |
mayank_r_jain
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 #18596 is a reply to message #18593] |
Sat, 29 May 2004 19:45 |
mayank_r_jain
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 #18606 is a reply to message #18604] |
Sun, 30 May 2004 18:18 |
mayank_r_jain
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
|
|
|