[Users] [Bug 3644] Fancy renders blank page for most html emails when using shared-mime-info 1.6

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Tue Jun 14 06:36:18 CEST 2016


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3644

--- Comment #5 from Martin Schwenke <martin at meltin.net> ---
I understand that this is closed, but people come here looking for
answers to this and I just found one, so I figure it is worth
documenting what I found to try and help others...  :-)

When using the Fancy plugin files like this are created:

  ~/.claws-mail/mimetmp/000000c0.mimetmp.html

Note the ".html" extension.

By bisecting my configuration, I found I had a file called:

  ~/.local/share/mime/packages/user-extension-html.xml

containing:

  <?xml version="1.0" encoding="UTF-8"?>
  <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
   <mime-type type="application/x-extension-html">
    <comment>html document</comment>
    <glob pattern="*.html"/>
   </mime-type>
  </mime-info>

This looks like it maps files with extension .html to MIME type
application/x-extension-html.

Removing this file and running:

  update-mime-database ~/.local/share/mime

stopped the problem with the Fancy plugin occurring.

Note that running the above command makes other changes to
~/.local/share/mime/ so you might want to backup this directory when
testing.

If I re-add the file and run the above command again the problem
returns.

Another thing that works around the problem is removing the changes to
/usr/share/mime/packages/freedesktop.org.xml mentioned at
https://bbs.archlinux.org/viewtopic.php?pid=1623743#p1623743, which
seems to explain why downgrading shared-mime-info helps.

I'm not sure what created
~/.local/share/mime/packages/user-extension-html.xml.  However,
neither it nor most of the other contents of ~/.local/share/mime/ had
changed for over a year (probably since I installed this new laptop
and started using it).  However, when I upgraded shared-mime-info to
1.6 back in early May, this triggered a bug somewhere in combination
with the existence of this file.  I wish I understood more...

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list