- Component Overview
- Technologies (DB, Languages, Frameworks)
Functionalities
This is a simple maildrop filter which filters incoming messages by the sender address and move it to the corresponding folder. E-Mail address and destination folder are both defined in a MySQL table.
This example is used in an uberspace environment.
For convenience we use the already existing database corresponding to your uberspace account (e.g. your uberspace username is melanie there will be already a database called melanie.
require 'gollum/app' | |
class GollumAuth | |
User = Struct.new(:name, :email, :password_hash) | |
def users | |
if @_users | |
return @_users | |
end | |
all_users = YAML.load_file(File.expand_path('users.yml', File.dirname(__FILE__))) |
/* ------------------------------------------------- | |
MINIMAL TWITTER FOR FLUID / USERSTYLES | |
Special thanks to: | |
Max Fenton (@maxfenton) for kicking this off | |
------------------------------------------------- */ | |
.trends, .bird-topbar-etched, .wtf-module, .site-footer, .topics { |
require 'gollum/frontend/app' | |
require 'digest/sha1' | |
class App < Precious::App | |
User = Struct.new(:name, :email, :password_hash, :can_write) | |
before { authenticate! } | |
before /^\/(edit|create|delete|livepreview|revert)/ do authorize_write! ; end | |
helpers do |
# ....other stuff here | |
paginate: 10 |