to
$allowsound = "false";
on line 33 of newmail_opt.php
+
+-----------------------------------------
+
+From SquirrelMail 1.5.1 newmail plugin's site configuration can be stored in
+config/newmail_config.php or plugins/newmail/config.php.
+
+$allowsound setting is replaced with $newmail_allowsound and should be stored
+inside plugin's site configuration file.
$media = getPref($data_dir,$username,'newmail_media', '(none)');
$media_userfile_name = getPref($data_dir,$username,'newmail_userfile_name','');
-// Set $allowsound to false if you don't want sound files available
-$allowsound = "true";
-
echo html_tag( 'table', '', 'center', $color[0], 'width="95%" cellpadding="1" cellspacing="0" border="0"' ) . "\n" .
html_tag( 'tr' ) . "\n" .
html_tag( 'td', '', 'center' ) .
html_tag( 'p',
sprintf(_("Selecting the %s option will change the title in some browsers to let you know when you have new mail (requires JavaScript, and only works in IE but you won't see errors with other browsers). This will always tell you if you have new mail, even if you have %s enabled."), '"'._("Change title on supported browsers").'"', '"'._("Count only messages that are RECENT").'"')
) . "\n";
-if ($allowsound == "true") {
+if ($newmail_allowsound) {
echo html_tag( 'p',
sprintf(_("Select %s to turn on playing a media file when unseen mail is in your folders. When enabled, you can specify the media file to play in the provided file box."), '"'._("Enable Media Playing").'"')
) . "\n" .
}
echo 'name="media_popup" /> ('._("requires JavaScript to work").')</td></tr>' . "\n";
-if ($allowsound == "true") {
+if ($newmail_allowsound) {
// Option: media_enable
echo html_tag( 'tr' ) .
html_tag( 'td', _("Enable Media Playing").':', 'right', '', 'style="white-space: nowrap;"' ) .
function newmail_plugin() {
global $username, $newmail_media, $newmail_enable, $newmail_popup,
$newmail_recent, $newmail_changetitle, $imapConnection, $PHP_SELF;
- global $newmail_mmedia;
+ global $newmail_mmedia, $newmail_allowsound;
global $newmail_userfile_type;
if ($newmail_enable == 'on' ||
}
// create media output if there are new email messages
- if ($totalNew > 0 && $newmail_enable == 'on' && $newmail_media != '' ) {
+ if ($newmail_allowsound && $totalNew > 0 && $newmail_enable == 'on' && $newmail_media != '' ) {
echo newmail_create_media_tags($newmail_media);
}