From d81a199597296c5b98241d95c66d18e6cf3e8513 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 10 Jun 2008 22:34:25 +0000 Subject: [PATCH] setup.php: - check if imap_open is available. If not, print a warning. This was indirectly ;-) requested in https://sourceforge.net/forum/forum.php?thread_id=2071718&forum_id=676076 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@379 a1433add-5e2c-0410-b055-b7f2511e0802 --- setup.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/setup.php b/setup.php index fa499d66..844aafef 100644 --- a/setup.php +++ b/setup.php @@ -52,6 +52,7 @@ $f_pg_connect = function_exists ("pg_connect"); $f_session_start = function_exists ("session_start"); $f_preg_match = function_exists ("preg_match"); $f_mb_encode_mimeheader = function_exists ("mb_encode_mimeheader"); +$f_imap_open = function_exists ("imap_open"); $file_config = file_exists (realpath ("./config.inc.php")); @@ -263,6 +264,27 @@ else $error =+ 1; } + +// +// Imap functions +// +if ( $f_imap_open == 1) +{ + print "
  • Depends on: IMAP functions - OK
  • \n"; +} +else +{ + print "
  • Warning: Depends on: IMAP functions - NOT FOUND
    \n"; + print "To install IMAP support, install php$phpversion-imap
    \n"; + print "Without IMAP support, you won't be able to create subfolders when creating mailboxes.
  • \n"; +# $error =+ 1; +} + + + + + + print ""; if ($error != 0)