summaryrefslogtreecommitdiff
path: root/mail.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2024-07-24 11:36:07 +0200
committerpdp8 <pdp8@pdp8.info>2024-07-24 11:36:07 +0200
commit3b26e6ed999e3ebf913391d566cbf9459243c8df (patch)
tree436d3730d4d3cc4bd59dac94b6ea11fc58d4c2ce /mail.rb
parent17da4aec12049d9dd4f599d71d7945fc7895472b (diff)
sync pictures from borg mount
Diffstat (limited to 'mail.rb')
-rwxr-xr-xmail.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/mail.rb b/mail.rb
index 1aac68c..e937710 100755
--- a/mail.rb
+++ b/mail.rb
@@ -1,5 +1,4 @@
#!/usr/bin/env ruby
-
mailfile = if ARGV[1] and ARGV[1] == 'publish'
File.join(__dir__, 'mail', 'emails')
else
@@ -18,11 +17,11 @@ type = if nr_tracks == 1
end
content = ["From: info@pdp8.info
Subject: [pdp8] #{title.gsub('_', ' ')} #{type}
-Content-Type: text/plain
+Content-Type: text/plain; charset='utf-8'
List-Unsubscribe: <mailto: info@pdp8.info?subject=unsubscribe>"]
content << ''
-content << "the new pdp8 #{type} \"#{title.gsub('_', ' ')}\" is online:"
-# content << File.read('README').chomp
+# content << "the new pdp8 #{type} \"#{title.gsub('_', ' ')}\" is online:"
+content << File.read('README').chomp
content << ''
content << "web: https://pdp8.info/music.html\##{date}"
content << "internet archive: https://archive.org/details/pdp8_#{title}"