summaryrefslogtreecommitdiff
path: root/mail/quickml/patches/patch-lib_quickml_core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mail/quickml/patches/patch-lib_quickml_core.rb')
-rw-r--r--mail/quickml/patches/patch-lib_quickml_core.rb44
1 files changed, 43 insertions, 1 deletions
diff --git a/mail/quickml/patches/patch-lib_quickml_core.rb b/mail/quickml/patches/patch-lib_quickml_core.rb
index f625b6bcd81..8cbc7d5503c 100644
--- a/mail/quickml/patches/patch-lib_quickml_core.rb
+++ b/mail/quickml/patches/patch-lib_quickml_core.rb
@@ -1,6 +1,7 @@
-$NetBSD: patch-lib_quickml_core.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
+$NetBSD: patch-lib_quickml_core.rb,v 1.2 2013/09/26 09:42:23 obache Exp $
* specify character coding system with ruby-1.9 way
+* use fileutils instead of deprecated ftools
--- lib/quickml/core.rb.orig 2004-06-08 20:15:11.000000000 +0000
+++ lib/quickml/core.rb
@@ -17,3 +18,44 @@ $NetBSD: patch-lib_quickml_core.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
require 'quickml/utils'
require 'quickml/gettext'
+@@ -318,7 +318,7 @@ module QuickML
+ end
+
+ def remove_alertedp_file
+- File.safe_unlink(@alertedp_file)
++ FileUtils.safe_unlink(@alertedp_file)
+ end
+
+ def _submit (mail)
+@@ -545,13 +545,13 @@ module QuickML
+ end
+
+ def close
+- File.safe_unlink(@members_file)
+- File.safe_unlink(@count_file)
+- File.safe_unlink(@charset_file)
+- File.safe_unlink(@alertedp_file)
+- File.safe_unlink(@waiting_members_file)
+- File.safe_unlink(@waiting_message_file)
+- File.safe_unlink(@ml_config_file)
++ FileUtils.safe_unlink(@members_file)
++ FileUtils.safe_unlink(@count_file)
++ FileUtils.safe_unlink(@charset_file)
++ FileUtils.safe_unlink(@alertedp_file)
++ FileUtils.safe_unlink(@waiting_members_file)
++ FileUtils.safe_unlink(@waiting_message_file)
++ FileUtils.safe_unlink(@ml_config_file)
+ @logger.log "[#{@name}]: ML Closed"
+ end
+
+@@ -610,8 +610,8 @@ module QuickML
+ end
+ }
+ submit(mail)
+- File.safe_unlink(@waiting_members_file)
+- File.safe_unlink(@waiting_message_file)
++ FileUtils.safe_unlink(@waiting_members_file)
++ FileUtils.safe_unlink(@waiting_message_file)
+ @logger.log "[#{@name}]: Accept confirmation: #{@addressconfirmation_address} #{@address}"
+ end
+