This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- | |
No path for the view was set into the payload so we | |
render a view based on the conventions. | |
---> | |
<!--- Get the full directory path of this mailer object. ---> | |
<cfset LOCAL.MailPath = getDirectoryFromPath(getMetaData(this).path) /> | |
<!--- This path MAY be a windows path, with backslashes so I'm going to normalize this into a NIX path. ---> | |
<cfset LOCAL.MailPath = Replace(LOCAL.MailPath, '\', '/', "ALL") /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{ "From": "[email protected]", "FromFull": { "Email": "[email protected]", "Name": "John Doe" }, "To": "451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com", "ToFull": [ { "Email": "451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com", "Name": "" } ], "Cc": "\"Full name\" <[email protected]>, \"Another Cc\" <[email protected]>", "CcFull": [ { "Email": "[email protected]", "Name": "Full name" }, { "Email": "[email protected]", "Name": "Another Cc" } ], "ReplyTo": "[email protected]", "Subject": "This is an inbound message", "MessageID": "22c74902-a0c1-4511-804f2-341342852c90", "Date": "Thu, 5 Apr 2012 16:59:01 +0200", "MailboxHash": "ahoy", "TextBody": "[ASCII]", "HtmlBody": "[HTML(encoded)]", "Tag": "", "Headers": [ { "Name": "X-Spam-Checker-Version", "Value": "SpamAssassin 3.3.1 (2010-03-16) onrs-ord-pm-inbound1.wildbit.com" }, { "Name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Layout. | |
layout: post | |
# Author. | |
author: robert_rawlins | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rquire jekyll to compile the site. | |
require "jekyll" | |
# Github pages publishing. | |
namespace :blog do | |
# | |
# Because we are using 3rd party plugins for jekyll to manage the asset pipeline | |
# and suchlike we are unable to just branch the code, we have to process the site | |
# localy before pushing it to the branch to publish. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Drop this into /spec/support/matchers | |
# Usage: result.should be_url | |
# Passes if result is a valid url, returns error "expected result to be url" if not. | |
# Matcher to see if a string is a URL or not. | |
RSpec::Matchers.define :be_url do |expected| | |
# The match method, returns true if valie, false if not. | |
match do |actual| | |
# Use the URI library to parse the string, returning false if this fails. | |
URI.parse(actual) rescue false |