Firefox PHP

Module: External Phorummail

Posted by Thomas Seifert 
Re: Module: External Phorummail
October 21, 2009 11:01PM
your unzip program is broken.
the archive contains a folder ext_phorummail ,not with any version number behind that.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Module: External Phorummail
November 30, 2009 11:33PM
Thomas,

I have a couple of suggested changes for this module.
One is a bug fix, the other a recommended change. Would you prefer I attach patch files or the entire modified files?

Also, just wanted to say that I appreciate your work.
Re: Module: External Phorummail
November 30, 2009 11:50PM
Please add them as patches.
Easier to incorporate in the already changed local version :).


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Module: External Phorummail
December 01, 2009 12:00AM
Ok, patches attached.

ext_phorummail.php.patch.gz
- Fix to enable IMAP SSL based on chosen IMAP SSL setting in module settings.

settings.php.patch.gz
- Change mail password text_box to type password, to obscure it from prying eyes.

Hope they're helpful. :)
Attachments:
open | download - ext_phorummail.php.patch.gz (390 bytes)
open | download - settings.php.patch.gz (227 bytes)
Re: Module: External Phorummail
December 03, 2009 11:56PM
personally, i prefer:

Language: PHP
- $options->ssl = false; + $options->ssl = $forum_mailserver[';ssl';] == 1;
Re: Module: External Phorummail
December 04, 2009 07:29PM
Quote
arod
personally, i prefer:

Language: PHP
- $options->ssl = false; + $options->ssl = $forum_mailserver[';ssl';] == 1;
So do I!
Looks like a much more efficient rendering, and I would have anticipated someone of Thomas' experience level to implement such a solution in any case. ;-)

I have a few more patches to submit for other modules that I have implemented and I will try to code more efficiently in future. Thank you for taking the time to comment.
Re: Module: External Phorummail
January 20, 2010 10:40PM
I'm getting the following errors with scrip.php --scheduled

PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parser/parts/file_parser.php on line 240
PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parser/parts/file_parser.php on line 240
PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parser/parts/file_parser.php on line 240
PHP Warning: fclose(): supplied argument is not a valid stream resource in /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parser/parts/file_parser.php on line 253
PHP Fatal error: Uncaught exception 'ezcBaseFileNotFoundException' with message 'The file '/tmp/32572-1/PAGE_Page2.wwh' could not be found.' in /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parts/fileparts/disk_file.php:86
Stack trace:
#0 /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parts/file.php(86): ezcMailFile->__set('fileName', '/tmp/32572-1/PA...')
#1 /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parts/fileparts/disk_file.php(32): ezcMailFilePart->__construct('/tmp/32572-1/PA...')
#2 /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parser/parts/file_parser.php(269): ezcMailFile->__construct('/tmp/32572-1/PA...')
#3 /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parser/parts/multipart_parser.php(146): ezcMailFileParser->finish()
#4 /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parse in /var/www/vhosts/eswindev.com/subdomains/foro/httpdocs/mods/ext_phorummail/ezc/Mail/src/parts/fileparts/disk_file.php on line 86

Some idea?
Re: Module: External Phorummail
January 21, 2010 10:34AM
Seems like a permissions problem with /tmp folder

Can I change something, to use another folder? I'm in a VPS, and I don't know exactly how this things works.
Re: Module: External Phorummail
January 24, 2010 09:50PM
Try the following changed (untested):
find all occurences (there should be 2 of them) of
Language: PHP
$parser = new ezcMailParser();
and add the following line afterwards
Language: PHP
$parser->setTmpDir($PHORUM["cache"]);

It should store all temporary stuff in the phorum defined cache directory afterwards.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Module: External Phorummail
February 10, 2010 03:38PM
When I manually run the cron job I receive the following:

syntax error, unexpected T_STRING in /home/XXXX/XXXX/XXX/mods/ext_phorummail/ext_phorummail.php on line 237

Any help would be appreciated.
Sorry, only registered users may post in this forum.

Click here to login