Commit graph

454 commits

Author SHA1 Message Date
Thijs Kinkhorst
5641a73844 Correct references trimming: array_walk can't in all PHP versions use
a callback function that is a member function. Moving the function out
of the class seems the best solution.
2006-05-03 13:37:53 +00:00
stekkel
a0e99d40e5 Do not use ob_end_flush because the fetch method returns the content of the
buffer. If we do not clear the buffer the to display template will be
displayed twice (paginator.tpl in this case)
2006-04-23 09:05:22 +00:00
Thijs Kinkhorst
409270e9cf Reduce references header in a smart way to avoid "header too long"
errors from SMTP servers in really long threads (#1167754, #1465342).
2006-04-18 16:38:38 +00:00
stevetruckstuff
531803ca42 Added error handling if template.php or requested template is not found. 2006-04-06 19:49:28 +00:00
stevetruckstuff
8ca0997cc8 Added ability for template authors to include additional stylesheets. This allows them to add additional CSS defs while maintaining SQM default defintions. 2006-03-28 22:17:44 +00:00
stekkel
5963418896 Fix from Dimitar Pashev to make sure the rfc822 from adres isn't mixed up
when we set the $from vars to '' to make sure MAIL FROM <> is sent (MDN
receipt).
Could be a php 5.x thing because normally $from isn't a reference.
2006-03-14 17:05:01 +00:00
jangliss
b25a3ff9bf Make the use_*_tls options half respect old values. If you leave it as
true, then it would try to use STARTTLS.  While I understand this is a
new feature, and this is the dev branch, a little backwards compatibility
is easy in this case.  The value 2 is considered true... Using === instead
is an exact match, so you'd have to have 2 in the use_*_tls options for it
to trigger starttls mode.
2006-02-26 06:32:17 +00:00
stevetruckstuff
ab879d1c55 Incoproated template config file. Templates can now include their own javascript files. Also, if a template pack does not incorporate a specific template, the default template will be used instead. 2006-02-24 22:32:11 +00:00
stekkel
0ee5d97177 Update documentation 2006-02-11 15:24:58 +00:00
stekkel
f28f5bb0eb Fix for #1093360.
The fix also includes the move from manual generated error messages in
imap_general to the central error handler.
In order to catch non fatal error message in compose.php I had to collect
the error messages array before the header redirect and write them to the
session. In read_body.php, compose.php and right_main.php I add the error
messages to the error handler again and clean up the delayed error messages
array.
I also modified the error handler in order to display the page_header in
case it wasn't displayed yet.
2006-02-11 15:14:31 +00:00
stekkel
8a1d9e2fdf made the code work for triggering imap related errors. 2006-02-08 07:59:19 +00:00
Thijs Kinkhorst
52b7f27fa0 remove unneeded default which had a horrible backslash in a path 2006-01-29 12:14:58 +00:00
tokul
57ae2c61ce Added IMAP and SMTP STARTTLS extension support.
Saved SMTP EHLO response in class parameters.
Moved sanitizing of SMTP errors from delivery class to display scripts.
Allowed to use configtest.php when client_ip matches server_ip.
There is no 1.3.3 version. TLS was introduced in 1.4.0.
2006-01-28 19:24:08 +00:00
tokul
83fdb4c332 copyright update 2006-01-23 18:46:41 +00:00
tokul
e482d9d3d7 adding error checking in deliver_sendmail class.
sendmail -i -t arguments moved to configuration
fixed unsanitized output in plain_error_message() calls.
2005-12-08 18:24:47 +00:00
tokul
d58b6ad0b0 if we can't open stream. we make up server's error message 2005-12-07 06:49:07 +00:00
Erin Schnabel
8b02cc2477 require the hide_squirrelmail_header value to be defined as a constant
to avoid manipulation via GET/POST
2005-11-28 17:12:57 +00:00
Erin Schnabel
2317f3f40f reword some of the text around email/full name options, and introduce
a variable that can be added to config_local to remove the SM header
altogether if desired (e.g. in home installations).
2005-11-27 19:36:35 +00:00
tokul
9d85fd232c $this->content_type == '' test causes E_NOTICE in php 5.1, when
$this->content_type is object. content_type should always store ContentType
object and this code is only to make sure that parameter is not default
string.
2005-11-27 08:16:02 +00:00
Thijs Kinkhorst
51eb17263a * Centralise the attachment deleting code into the Message class
* Use this from the various places in the code where this was duplicated
* Fix the broken code in signout.php to cleanup lingering attachments
  by using this same function.
2005-11-21 20:11:48 +00:00
indiri69
e1677776db If loop exit is caused by $i being greater than or equal to $cnt, do try to append the non existent value 2005-11-17 21:21:50 +00:00
Fredrik Jervfors
c5fc10f625 Formatting as in STABLE 2005-11-09 23:45:20 +00:00
Fredrik Jervfors
ea10bb191a Updating documentation 2005-11-05 20:27:07 +00:00
Fredrik Jervfors
9ed98bb1ec phpDocumentor updates 2005-09-18 10:25:54 +00:00
Fredrik Jervfors
d3abcd651b Adding more index.php files
Unifying index.php files
2005-09-11 07:05:54 +00:00
stekkel
864d67873d Respect the error_reporting setting in php.ini and do not display errors
when the error level is not enabled in php.ini
2005-08-06 12:01:39 +00:00
tokul
51faeb3419 phpdoc fix. 2005-08-06 06:16:39 +00:00
tokul
8bd5a10a74 chmod 700 locale 2005-08-03 12:21:32 +00:00
tokul
45e76e59b8 more php 4.1.2 testing. it is possible that ini_get call is not needed. 2005-08-03 12:19:53 +00:00
tokul
96e838cab4 add php5 E_STRICT support and disable logging of disabled error messages.
it is possible that switch($iErrNo) should be replaced with if control
structures in order to follow php error_reporting setting.
2005-07-31 12:13:30 +00:00
stekkel
840d791203 Introduce error handling 2005-07-28 21:03:00 +00:00
tokul
06bee52aca Add extra checks in In-Reply-To header generation. Removes E_NOTICE level
error in php 5.0.4+ (#1206474)
2005-07-20 08:47:47 +00:00
tokul
45cf307ed7 php 5.1b2 - can't use function call inside array_shift() function.
src/configtest.php
- add extra checks in use_php_recode and use_php_iconv.
- fix typo. $dbtype should be used instead $db
2005-07-14 17:44:41 +00:00
pdontthink
46c104a047 Fix that addresses inconsistency in PHP's chunk_split; was breaking attachments. Thanks to Roalt Zijlstra 2005-06-03 19:56:36 +00:00
tokul
a765cc5857 documenting some class params 2005-05-23 09:20:35 +00:00
tokul
2e57589332 content disposition rfc 2005-05-22 14:46:05 +00:00
tokul
42076e5d0c updating @since tags to indicate version in stable 2005-05-22 14:22:44 +00:00
tokul
c30a0f5bf2 adding index files in order to prevent directory listing.
adding some phpdoc blocks to mime classes.
tagging possible programming errors
2005-05-22 08:20:11 +00:00
tokul
804506dbe4 confused original code with php5 fix 2005-05-20 07:33:41 +00:00
tokul
574965eb4f replacing skip_SM_header with two different options. If admins want to shoot
their own foot, they have to do that themselves and remove headers
completely by modifying SquirrelMail scripts.
2005-05-12 08:15:19 +00:00
stekkel
1ceda93625 More possible NUL character problems solved. 2005-04-27 17:04:00 +00:00
tokul
a072871ca9 phpdoc blocks 2005-04-26 14:29:48 +00:00
tokul
2883250533 adding phpdoc comments 2005-04-26 14:28:25 +00:00
tokul
7ced165a76 prevent errors when files are opened directly 2005-04-26 14:27:29 +00:00
stekkel
5a02409417 fixed some php5 warnings 2005-04-24 13:28:27 +00:00
Fredrik Jervfors
2531f52955 Trimming whitespace and replacing tabs 2005-04-23 12:08:00 +00:00
tokul
c1cd5599d3 missed one more tag 2005-04-18 08:29:49 +00:00
tokul
0b7730f1ad lowercase package tag. fix phpdoc block. 2005-04-18 07:36:23 +00:00
stekkel
30eecf7773 FIle no longer used => deleted 2005-04-16 18:55:46 +00:00
stekkel
0f22c7575d Templates 2005-04-14 21:42:53 +00:00