diff --git a/app/controllers/folders_controller.rb b/app/controllers/folders_controller.rb index fe91111..a81a913 100755 --- a/app/controllers/folders_controller.rb +++ b/app/controllers/folders_controller.rb @@ -1,3 +1,6 @@ +require 'imap_mailbox' +require 'imap_session' + class FoldersController < ApplicationController include ImapMailboxModule diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index be903ea..5105a29 100755 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -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) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 78b1ed8..7b9d597 100755 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -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? diff --git a/app/models/folder.rb b/app/models/folder.rb index 3f2f33e..d967081 100755 --- a/app/models/folder.rb +++ b/app/models/folder.rb @@ -56,7 +56,6 @@ class Folder < ActiveRecord::Base end user.folders.create( - :msgs_updated_at => DateTime.now-1, :name => name, :parent => parent, :haschildren => has_children, diff --git a/config/locales/pl.yml b/config/locales/pl.yml index d9f2003..70e313f 100755 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -108,7 +108,7 @@ pl: save: Zapisz imap_error: Błąd protokołu IMAP unspecified_error: Nieoczekiwany błąd - page_not_found: Nie znaleziono żadanej strony + page_not_found: Nie znaleziono żądanej strony copy: Skopiuj move: Przenieś to: do