Display the total of new messages in the newmail popup.
[squirrelmail.git] / plugins / newmail / setup.php
index d925f57fc191da52b9bf4d11b7a68be321ce75f7..b8a3e65e1e10b6c2e72ec9ab467111d1d5ed919c 100644 (file)
                 echo "<SCRIPT LANGUAGE=\"JavaScript\">\n".
                     "<!--\n".
                     "function PopupScriptLoad() {\n".
-                        'window.open("'.sqm_baseuri().'plugins/newmail/newmail.php", "SMPopup",'.
+                        'window.open("'.sqm_baseuri().'plugins/newmail/newmail.php?numnew='.$totalNew.
+                                    '", "SMPopup",'.
                                      "\"width=200,height=130,scrollbars=no\");\n".
                         "if (BeforePopupScript != null)\n".
                             "BeforePopupScript();\n".