Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to keep speakers e-mail in a single place #80

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ _site/*
.sass-cache/*
.idea
Gemfile.lock
email
*.css.map
1 change: 1 addition & 0 deletions email-recipients
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x82349A78E7C0B8070B5980FFBA4D1D955112336F
25 changes: 25 additions & 0 deletions email.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
This file contains the e-mail address of our speakers.

It is intended for internal use of the Clermont'ech team, and it's
content has been encrypted with the GPG keys listed in the
email-recipients file.

Use the sync-email.sh script to encrypt/decrypt this content.

-----BEGIN PGP MESSAGE-----

hQGMA7twmRLBsrZWAQv8CG7kJSKn/zoDUEXlitP9l5+n2gfpsDNa8Kh2eq3I/ulE
b0fWl93RqVCALF8zn7oxWekYPW3UlboC9cnRe6d4YbNVsJzJnQ3LU5R7Z07WyGDq
jxXC9iAPa4FG5uvPmqEzntW2GeQ7om0KISuKHPCcbkDe8ac8iMfL4c94/BU8kFtE
E3hw8bljJ83RHo9pw8+6wLNS28OYepwOSTYiDS9OQJllwZZFwFBxgfXH4m7Yr9Jw
xg+Ty7KSxFY3+3qpIEd2LjBHG1Oy1HkUYTA5PJdFG+Pi1RwV/n9dknxrYlD9lJoj
W+LswlUlJO2vpM7yWuN2goNPOIHp7RuJvOwUj+qAuWaGTh7iIPhJo4oNXdZtkCMN
15SHYLuQW6twanYRruitwt5Q0uu0q6x04IuE3HnA6nz4S3vhaskjUYcs9jrH7ndA
/btl1D0/H86z5rLMsN90ltyBknzdW6xcM9T9xTE2RhgKlR+JZVtAcATyWfLXlk5U
vxybHBs07e3Moh8V8q7G0rUB/iisnCxxyQnkBZOatmllZ6RWQoPIsjP3noRMqDme
G1fHLR7nmk1IQio7iTXzj8wncWJukt9r7oNBqxQbXSKiLbrcEn9PlT/5fcPDPmm0
xrv7iGC23SCx5A9wW9QLENcrIzyWO7KD3uJwITNBD3y3S6aPxBpVkLmuY/r+p23Y
7VqEtVsR/T7tEaAA6qKe45hCII7p5TWrJZryF8he2WBvQhwp8XkehD8uL62AwXLw
9TqnyM8h
=QnFm
-----END PGP MESSAGE-----
15 changes: 15 additions & 0 deletions sync-email.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

if [ ! -f email -o email -ot email.asc ]; then
gpg --decrypt --output email email.asc
touch -r email.asc email
elif [ ! -f email.asc -o email -nt email.asc -o email-recipients -nt email.asc ]; then
enc_email=`mktemp`
sed -e '/^-----BEGIN PGP MESSAGE-----$/,$d' email.asc > "$enc_email"
gpg --encrypt `sed -e 's/^/--recipient /' email-recipients` --armor --output - email >> "$enc_email"
mv "$enc_email" email.asc

touch -r email email.asc
else
echo 'Everything is fine!'
fi