Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 3.18 KB

File metadata and controls

83 lines (55 loc) · 3.18 KB

Roundcube Plugin: Cloud View

Packagist Packagist Version Project license GitHub stars Donate to this project using Paypal

A Roundcube plugin which lets you directly view mail attachments in the browser with cloud viewers like Google Docs or Microsoft Office Web.

demo

Supported Formats

Office Formats

  • Text: doc, docx, odt[1], ott[1]
  • Spreadsheet: xls, xlsx, ods[1], ots[1]
  • Presentation: ppt, pptx, odp[1], otp[1]

[1]: only available in Microsoft Office Web

Other Formats

  • pdf

Requirements

This plugin is tested in the following environment.

  • Roundcube: 1.4
  • PHP: 7.1 (min requirement), 7.4
  • Skin: Classic, Larry, Elastic

Different environments may work as well without guarantee.

How to install this plugin in Roundcube

Install via Composer

This plugin has been published on Packagist by the name of jfcherng-roundcube/cloudview.

  1. Go to your ROUNDCUBE_HOME (i.e., the root directory of your Roundcube).
  2. Run composer require jfcherng-roundcube/cloudview.
  3. You may edit the config.inc.php under this plugin's directory if you want to do some configurations.

Install manually

  1. Create folder cloudview in ROUNDCUBE_HOME/plugins if it does not exist.
  2. Copy all plugin files there.
  3. Copy config.inc.php.dist to config.inc.php and edit config.inc.php if you want.
  4. Edit ROUNDCUBE_HOME/conf/config.inc.php locate $config['plugins'] and add 'cloudview', there:
<?php

// some other codes...

$config['plugins'] = array(
    // some other plugins...
    'cloudview', // <-- add this
);

Temporary Files

This plugin will extract attachments from messages into plugins/cloudview/temp/ so that remote cloud viewers can publicly access them. But those files will not be deleted automatically. You will need to setup a cron job to periodically delete them.

For example, execute crontab -e and add the following job

# delete temporary files every day
0 0 * * * rm -f PATH_TO_ROUNDCUBE/plugins/cloudview/temp/*

Acknowledgement