vmail 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -536,12 +536,12 @@ EOF
536
536
  end
537
537
 
538
538
 
539
- def new_message_template(subject = nil)
539
+ def new_message_template(subject = nil, append_signature = true)
540
540
  headers = {'from' => "#{@name} <#{@username}>",
541
541
  'to' => nil,
542
542
  'subject' => subject
543
543
  }
544
- format_headers(headers) + "\n\n" + signature
544
+ format_headers(headers) + (append_signature ? ("\n\n" + signature) : "\n\n")
545
545
  end
546
546
 
547
547
  def format_headers(hash)
@@ -577,7 +577,8 @@ EOF
577
577
  if subject !~ /Fwd: /
578
578
  subject = "Fwd: #{subject}"
579
579
  end
580
- new_message_template(subject) +
580
+
581
+ new_message_template(subject, false) +
581
582
  "\n---------- Forwarded message ----------\n" +
582
583
  original_body + signature
583
584
  end
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 4
9
- version: 0.7.4
8
+ - 5
9
+ version: 0.7.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi