squirrelmail.git
18 years agotemplatize folder management (create, rename, delete, subscribe).
kink [Tue, 1 Aug 2006 15:34:19 +0000 (15:34 +0000)]
templatize folder management (create, rename, delete, subscribe).
it's not complete in the sense that it still uses $color etc, feel free to
cssify! I'd like feedback if this is not the proper way to templatize something.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11456 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agotemplating for signout
kink [Tue, 1 Aug 2006 11:13:56 +0000 (11:13 +0000)]
templating for signout

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11455 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoadded safety checks for outdated config.php and
tokul [Mon, 31 Jul 2006 16:43:56 +0000 (16:43 +0000)]
added safety checks for outdated config.php and
updated sendMDN code to newer sendmail delivery class

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11452 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoperl compilation error was caused by curly brackets.
tokul [Sun, 30 Jul 2006 17:39:15 +0000 (17:39 +0000)]
perl compilation error was caused by curly brackets.
tested 5.8, 5.6 and 5.004

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11449 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago$version is not available when config.php is loaded
tokul [Sun, 30 Jul 2006 13:08:56 +0000 (13:08 +0000)]
$version is not available when config.php is loaded

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11446 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoremoved non-standard wrap attribute
tokul [Sun, 30 Jul 2006 13:05:58 +0000 (13:05 +0000)]
removed non-standard wrap attribute

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11445 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agofixed undefined notice
tokul [Sun, 30 Jul 2006 11:55:50 +0000 (11:55 +0000)]
fixed undefined notice
removed two references in asearch_get_title_display() and asearch_get_error_display()
added some phpdoc tags

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11444 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoFixing PHP notice which was introduced in 1.42 of this file. If this should be somewh...
jervfors [Sat, 29 Jul 2006 06:47:59 +0000 (06:47 +0000)]
Fixing PHP notice which was introduced in 1.42 of this file. If this should be somewhere else, considering the centralized init, pleae move it.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11441 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agosemicolor confused phpdoc
tokul [Wed, 26 Jul 2006 16:50:26 +0000 (16:50 +0000)]
semicolor confused phpdoc

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11437 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agocode could be triggered to unset variables that are used in foreach or
tokul [Wed, 26 Jul 2006 06:39:01 +0000 (06:39 +0000)]
code could be triggered to unset variables that are used in foreach or
unset call. PHP 5.2.0 does not handle it gracefully.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11435 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago#1527493 typo in elseif.
tokul [Mon, 24 Jul 2006 19:20:24 +0000 (19:20 +0000)]
#1527493 typo in elseif.

code later tries to use $a, but it is not always available. We have if()
and elseif(). There is no failsafe else version.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11432 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago1.4.7 cleans globals too
tokul [Sat, 22 Jul 2006 17:56:52 +0000 (17:56 +0000)]
1.4.7 cleans globals too

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11428 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agodata and attachment directories need trailing slash. If we don't require it,
tokul [Sat, 22 Jul 2006 17:28:53 +0000 (17:28 +0000)]
data and attachment directories need trailing slash. If we don't require it,
code that uses $data_dir or $attachment_dir will need extra checks

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11425 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoLocation: header automatically adds 302 Status header. If extra Status header
tokul [Sat, 22 Jul 2006 17:24:33 +0000 (17:24 +0000)]
Location: header automatically adds 302 Status header. If extra Status header
is used, PHP bug (#36705) causes errors in fastcgi setups. RFC 2616 recommends
use of 302 headers for agents that don't support HTTP 1.1.

Status header was used when code was introduced in SM 1.1.1. There is
no explanation why 303 status is needed instead of standard 302.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11424 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoPutting Erin and Philippe as retired, and getting STABLE and DEVEL in sync.
jervfors [Wed, 19 Jul 2006 19:28:15 +0000 (19:28 +0000)]
Putting Erin and Philippe as retired, and getting STABLE and DEVEL in sync.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11415 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoIO::Socket was loaded without checking. Script failed with compilation
tokul [Wed, 19 Jul 2006 07:56:48 +0000 (07:56 +0000)]
IO::Socket was loaded without checking. Script failed with compilation
errors, if IO::Socket was not available.

0x80-0xFF (no Unicode support) range is actually more accurate than
0x80-0xFFFF (with Unicode support)

fixed $use_imap_tls and $use_smtp_tls checks.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11412 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoUnicode support was added in Perl 5.6, use a less useful range in earlier versions...
indiri69 [Mon, 17 Jul 2006 19:39:23 +0000 (19:39 +0000)]
Unicode support was added in Perl 5.6, use a less useful range in earlier versions. For those of use running antiquated servers.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11409 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoThe footer probably shouldn't go before the rest of the HTML. Looks like a cut and...
indiri69 [Mon, 17 Jul 2006 18:56:51 +0000 (18:56 +0000)]
The footer probably shouldn't go before the rest of the HTML. Looks like a cut and paste error.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11408 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoadding config_location_base to administrator plugin
tokul [Mon, 17 Jul 2006 16:19:19 +0000 (16:19 +0000)]
adding config_location_base to administrator plugin

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11407 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoimprovements to 1.244 suggested by Tomas
kink [Mon, 17 Jul 2006 15:39:36 +0000 (15:39 +0000)]
improvements to 1.244 suggested by Tomas

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11406 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoMake the base for the SquirrelMail URL configurable. Adds a new variable
kink [Mon, 17 Jul 2006 14:42:06 +0000 (14:42 +0000)]
Make the base for the SquirrelMail URL configurable. Adds a new variable
config_base_location to config.php and a new option to conf.pl. This is
to prevent problems in installs where our heuristic doesn't work
correctly (#1521299, #1460675, #1110064, #1000850, #1113791)

I believe this is one of the most commonly reported issues in current
stable. That's why I've created the code to be minimally invasive: it only
allows to set the proto+host+port part, because this means all changes
can remain within get_location().

I want to backport this bugfix to stable so I appreciate any feedback
on it. And also of course if you think that this is the wrong way to
solve it :)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11405 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoremove references to submitting themes to us. we've got a LOT of themes
kink [Sun, 16 Jul 2006 18:10:56 +0000 (18:10 +0000)]
remove references to submitting themes to us. we've got a LOT of themes
already included

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11404 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agolist cve's that are fixed by the deregister globals code
kink [Sun, 16 Jul 2006 18:06:55 +0000 (18:06 +0000)]
list cve's that are fixed by the deregister globals code

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11402 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agocomment about closing tag now superfluous
kink [Sat, 15 Jul 2006 14:26:45 +0000 (14:26 +0000)]
comment about closing tag now superfluous

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11401 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoRemove CVS $Log$ keywords, since that info is available by doing 'cvs log'
kink [Sat, 15 Jul 2006 14:19:12 +0000 (14:19 +0000)]
Remove CVS $Log$ keywords, since that info is available by doing 'cvs log'
and there's no need to ship the changes of 100's of file revisions to all
our users.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11400 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agodisplay disabled,TLS,STARTTLS instead of 0,1,2 in menu
tokul [Sat, 15 Jul 2006 12:58:14 +0000 (12:58 +0000)]
display disabled,TLS,STARTTLS instead of 0,1,2 in menu

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11399 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoolder code used sel[] name in list form. Label code added backend id and
tokul [Sat, 15 Jul 2006 12:39:16 +0000 (12:39 +0000)]
older code used sel[] name in list form. Label code added backend id and
nickname. extracting array value with current() instead of using index.
$sel is also used when address book entry is deleted, but array is
reindexed there.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11398 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoadding safety checks. if invalid backend number was used, script used invalid
tokul [Sat, 15 Jul 2006 12:35:16 +0000 (12:35 +0000)]
adding safety checks. if invalid backend number was used, script used invalid
object calls

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11397 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoremoving trailing ?> from function scripts
tokul [Sat, 15 Jul 2006 12:01:32 +0000 (12:01 +0000)]
removing trailing ?> from function scripts

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11396 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoreverting some templating changes. They broke plugin blocks.
tokul [Thu, 13 Jul 2006 18:49:44 +0000 (18:49 +0000)]
reverting some templating changes. They broke plugin blocks.
moving display of option blocks to separate template

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11395 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agofixed spamcop plugin
tokul [Thu, 13 Jul 2006 10:02:10 +0000 (10:02 +0000)]
fixed spamcop plugin

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11392 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoremoved service type option - spamcop uses same form for free and paying
tokul [Thu, 13 Jul 2006 10:00:35 +0000 (10:00 +0000)]
removed service type option - spamcop uses same form for free and paying
reporters. web based reporting form will use members.spamcop.net address
(#1519673). www.spamcop.net form is broken, if user is not logged into
spamcop.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11391 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoadd code to reinitialize the templating for the case that one has reloaded
kink [Tue, 11 Jul 2006 22:23:33 +0000 (22:23 +0000)]
add code to reinitialize the templating for the case that one has reloaded
signout.php. that used to spew all kinds of errors, this handles it more
gracefully. closes: #1519716

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11390 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agomove the 'fallback theme colors' to init.php. It makes sense to initialise
kink [Tue, 11 Jul 2006 22:12:09 +0000 (22:12 +0000)]
move the 'fallback theme colors' to init.php. It makes sense to initialise
that array as early as possible, because we may need the colours when
setting up something goes wrong.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11389 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- added new utils_css file to contain CSS-related functions for use in templates
vanmer [Mon, 10 Jul 2006 15:48:51 +0000 (15:48 +0000)]
- added new utils_css file to contain CSS-related functions for use in templates
- altered stylelink template to use new util_css.php file for all function definitions

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11388 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- changed to actually apply style instead of returning false
vanmer [Sun, 9 Jul 2006 23:29:13 +0000 (23:29 +0000)]
- changed to actually apply style instead of returning false

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11386 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- added variable initalization and check on variable
vanmer [Sun, 9 Jul 2006 22:37:35 +0000 (22:37 +0000)]
- added variable initalization and check on variable

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11385 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- added template output for style links before link to style.php
vanmer [Sun, 9 Jul 2006 22:29:07 +0000 (22:29 +0000)]
- added template output for style links before link to style.php

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11384 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- moved all output from webmail.php to webmail.tpl template
vanmer [Sun, 9 Jul 2006 22:27:40 +0000 (22:27 +0000)]
- moved all output from webmail.php to webmail.tpl template

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11383 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- pulled all options output in options.tpl template
vanmer [Sun, 9 Jul 2006 22:27:04 +0000 (22:27 +0000)]
- pulled all options output in options.tpl template

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11382 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agomake a start with adding labels for html form elements. this aids disabled
kink [Sun, 9 Jul 2006 22:26:05 +0000 (22:26 +0000)]
make a start with adding labels for html form elements. this aids disabled
users, but also e.g. allows one to click the text next to a checkbox to
select it.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11381 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- added default entries for new templates for webmail, options and stylesheet links
vanmer [Sun, 9 Jul 2006 22:25:56 +0000 (22:25 +0000)]
- added default entries for new templates for webmail, options and stylesheet links

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11380 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- moved all static style elements out of stylesheet.tpl into /css/default.css
vanmer [Sun, 9 Jul 2006 22:24:31 +0000 (22:24 +0000)]
- moved all static style elements out of stylesheet.tpl into /css/default.css

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11379 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- initial revision of a default stylesheet for squirrelmail, including style and...
vanmer [Sun, 9 Jul 2006 22:23:46 +0000 (22:23 +0000)]
- initial revision of a default stylesheet for squirrelmail, including style and basic color defaults

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11378 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- intial revision of a template to display CSS links at the top of the page
vanmer [Sun, 9 Jul 2006 22:23:03 +0000 (22:23 +0000)]
- intial revision of a template to display CSS links at the top of the page

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11377 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- initial revision of a template for options output
vanmer [Sun, 9 Jul 2006 22:22:31 +0000 (22:22 +0000)]
- initial revision of a template for options output

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11376 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- Make the default attachment dir /var/local/squirrelmail/attach, not
kink [Sun, 9 Jul 2006 22:20:46 +0000 (22:20 +0000)]
- Make the default attachment dir /var/local/squirrelmail/attach, not
  $data_dir.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11375 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- Initial revision of a template to render the main squirrelmail HTML (current a...
vanmer [Sun, 9 Jul 2006 21:55:33 +0000 (21:55 +0000)]
- Initial revision of a template to render the main squirrelmail HTML (current a frameset)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11374 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agosession.use_cookies=off workaround
tokul [Sun, 9 Jul 2006 18:46:54 +0000 (18:46 +0000)]
session.use_cookies=off workaround

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11372 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoturn on session cookies, if they are turned off.
tokul [Sun, 9 Jul 2006 18:43:40 +0000 (18:43 +0000)]
turn on session cookies, if they are turned off.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11371 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agotweak man page
kink [Sun, 9 Jul 2006 10:28:50 +0000 (10:28 +0000)]
tweak man page

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11365 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoprevent setting INBOX as Draft, Sent or Trash folder (#1242346)
tokul [Fri, 7 Jul 2006 19:14:06 +0000 (19:14 +0000)]
prevent setting INBOX as Draft, Sent or Trash folder (#1242346)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11364 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agousing popen instead of shell_exec. shell_exec is disabled in safe mode.
tokul [Fri, 7 Jul 2006 12:53:50 +0000 (12:53 +0000)]
using popen instead of shell_exec. shell_exec is disabled in safe mode.
default configuration moved to functions.php
file_exists() test is no longer used because it is not accurate (#1499134) and
requires full path to fortune program.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11361 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- Fix URL for Read Receipts being incorrect in some cases (#1177518).
kink [Thu, 6 Jul 2006 13:27:23 +0000 (13:27 +0000)]
- Fix URL for Read Receipts being incorrect in some cases (#1177518).

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11359 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agodb scheme for postgres is different from that for mysql, document that
kink [Tue, 4 Jul 2006 08:57:27 +0000 (08:57 +0000)]
db scheme for postgres is different from that for mysql, document that
(instead of changing it - that could break stuff for no strong reason)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11352 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoinformation about MailSite
tokul [Mon, 3 Jul 2006 15:03:42 +0000 (15:03 +0000)]
information about MailSite

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11351 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoRemoved proprietary attribute. Reported by Hans Spaans
tokul [Sun, 2 Jul 2006 10:09:41 +0000 (10:09 +0000)]
Removed proprietary attribute. Reported by Hans Spaans

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11341 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoTextarea should not use proprietary wrap attribute (#1512681). Original
tokul [Sun, 2 Jul 2006 10:03:37 +0000 (10:03 +0000)]
Textarea should not use proprietary wrap attribute (#1512681). Original
code used wrap=hard and forced new lines, when long lines are added.
Attribute was switched to wrap=virtual (#495073, v.1.214) in order
to fix spacing issues. wrap=virtual creates unwrapped long lines in
IE, Firefox and Opera. Same happens when attribute is not set.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11340 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago$query is also used when $responce !='NO'. Fixed undefined notice error.
tokul [Sat, 1 Jul 2006 16:52:15 +0000 (16:52 +0000)]
$query is also used when $responce !='NO'. Fixed undefined notice error.
Reported by Benny Pedersen. Can't understand how he managed to reach that
sqm_trigger_imap_error call.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11339 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoupdated plugin to 1.5.2 API
tokul [Tue, 27 Jun 2006 10:18:45 +0000 (10:18 +0000)]
updated plugin to 1.5.2 API
added address book line length option
removed unused sqimap functions include

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11312 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoAddress book file backend will break with error message, if required
tokul [Tue, 27 Jun 2006 10:08:53 +0000 (10:08 +0000)]
Address book file backend will break with error message, if required
address book fields are not available. Prevents address book corruption
and address book format violations that can cause PHP notices.

Added line length setting in local_file address book backend (#1181561).

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11311 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoconf.pl checks IMAP folder names
tokul [Mon, 26 Jun 2006 17:29:59 +0000 (17:29 +0000)]
conf.pl checks IMAP folder names

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11310 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agodon't accept 8bit characters in IMAP folder names and warn about special
tokul [Mon, 26 Jun 2006 17:13:33 +0000 (17:13 +0000)]
don't accept 8bit characters in IMAP folder names and warn about special
IMAP characters (#1485501).

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11309 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoAlso output alt when its empty, closes #1512640
kink [Mon, 26 Jun 2006 14:26:20 +0000 (14:26 +0000)]
Also output alt when its empty, closes #1512640

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11306 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoMissing dependencies. Reported by Hans Spaans (#1512557)
tokul [Mon, 26 Jun 2006 14:17:05 +0000 (14:17 +0000)]
Missing dependencies. Reported by Hans Spaans (#1512557)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11305 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoHTML fix.
jervfors [Thu, 15 Jun 2006 21:27:24 +0000 (21:27 +0000)]
HTML fix.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11210 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoUsing IEC standard prefixes.
jervfors [Thu, 15 Jun 2006 16:35:26 +0000 (16:35 +0000)]
Using IEC standard prefixes.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11209 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoRecommitting string fix.
jervfors [Thu, 15 Jun 2006 15:04:29 +0000 (15:04 +0000)]
Recommitting string fix.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11208 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoString fix.
jervfors [Thu, 15 Jun 2006 14:31:29 +0000 (14:31 +0000)]
String fix.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11207 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoWhitespace in wrong place. Spotted by Robert L Mathews.
jervfors [Wed, 14 Jun 2006 06:31:47 +0000 (06:31 +0000)]
Whitespace in wrong place. Spotted by Robert L Mathews.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11205 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago1. personal preferences don't need imap functions.
tokul [Mon, 12 Jun 2006 17:42:16 +0000 (17:42 +0000)]
1. personal preferences don't need imap functions.
2. display email address even when user settings don't store it.
3. set default $email_address value to username + domain.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11203 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoscript could be loaded when $edit_identity is set to false
tokul [Mon, 12 Jun 2006 17:32:06 +0000 (17:32 +0000)]
script could be loaded when $edit_identity is set to false

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11202 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoupdating pot
tokul [Mon, 12 Jun 2006 16:59:29 +0000 (16:59 +0000)]
updating pot

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11201 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agomsgs_list_copy arguments and return codes differ from msgs_list_move.
tokul [Mon, 12 Jun 2006 16:26:47 +0000 (16:26 +0000)]
msgs_list_copy arguments and return codes differ from msgs_list_move.
php 4.3.10 does not complain about boolean true feeded to foreach. new php
versions do complain about it. thanks to Henrik Andreasen

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11200 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoStupid IE 6 bugs should use stupid IE conditionals that conform to HTML standards...
indiri69 [Mon, 12 Jun 2006 02:27:11 +0000 (02:27 +0000)]
Stupid IE 6 bugs should use stupid IE conditionals that conform to HTML standards. Tested in IE 6 and Firefox 1.5.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11198 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoOnly 0 is allowed to not have a type
indiri69 [Mon, 12 Jun 2006 01:50:29 +0000 (01:50 +0000)]
Only 0 is allowed to not have a type

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11197 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoDovecot preset is generic and can be used with Bejy too.
tokul [Sun, 11 Jun 2006 17:50:01 +0000 (17:50 +0000)]
Dovecot preset is generic and can be used with Bejy too.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11196 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoinclude note about password security in security doc
kink [Thu, 8 Jun 2006 15:53:54 +0000 (15:53 +0000)]
include note about password security in security doc

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11186 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years ago- Add note to conf.pl / config_default.php to warn users that set
kink [Thu, 8 Jun 2006 15:45:28 +0000 (15:45 +0000)]
- Add note to conf.pl / config_default.php to warn users that set
  sensitive passwords in that file to properly secure it.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11184 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoRemoved html formating from address book backend classes. Added
tokul [Sun, 4 Jun 2006 12:42:24 +0000 (12:42 +0000)]
Removed html formating from address book backend classes. Added
fullname() method to addressbook_backend class. Moved
htmlspecialchars() sanitizing from address book backend classes to
html output code. If third party code displays errors from address
book object in html, errors must be sanitized and ASCII line feeds
should be converted to html line breaks.

'addressbook' strings are replaced with 'address book'. Spellcheck
fails on 'addressbook'.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11181 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agosq_mt_randomize() is not available in style.php
tokul [Sun, 4 Jun 2006 09:57:20 +0000 (09:57 +0000)]
sq_mt_randomize() is not available in style.php

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11180 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agodocumenting one more get var
tokul [Sun, 4 Jun 2006 09:28:10 +0000 (09:28 +0000)]
documenting one more get var

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11179 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoadding message copy buttons.
tokul [Sun, 4 Jun 2006 09:18:20 +0000 (09:18 +0000)]
adding message copy buttons.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11178 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agowrong default left after testing backend.
tokul [Sat, 3 Jun 2006 17:23:59 +0000 (17:23 +0000)]
wrong default left after testing backend.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11177 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoAdding write support to address book ldap backend. Patch by David Hardeman
tokul [Sat, 3 Jun 2006 17:14:49 +0000 (17:14 +0000)]
Adding write support to address book ldap backend. Patch by David Hardeman
(#1495763).

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11176 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoinformation about added special folder translations.
tokul [Tue, 30 May 2006 17:19:27 +0000 (17:19 +0000)]
information about added special folder translations.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11173 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agotranslating folder names in selection box.
tokul [Tue, 30 May 2006 16:30:00 +0000 (16:30 +0000)]
translating folder names in selection box.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11172 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agotranslate folder names in mailbox tree
tokul [Mon, 29 May 2006 17:30:05 +0000 (17:30 +0000)]
translate folder names in mailbox tree

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11171 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agodon't modify sent_folder option in plugin. It does not belong to plugin.
tokul [Mon, 29 May 2006 17:26:48 +0000 (17:26 +0000)]
don't modify sent_folder option in plugin. It does not belong to plugin.
Plugin still rewrites target folder in compose_send hook

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11170 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoadding option that should control translation of special folders
tokul [Mon, 29 May 2006 17:12:54 +0000 (17:12 +0000)]
adding option that should control translation of special folders

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11169 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoinfo about abook information
tokul [Sun, 28 May 2006 09:28:03 +0000 (09:28 +0000)]
info about abook information

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11166 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agodon't use $r == DB_OK checks, because they cause PHP warnings when $r is DB_Error...
tokul [Sun, 28 May 2006 09:13:03 +0000 (09:13 +0000)]
don't use $r == DB_OK checks, because they cause PHP warnings when $r is DB_Error object.
turned on field case portability for Oracle.
escaped SQL wildcards in search() method
handle nickname changes in modify() method. Users could get DB error when new nickname is already in use
make search case insensitive in serch() method.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11165 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoFix capability retrieval for "double" cases in server capability response, for instan...
avel [Fri, 26 May 2006 12:53:18 +0000 (12:53 +0000)]
Fix capability retrieval for "double" cases in server capability response, for instance in a new Cyrus: SORT SORT=MODSEQ . This patch will eliminate a notice that was displayed.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11162 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoinitialize template object here. logout_error() depends on it.
tokul [Mon, 22 May 2006 17:43:43 +0000 (17:43 +0000)]
initialize template object here. logout_error() depends on it.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11152 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoSCRIPT_FILENAME is not set on IIS 5.1 php cgi
tokul [Sun, 21 May 2006 18:45:27 +0000 (18:45 +0000)]
SCRIPT_FILENAME is not set on IIS 5.1 php cgi

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11151 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoSCRIPT_FILENAME is not set in some setups
tokul [Sun, 21 May 2006 18:23:09 +0000 (18:23 +0000)]
SCRIPT_FILENAME is not set in some setups

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11150 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoTake X-Forwarded-Host HTTP header in consideration when constructing
kink [Thu, 18 May 2006 15:09:30 +0000 (15:09 +0000)]
Take X-Forwarded-Host HTTP header in consideration when constructing
base_uri for redirects; reduces problems with transparent proxies
(#1488590). Also test strcasecmp on literally '0' with respect to
#1047883 although I don't think it's absolutely necessary, it's safest.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11147 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoAdd phpdoc block. \(Thx Tomas.\)
avel [Tue, 16 May 2006 07:20:29 +0000 (07:20 +0000)]
Add phpdoc block. \(Thx Tomas.\)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11146 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agoNeed this include, otherwise I get an error for undefined addsubmit function
avel [Tue, 16 May 2006 05:58:26 +0000 (05:58 +0000)]
Need this include, otherwise I get an error for undefined addsubmit function

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11145 7612ce4b-ef26-0410-bec9-ea0150e637f0

18 years agodocumentation fix.
tokul [Mon, 15 May 2006 18:38:51 +0000 (18:38 +0000)]
documentation fix.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11144 7612ce4b-ef26-0410-bec9-ea0150e637f0