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?

View file

@ -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,

View file

@ -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