<%= @box %> <% dirs = ['inbox','outbox'] dirs.delete(@box) dirs.each do |d| %>
<% end %>

<% @idx = 0 @threads.each do |object| @object = object %> <%= erb :object %> <% end %> <% unless @box == 'shared' %>
<% end %>