| View previous topic :: View next topic |
| Author |
Message |
csmorier
Joined: 28 Feb 2006
Posts: 8
|
| Posted: Tue Feb 28, 2006 2:57 pm Post subject: Bug in user mailproc creation |
|
|
Hello,
With phpxmail 1.4, try to create this user mail proc :
mailbox
redirect|someadress@somedomain
or
mailbox
redirect<tab>someadress@somedomain
It won't work. The reason is phpxmail puts this inside mailproc.tab file :"mailbox
"
"redirect" "someadress@somedomain"
instead of
"mailbox"
"redirect" "someadress@somedomain"
That is to say, it puts a carriage return betwenn mailbox and ".
It does this on Linux AND Windows machines.
Thank you for you attention. |
|
| Back to top |
|
below_zero
Joined: 08 Apr 2005
Posts: 130
Location: Italy
|
| Posted: Tue Mar 07, 2006 6:18 pm Post subject: Re: Bug in user mailproc creation |
|
|
Hello, here the is a possible solution, anyway I need your help for test it:
in the file "..\user\usergetmproc.inc" at line 27 you will find Code: $UsrMProc2 = explode ("\n", $UsrMProc);
it must be changed (using a text editor) in Code: $UsrMProc2 = explode ("\n", str_replace("\r", '', $UsrMProc));
the problem born also for the file "..\domain\domainmproc.inc" where the line 25 Code: $filecontentA = explode ("\n", $filecontent); shold be changed in Code: $filecontentA = explode ("\n", str_replace("\r", '', $filecontent));
BE CAREFULL TO WRITE EXACTLY THE CODE (BACKUP THE TWO FILES BEFORE TO MODIFY THEM)!!!
Once you tested the code, on positive answere I will commit the changes in the SourceForge repository...
(If you do not agree to edit the files, than tell me and I will send you the two files that must be overwritten...)
Thanx! |
|
| Back to top |
|
csmorier
Joined: 28 Feb 2006
Posts: 8
|
| Posted: Tue Mar 07, 2006 11:27 pm Post subject: Changes made and everything OK |
|
|
Changes made and everything OK
Thank you ! |
|
| Back to top |
|
below_zero
Joined: 08 Apr 2005
Posts: 130
Location: Italy
|
| Posted: Wed Mar 08, 2006 9:32 am Post subject: Re: Changes made and everything OK |
|
|
You welcome!
(The changes has been loaded in the CVS repository at SourceForge: the 1.5 release will contain these fix) |
|
| Back to top |
|
| |