Skip to content

Commit

Permalink
bunch fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Yasinsky committed Mar 7, 2013
1 parent 79058a3 commit d638fd2
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion mail.oopzy.com/code/var/mail.oopzy.com/app/helpers/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ public function box_quality($box)
return $quality;
}

if(!filter_var($box . '@oopzy.com', FILTER_VALIDATE_EMAIL))
$result = filter_var($box . '@oopzy.com', FILTER_VALIDATE_EMAIL);

if(empty($result))
{
return -1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ public function do_remail_queue($ref, $box, $toemail)
}

//if obj is email init verification
if(filter_var($obj, FILTER_VALIDATE_EMAIL))
$result = filter_var($obj, FILTER_VALIDATE_EMAIL);

if(empty($result))
{

if(stristr($obj, $GLOBALS['host_name']))
{
//we do not verify ourselves
Expand Down
4 changes: 2 additions & 2 deletions mail.oopzy.com/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def remote_file_exists?(full_path)

desc "get correct config"
task :get_correct_config do
run "cp #{deploy_to}/current/mail.oopzy.com/code/var/mail.oopzy.com/index.#{stage} #{deploy_to}/current/mail.oopzy.com/code/var/mail.oopzy.com/index.php"
run "cp #{deploy_to}/current/mail.oopzy.com/code/var/mail.oopzy.com/index.#{stage}.php #{deploy_to}/current/mail.oopzy.com/code/var/mail.oopzy.com/index.php"

run "cp #{deploy_to}/current/mail.oopzy.com/code/var/mail.oopzy.com/.htaccess.#{stage} #{deploy_to}/current/mail.oopzy.com/code/var/mail.oopzy.com/.htaccess"
run "cp #{deploy_to}/current/mail.oopzy.com/code/var/mail.oopzy.com/.#{stage}.htaccess #{deploy_to}/current/mail.oopzy.com/code/var/mail.oopzy.com/.htaccess"
end

desc "get correct smtp2redis"
Expand Down

0 comments on commit d638fd2

Please sign in to comment.