fixes
This commit is contained in:
parent
c995062544
commit
081bf95ce7
|
@ -1,3 +1,6 @@
|
||||||
|
require 'imap_mailbox'
|
||||||
|
require 'imap_session'
|
||||||
|
|
||||||
class FoldersController < ApplicationController
|
class FoldersController < ApplicationController
|
||||||
|
|
||||||
include ImapMailboxModule
|
include ImapMailboxModule
|
||||||
|
|
|
@ -54,6 +54,8 @@ class MessagesController < ApplicationController
|
||||||
flash[:notice] = 'Not impelented yet'
|
flash[:notice] = 'Not impelented yet'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TODO error when no folders are shown
|
||||||
|
|
||||||
def refresh
|
def refresh
|
||||||
@folders_shown.each do |f|
|
@folders_shown.each do |f|
|
||||||
@mailbox.set_folder(f.full_name)
|
@mailbox.set_folder(f.full_name)
|
||||||
|
|
|
@ -12,6 +12,8 @@ class UserController < ApplicationController
|
||||||
redirect_to :action => "login"
|
redirect_to :action => "login"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TODO make login possible to use only one username
|
||||||
|
|
||||||
def authenticate
|
def authenticate
|
||||||
user = User.find_by_email(params[:user][:email])
|
user = User.find_by_email(params[:user][:email])
|
||||||
if user.nil?
|
if user.nil?
|
||||||
|
|
|
@ -56,7 +56,6 @@ class Folder < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
user.folders.create(
|
user.folders.create(
|
||||||
:msgs_updated_at => DateTime.now-1,
|
|
||||||
:name => name,
|
:name => name,
|
||||||
:parent => parent,
|
:parent => parent,
|
||||||
:haschildren => has_children,
|
:haschildren => has_children,
|
||||||
|
|
|
@ -108,7 +108,7 @@ pl:
|
||||||
save: Zapisz
|
save: Zapisz
|
||||||
imap_error: Błąd protokołu IMAP
|
imap_error: Błąd protokołu IMAP
|
||||||
unspecified_error: Nieoczekiwany błąd
|
unspecified_error: Nieoczekiwany błąd
|
||||||
page_not_found: Nie znaleziono żadanej strony
|
page_not_found: Nie znaleziono żądanej strony
|
||||||
copy: Skopiuj
|
copy: Skopiuj
|
||||||
move: Przenieś
|
move: Przenieś
|
||||||
to: do
|
to: do
|
||||||
|
|
Loading…
Reference in a new issue