Highrise forward script

Posted by yrashk

If your company has some general incoming contact email (like info@foocompany.com) and uses Highrise, you may find this script useful:

 
#! /usr/bin/env ruby

require 'rubygems'
require_gem 'actionmailer'

mail = TMail::Mail.parse(STDIN.read)
forward = mail.create_forward.first
forward.subject = "Fwd: #{mail.subject}" 
forward.to = 'dropbox@yournum.foocompany.highrisehq.com'
forward.from = 'Foocompany Info <info@foocompany.com>'
forward.date = Time.now
forward.body = "Begin forwarded message:\n#{forward.body}" 
forward.reply_to = 'support@foocompany.com'
ActionMailer::Base.deliver forward
 

It has at least one problem, though—it seems that it can’t forward attachments properly. I’m working on this.

Comments

Leave a response