Opened 5 years ago

Closed 4 years ago

#1485231 closed Feature Patches (fixed)

optional temporary storage of outgoing attachments in database

Reported by: ziba Owned by:
Priority: 5 Milestone: 0.3-beta
Component: Core functionality Version: git-master
Severity: normal Keywords: database attachments load balancing
Cc:

Description

Load balancing techniques such as round robin dns require that all machines running roundcube can access all of a user's data. Currently, when a user uploads an attachment, it is put on local disk temporarily. This would make it inaccessible if the load balancer had the user send the mail from a different server then the one to which they uploaded the attachment.

This patch introduces a new configuration option:
$rcmail_configattachment_storage? = 'database';

When set to database attachments will go into the cache table in the database and never be stored on local disk.

Any other configuration setting will fall back to using disk storage.

Attachments (4)

0001-New-optional-mysql-backend-for-outgoing-attachments.patch (10.6 KB) - added by ziba 5 years ago.
Database-attachment-backend.patch (10.0 KB) - added by ziba 5 years ago.
Updated patch to work with svn r1814
Database-attachment-backend.2.patch (10.0 KB) - added by ziba 5 years ago.
Updated patch to work with svn r1883
Database-attachment-backend.3.patch (9.5 KB) - added by Technetux 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by ziba

Updated patch to work with svn r1814

Changed 5 years ago by ziba

Updated patch to work with svn r1883

Changed 5 years ago by Technetux

comment:1 Changed 5 years ago by ziba

My friend Technetux's patch fixes a problem with a poorly named temporary variable.

comment:2 Changed 4 years ago by alec

  • Component changed from Client Scripts to Core functionality
  • Milestone changed from later to 0.3-beta
  • Resolution set to fixed
  • Status changed from new to closed

Implemented as plugin? Closing.

Note: See TracTickets for help on using tickets.