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

Home » FUDforum Development » Plugins and Code Hacks » How to configure procmail
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
How to configure procmail [message #21144] Tue, 16 November 2004 18:00 Go to next message
jproig is currently offline  jproig   Argentina
Messages: 7
Registered: November 2004
Karma: 0
Junior Member
I am configuring fudforum for egroupware and i have a list in yahoo that i want to sincronize with the fuforum.
I trying to configure procmail but i don't know for what user i haver to include
:0
* ^TO_.*php-general(at)lists(dot)php(dot)net
| /home/egroupware/fudforum/3814588639/scripts/maillist.php 5

in his .procmailrc file.
Thanks
Re: How to configure procmail [message #21147 is a reply to message #21144] Tue, 16 November 2004 19:58 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 change php-general(at)lists(dot)php(dot)net with whatever the e-mail address of the mailing list is.

FUDforum Core Developer
Re: How to configure procmail [message #21156 is a reply to message #21147] Wed, 17 November 2004 14:01 Go to previous messageGo to next message
jproig is currently offline  jproig   Argentina
Messages: 7
Registered: November 2004
Karma: 0
Junior Member
thanks for the reply, procmail catches the mail from the list buto did't post it in the forum. If i exec the maillist.php by hand it gives me thi error:
Warning: session_destroy(): Trying to destroy uninitialized session in /usr/local/www2/htdocs/egroupware/phpgwapi/inc/class.sessions_php4.inc.php on line 121

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www2/htdocs/egroupware/phpgwapi/inc/class.sessions_php4.inc.php: 121) in /usr/local/www2/htdocs/egroupware/phpgwapi/inc/functions.inc.php on line 311

NOTES: i have a symlink to GLOBALS.php, the forum is unlocked...
Please give a solution
Thanks
Re: How to configure procmail [message #21158 is a reply to message #21156] Wed, 17 November 2004 14:11 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 adding various debug print statments inside maillist.php script to see exactly where it dies.

FUDforum Core Developer
Re: How to configure procmail [message #21160 is a reply to message #21144] Wed, 17 November 2004 14:26 Go to previous messageGo to next message
jproig is currently offline  jproig   Argentina
Messages: 7
Registered: November 2004
Karma: 0
Junior Member
the error is in the line:
require_once ("header.inc_php");
Re: How to configure procmail [message #21178 is a reply to message #21144] Thu, 18 November 2004 13:57 Go to previous messageGo to next message
jproig is currently offline  jproig   Argentina
Messages: 7
Registered: November 2004
Karma: 0
Junior Member
I work in te maillist.php and i discover that the error is in te line:
define('sql_p', $DBHOST_TBL_PREFIX);

I execute:
>>cat Egroupware |./maillist1.php 5

and it gives the folloeing error:

(/home/egroupware/fudforum/3814588639/include/theme/default/db.inc:106<br />
/home/egroupware/fudforum/3814588639/include/theme/default/db.inc:176<br />
/home/egroupware/fudforum/3814588639/scripts/maillist1.php:404<br />
) : <br />
Query: SELECT id, forum_opt, message_threshold, (max_attach_size * 1024) AS max_attach_size, max_file_attachments FROM phpgw_fud_forum WHERE id=<br />
Server Version: <br />

what is this?
thanks
Re: How to configure procmail [message #21180 is a reply to message #21178] Thu, 18 November 2004 14:32 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
Sounds like the script was unable to fetch the forum id, did you assign a valid forum to the import rule?

FUDforum Core Developer
Re: How to configure procmail [message #21182 is a reply to message #21144] Thu, 18 November 2004 15:10 Go to previous messageGo to next message
jproig is currently offline  jproig   Argentina
Messages: 7
Registered: November 2004
Karma: 0
Junior Member
i check the database and i have the list and the forum
and now:
/home/egroupware/fudforum/3814588639/include/theme/default/db.inc:106<br />
/home/egroupware/fudforum/3814588639/include/theme/default/db.inc:176<br />
/home/egroupware/fudforum/3814588639/scripts/maillist1.php:394<br />
) : <br />
Query: SELECT * FROM phpgw_fud_mlist WHERE id=
6<br />
Server Version: <br />
Re: How to configure procmail [message #21183 is a reply to message #21182] Thu, 18 November 2004 15:30 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
sounds like you didn't speciy the mailing list id via the command line or that PHP is configured not to register argv,argc

FUDforum Core Developer
Re: How to configure procmail [message #21240 is a reply to message #21183] Tue, 23 November 2004 12:35 Go to previous messageGo to next message
jproig is currently offline  jproig   Argentina
Messages: 7
Registered: November 2004
Karma: 0
Junior Member
i exec inthe command line like that:
>>cat Egroupware |./maillist1.php 5

where Egroupware has emails.
In my php.ini:
register_argc_argv = On

i don't know wath to do now...
Re: How to configure procmail [message #21245 is a reply to message #21144] Tue, 23 November 2004 15:14 Go to previous messageGo to next message
jproig is currently offline  jproig   Argentina
Messages: 7
Registered: November 2004
Karma: 0
Junior Member
can be a problem with the version of mysql?, i have 4.0.14
Re: How to configure procmail [message #21248 is a reply to message #21245] Tue, 23 November 2004 15:18 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Unlikely, mysql version has little to do with this.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: I need a popup with a list of choices for user profile at register time
Next Topic: lib.js patch (spoiler usage)
Goto Forum:
  

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

Current Time: Wed Nov 27 02:35:09 GMT 2024

Total time taken to generate the page: 0.03341 seconds