Skip to content

Instantly share code, notes, and snippets.

curl -L http://bit.ly/sm4qBr -o- >> /etc/postfix/master.cf
sed -e '/.*default_transport.*/d' -i /etc/postfix/main.cf
curl -L http://bit.ly/tbDxvt -o- >> /etc/postfix/main.cf
mkdir -p /opt/amazon-ses
cd /tmp
wget http://d36cz9buwru1tt.cloudfront.net/catalog/attachments/ses-tools-2011-10-31.zip
cd /opt/amazon-ses
unzip /tmp/ses-tools-2011-10-31.zip
rm /tmp/ses-tools-2011-10-31.zip
mkdir etc
mkdir lib
mv bin/SES.pm lib
cat <<EOM | telnet localhost 25
EHLO localhost
MAIL FROM: duarnad@gmail.com
RCPT TO: wael.nasreddine@gmail.com
DATA
From: Arnaud Le Roy <duarnad@gmail.com>
To: Wael Nasreddine <wael.nasreddine@gmail.com>
Subject: Test Postfix/Amazon SES (Arnaud => Wael)
Test depuis postfix + amazon ses
diff -Naur a/bin/ses-send-email.pl b/bin/ses-send-email.pl
--- a/bin/ses-send-email.pl 2011-11-22 01:25:06.000000000 +0000
+++ b/bin/ses-send-email.pl 2011-11-22 01:26:07.000000000 +0000
@@ -77,6 +77,7 @@
# Read message body from STDIN.
sub read_message {
$opts{'m'} = join '', readline *STDIN;
+ $opts{'m'} =~ s/Precedence/X-Precedence/;
$opts{'m'} =~ s/^\x{FEFF}//;
}
# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# /root/.cpan/CPAN/MyConfig.pm.
$CPAN::Config = {
'auto_commit' => q[1],
'build_cache' => q[100],
'build_dir' => q[/root/.cpan/build],
cat <<EOM | telnet localhost 25
EHLO localhost
MAIL FROM: wael.nasreddine@gmail.com
RCPT TO: listeune@affinitic.fr
DATA
From: Wael Nasreddine <wael.nasreddine@gmail.com>
To: listeune@affinitic.fr
Subject: Test Mailman/Postfix/Amazon SES (Arnaud => Wael)
Test depuis postfix + amazon ses
diff -Naur a/usr/local/bin/mvim b/usr/local/bin/mvim
--- a/usr/local/bin/mvim 2012-01-03 05:58:39.000000000 +0100
+++ b/usr/local/bin/mvim 2012-01-03 06:00:07.000000000 +0100
@@ -57,6 +57,10 @@
;;
esac
+# Unset GEM_HOME and GEM_PATH
+unset GEM_HOME
+unset GEM_PATH
kalbasit@cratos ~/code/src/github.com/gmuch/gmuch [master] ± % glide tree
github.com/gmuch/gmuch
github.com/gmuch/gmuch/model (/Users/kalbasit/code/src/github.com/gmuch/gmuch/model)
github.com/gmuch/gmuch/server (/Users/kalbasit/code/src/github.com/gmuch/gmuch/server)
github.com/gmuch/gmuch/model (/Users/kalbasit/code/src/github.com/gmuch/gmuch/model)
github.com/go-kit/kit/log (/Users/kalbasit/code/src/github.com/gmuch/gmuch/vendor/github.com/go-kit/kit/log)
gopkg.in/logfmt.v0 (/Users/kalbasit/code/src/github.com/gmuch/gmuch/vendor/gopkg.in/logfmt.v0)
gopkg.in/stack.v1 (/Users/kalbasit/code/src/github.com/gmuch/gmuch/vendor/gopkg.in/stack.v1)
github.com/go-kit/kit/endpoint (/Users/kalbasit/code/src/github.com/gmuch/gmuch/vendor/github.com/go-kit/kit/endpoint)
golang.org/x/net/context (/Users/kalbasit/code/src/github.com/gmuch/gmuch/vendor/golang.org/x/net/context)
kalbasit@cratos ~/code/src/github.com/gmuch/gmuch [master] ± % glide pin
package: github.com/gmuch/gmuch
import:
- package: gopkg.in/logfmt.v0
ref: c50dc9aa845e681529d8e49d3dc11ec0195aacac
- package: gopkg.in/stack.v1
ref: 0585967eab0016c8e4e2d55ac20585b469574cec
- package: golang.org/x/net
ref: c2528b2dd8352441850638a8bb678c2ad056fd3e
- package: github.com/zenhack/go.notmuch
kalbasit@cratos ~/code/src/github.com/zenhack/go.notmuch [finish_message *] ± % make test
=== RUN TestOpenNotFound
Error opening database at /not-found/.notmuch: No such file or directory
--- PASS: TestOpenNotFound (0.00s)
=== RUN TestCreate
--- PASS: TestCreate (0.02s)
=== RUN TestOpen
--- PASS: TestOpen (0.00s)
=== RUN TestLastStatus
--- PASS: TestLastStatus (0.00s)