Anonymous | Login | Signup for a new account | 2021-01-23 04:34 GMT | ![]() |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001348 | SiT! | inbound email | public | 2010-06-18 14:00 | 2010-07-21 21:29 | ||||
Reporter | blowagie | ||||||||
Assigned To | paulh | ||||||||
Priority | low | Severity | tweak | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Linux | OS | Linux | OS Version | 2.6+later | ||||
Product Version | 3.60 LTS | ||||||||
Target Version | 3.62 LTS | Fixed in Version | 3.62 LTS | ||||||
Summary | 0001348: MTA problem solved | ||||||||
Description | Hello, I tried configuring the inbound mail, and I want to report a couple of issues I had. First of all, I think the documentation should mention that you need to add something like #!/usr/bin/php to scripts such as output.php or inboundmail.php if you want them to work (for instance from the scheduler). To me, that was evident, but it might not be evident to others. I first tried the "simple" solution: POP/IMAP, but I didn't manage to get it working. I don't think it's a bug, it's probably a configuration error on my side. I manually triggered auto.php. First I had the error because php_imap was missing, but after installing the module, no error was thrown, but no mail was fetched from my support INBOX either. I didn't pursue this because I was more interested in the "push" solution than in the "pull" solution. At first, I received errors saying: Fatal error: Call to undefined function return_bytes() in /var/www/public_html/lib/base.inc.php on line 131 I looked in the code, and I found that the method return_bytes() is defined in functions.inc.php This file is included before base.inc.php in inboundemail.php, but it should be included in an earlier stage. | ||||||||
Steps To Reproduce | Following the instructions for MTA and you'll get the Fatal Error: "Call to undefined function return_bytes()." | ||||||||
Additional Information | You can solve this problem like this: require_once ('core.php'); # add this line here: require_once (APPLICATION_LIBPATH . 'functions.inc.php'); # add the above line. require_once (APPLICATION_LIBPATH . 'triggers.inc.php'); require (APPLICATION_LIBPATH . 'mime_parser.inc.php'); require (APPLICATION_LIBPATH . 'rfc822_addresses.inc.php'); require (APPLICATION_LIBPATH . 'fetchSitMail.class.php'); if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) { include (APPLICATION_LIBPATH . 'strings.inc.php'); # change the line below so that functions.inc.php isn't included twice require_once (APPLICATION_LIBPATH . 'functions.inc.php'); # change the line above (or remove it) require_once (APPLICATION_LIBPATH . 'base.inc.php'); } | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
![]() |
|||||||||||
|
![]() |
|
paulh (administrator) 2010-07-02 19:28 |
going to try and get this fixed for 3.62 |
paulh (administrator) 2010-07-03 12:37 |
r6533 and b6a0130 fix the includes problem, http://sitracker.org/wiki/Inbound_Email [^] updated to include either adding #!/usr/bin/php to the beginning of the file or to call the script with "php inboundemail.php" |
ivan (administrator) 2010-07-18 15:05 |
Released in v3.62 |
![]() |
|||
Date Modified | Username | Field | Change |
2010-06-18 14:00 | blowagie | New Issue | |
2010-07-02 19:25 | paulh | Relationship added | duplicate of 0001014 |
2010-07-02 19:26 | paulh | Relationship added | related to 0000671 |
2010-07-02 19:28 | paulh | Note Added: 0003282 | |
2010-07-02 19:28 | paulh | Assigned To | => paulh |
2010-07-02 19:28 | paulh | Status | new => assigned |
2010-07-02 19:28 | paulh | Target Version | => 3.62 LTS |
2010-07-03 12:37 | paulh | Note Added: 0003283 | |
2010-07-03 12:37 | paulh | Resolution | open => fixed |
2010-07-03 12:37 | paulh | Fixed in Version | => Current SVN |
2010-07-03 12:38 | paulh | Status | assigned => resolved |
2010-07-18 15:05 | ivan | Note Added: 0003327 | |
2010-07-18 15:05 | ivan | Status | resolved => closed |
2010-07-21 21:29 | ivan | Fixed in Version | Current SVN => 3.62 LTS |
Copyright © 2000 - 2021 MantisBT Team |