{"id":19648380,"url":"https://github.com/bestpractical/rt-extension-customizecontenttype","last_synced_at":"2025-09-23T18:00:09.925Z","repository":{"id":2934694,"uuid":"3946487","full_name":"bestpractical/rt-extension-customizecontenttype","owner":"bestpractical","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-03T18:45:12.000Z","size":58,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-21T18:57:41.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://search.cpan.org/dist/rt-extension-customizecontenttype","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bestpractical.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-06T03:23:04.000Z","updated_at":"2021-03-26T19:29:09.000Z","dependencies_parsed_at":"2022-08-30T23:01:07.306Z","dependency_job_id":null,"html_url":"https://github.com/bestpractical/rt-extension-customizecontenttype","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bestpractical/rt-extension-customizecontenttype","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-customizecontenttype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-customizecontenttype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-customizecontenttype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-customizecontenttype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bestpractical","download_url":"https://codeload.github.com/bestpractical/rt-extension-customizecontenttype/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Frt-extension-customizecontenttype/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276622503,"owners_count":25675125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T14:48:06.775Z","updated_at":"2025-09-23T18:00:09.892Z","avatar_url":"https://github.com/bestpractical.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    RT::Extension::CustomizeContentType - Customize Attachments' ContentType\n\nINSTALLATION\n    perl Makefile.PL\n    make\n    make install\n        May need root permissions\n\n    Edit your /opt/rt4/etc/RT_SiteConfig.pm\n        If you are using RT 4.2 or greater, add this line:\n\n            Plugin('RT::Extension::CustomizeContentType');\n\n        For RT 4.0, add this line:\n\n            Set(@Plugins, qw(RT::Extension::CustomizeContentType));\n\n        or add RT::Extension::CustomizeContentType to your existing @Plugins\n        line.\n\n    Clear your mason cache\n            rm -rf /opt/rt4/var/mason_data/obj\n\n    Restart your webserver\n\nCONFIGURATION\n    Set the %ContentTypes configuration variable to a hash of extension and\n    desired content-type:\n\n        Set(\n            %ContentTypes,\n            (\n                't'    =\u003e 'text/x-perl-script',\n                'psgi' =\u003e 'text/x-perl-script',\n            )\n        );\n\n  Microsoft Office\n    Older versions of IE often upload newer Microsoft Office documents with\n    the generic application/octet-stream MIME type instead of something more\n    appropriate. This causes RT to offer the file for download using the\n    generic content type, which confuses users and doesn't launch Office for\n    them. You can fix that by installing this extension and using the\n    configuration below:\n\n        Set(%ContentTypes,\n            'docm' =\u003e 'application/vnd.ms-word.document.macroEnabled.12',\n            'docx' =\u003e 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n            'dotm' =\u003e 'application/vnd.ms-word.template.macroEnabled.12',\n            'dotx' =\u003e 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',\n            'potm' =\u003e 'application/vnd.ms-powerpoint.template.macroEnabled.12',\n            'potx' =\u003e 'application/vnd.openxmlformats-officedocument.presentationml.template',\n            'ppam' =\u003e 'application/vnd.ms-powerpoint.addin.macroEnabled.12',\n            'ppsm' =\u003e 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',\n            'ppsx' =\u003e 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',\n            'pptm' =\u003e 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',\n            'pptx' =\u003e 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n            'xlam' =\u003e 'application/vnd.ms-excel.addin.macroEnabled.12',\n            'xlsb' =\u003e 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',\n            'xlsm' =\u003e 'application/vnd.ms-excel.sheet.macroEnabled.12',\n            'xlsx' =\u003e 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n            'xltm' =\u003e 'application/vnd.ms-excel.template.macroEnabled.12',\n            'xltx' =\u003e 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',\n        );\n\n    Config contributed by Nathan March.\n\nAUTHOR\n    Best Practical Solutions, LLC \u003cmodules@bestpractical.com\u003e\n\nBUGS\n    All bugs should be reported via email to\n\n        L\u003cbug-RT-Extension-CustomizeContentType@rt.cpan.org|mailto:bug-RT-Extension-CustomizeContentType@rt.cpan.org\u003e\n\n    or via the web at\n\n        L\u003crt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-CustomizeContentType\u003e.\n\nLICENSE AND COPYRIGHT\n    This software is Copyright (c) 2014 by Best Practical Solutions\n\n    This is free software, licensed under:\n\n      The GNU General Public License, Version 2, June 1991\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Frt-extension-customizecontenttype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbestpractical%2Frt-extension-customizecontenttype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Frt-extension-customizecontenttype/lists"}