From 0208a29c00f684d9cc26b0fbf399b8c8fcc10e84 Mon Sep 17 00:00:00 2001 From: Hyoun Jiil Date: Wed, 6 Aug 2014 16:09:37 +0900 Subject: [PATCH] remove mail.rb Change-Id: I84abb8e9a6ec8eb07b50f024ed0772be39e616e6 --- src/common/notification.rb | 85 --------------------------------- src/pkg_server/packageServer.rb | 1 - 2 files changed, 86 deletions(-) delete mode 100644 src/common/notification.rb diff --git a/src/common/notification.rb b/src/common/notification.rb deleted file mode 100644 index 5207acc..0000000 --- a/src/common/notification.rb +++ /dev/null @@ -1,85 +0,0 @@ -=begin - - mail.rb - -Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. - -Contact: -Taejun Ha -Jiil Hyoun -Donghyuk Yang -DongHee Yang - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - -Contributors: -- S-Core Co., Ltd -=end - -require 'net/smtp' -$LOAD_PATH.unshift File.dirname(__FILE__) -require "mailConfig" - -class Mail - - def Mail.send_mail( mail_to, subject, contents ) - - if mail_to.nil? or mail_to.empty? \ - or subject.nil? or subject.empty? \ - or contents.nil? or contents.empty? then - return false - end - - message = < e - puts "Can't send result email" - puts e.message - end - end - end - - def Mail.parse_email( low_email_list ) - mail_list = [] - low_email_list.split(",").each do | low_email | - ms = low_email.index('<') - me = low_email.index('>') - if ms.nil? or me.nil? then - next - else - mail = low_email[(ms+1)..(me-1)] - end - if mail.include?("@") then mail_list.push mail end - end - return mail_list - end -end - diff --git a/src/pkg_server/packageServer.rb b/src/pkg_server/packageServer.rb index 021a240..9cb6cf5 100644 --- a/src/pkg_server/packageServer.rb +++ b/src/pkg_server/packageServer.rb @@ -37,7 +37,6 @@ require "SocketRegisterListener" require "client" require "utils" require "FileUtil" -require "mail" require "DistSync" require "log" -- 2.34.1