You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by Craig Russell <cr...@oracle.com> on 2017/04/18 15:12:52 UTC

Secmail treatment of icla.JPG files is awkward

When an email to secretary contains attachments of icla.jpg files, they can be viewed in the view pane.

When the attachment is ICLA.JPG, clicking on the file name downloads the file for viewing via the local pdf viewer app.

But drag/drop to paste multiple pages together works fine.

I think the relevant code is in the parts.js.rb:

      if attachment =~ /\.(pdf|txt|jpeg|jpg|gif|png)$/i
        link = "./#{attachment}"
      else
        link = "_danger_/#{attachment}"
      end

  # clicking on an attachment selects it
  def select(event)
    self.selectPart event.currentTarget.querySelector('a').getAttribute('href')
  end


Or is the trailing i indicate case-insensitive match?

What function decides to download the icla.JPG instead of viewing it?

Craig L Russell
clr@apache.org