vmail 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vmail/imap_client.rb +4 -3
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/lib/vmail/imap_client.rb
CHANGED
|
@@ -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
|
-
|
|
580
|
+
|
|
581
|
+
new_message_template(subject, false) +
|
|
581
582
|
"\n---------- Forwarded message ----------\n" +
|
|
582
583
|
original_body + signature
|
|
583
584
|
end
|
data/lib/vmail/version.rb
CHANGED