Sha256: 38c42b15165cbd1d828aa3b3096d3c3d6f0fb0084b6a51a3709d4111d1680fc4
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
#!/usr/bin/env ruby require 'mail' # This script is a dead-simple Mail Delivery Agent (MDA) that parses the received email # and creates a new TaskWarrior task from the subject of the mail. mail = Mail.new(ARGF.read) task_uuid = %x[task-uuid \"#{mail.subject}\"] body = mail.text? ? mail.body.decoded : mail.text_part.body.decoded SEPARATOR = '-- ' body = body.split(SEPARATOR)[0] if (body.include?(SEPARATOR)) %x[task '#{task_uuid}' annotate \"#{body}\"]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twmail-0.0.4 | bin/twmail |