This commit is contained in:
Wojciech Todryk 2011-08-16 23:37:13 +02:00
parent c995062544
commit 081bf95ce7
5 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,6 @@
require 'imap_mailbox'
require 'imap_session'
class FoldersController < ApplicationController
include ImapMailboxModule

View file

@ -54,6 +54,8 @@ class MessagesController < ApplicationController
flash[:notice] = 'Not impelented yet'
end
# TODO error when no folders are shown
def refresh
@folders_shown.each do |f|
@mailbox.set_folder(f.full_name)

View file

@ -12,6 +12,8 @@ class UserController < ApplicationController
redirect_to :action => "login"
end
# TODO make login possible to use only one username
def authenticate
user = User.find_by_email(params[:user][:email])
if user.nil?