In Secmail app, with the first of the year, there are no messages. Ever.

The (load previous month’s messages) button works.

Thinking that this is a bug in index.js.rb, I found this code:

  # on initial load, fetch latest mailbox, subscribe to keyboard and
  # server side events, and initialize selected item.
  def componentDidMount()
    today = Date.new()
    twice = (today.getMonth()+1==@nextmbox[4..5].to_i and today.getDate()<=7)
    self.fetch_month() do
      if @nextmbox and twice
        # for the first week of the month, fetch previous month too
        self.fetch_month() do
          @fetched = true
        end
      else
        @fetched = true
      end
    end

But I cannot figure out what is wrong with it. Maybe today.getMonth()+1 doesn’t 
equal January? Maybe getMonth()+1 modulo 12 is required?


Craig L Russell
Architect
[email protected]
P.S. A good JDO? O, Gasp!





Reply via email to