fixes
This commit is contained in:
parent
c995062544
commit
081bf95ce7
|
@ -1,3 +1,6 @@
|
|||
require 'imap_mailbox'
|
||||
require 'imap_session'
|
||||
|
||||
class FoldersController < ApplicationController
|
||||
|
||||
include ImapMailboxModule
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue