./non_compiled_programs/email in ufos-1.0.79 vs ./non_compiled_programs/email in ufos-1.0.82

- old
+ new

@@ -25,11 +25,10 @@ # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. GREGORYS_USERNAME = 'a' if File.basename(Dir.home) == GREGORYS_USERNAME - # if Dir.basename (Dir.home) == "a" PERSON = 'Gregory' EMAIL = 'gregorycohenvideos@gmail.com' else abort "Needs configuring in #{__FILE__} on line #{__LINE__}" end @@ -56,17 +55,14 @@ else next_is_attachment = (i == '-a') end end - # puts args.length - args = case args.length when 0 ["From #{PERSON}"] + args + [EMAIL.to_s] when 1 - # subject = "From Gregory" ["From #{PERSON}"] + args else args end @@ -78,29 +74,20 @@ rescue Object print ' ' exit 1 end require 'tempfile' - # STRING= - - # puts args - # exit! 0 - # pu - # puts args raise if args.empty? loop do - # "Loop" - # args args[1..-1].each do |arg| text = <<~EOF To: <#{arg}> From: #{from} Subject: #{subject} #{content.strip} EOF - # puts text Tempfile.open do |file| puts attachments require 'shellwords' attachment_shell = (attachments.map { |i| "-a #{i.shellescape}"; }).join(' ') # .to_a.join a = IO.popen(