quotas and/or export messages

catch - October 6, 2006 - 16:43
Project:Privatemsg
Version:5.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Zen
Status:closed
Description

Hi,

Our privatemsg table is 10mb, and it'd be handy to have one or both of the following options:

quotas - ideally by role, so the number of private messages can be limited per user.

An export function - where you can download all your pms in a csv file, or hook into the printable page module (so we can warn people then wipe the table).

Is there any move towards either of those?

#1

desm0n - October 7, 2006 - 10:36

I have to admit i would be something we could do with too. Ours is growing at an alarming rate :)

#2

catch - March 1, 2007 - 16:09
Version:6.x-2.x-dev»

Updating version number and thinking of ways to do this.

The quota would have to work when actually sending a private message (plus maybe a "your pm quota is full" message in the index), checking the number of pms associated with both the sender and recipient (because pms will also go in sent items).

So user sends a message, and it checks the number of pms associated with their uid, then checks the number of pms associated with the recipient id, throws out a message if either are over the limit.

Will think some more.

#3

ajayg - March 6, 2007 - 00:30

A simple way to have a time based quota. Purge messages older than certain time (say 6 months). That way a cron script can be written to delete all message with age higher than threshold. Not an ideal solution but a good start.

#4

rkn - May 10, 2007 - 09:47

+1

#5

kecinzer - August 13, 2007 - 16:39
Version:» 5.x-2.x-dev

+1

#6

Zen - October 29, 2007 - 16:45
Assigned to:Anonymous» Zen
Status:active» fixed

The pm_archive module which has just been committed does auto-archiving of messages older than x. It is new and not very well tested and suffers from a few obvious limitations. Reviews and more importantly, patches are welcome.

-K

#7

catch - October 29, 2007 - 16:54

Zen, thanks very much for this. We ended up with a very limited custom solution (printing all pms to screen so they can be saved locally). I'll try to upgrade to latest dev snapshot of private messages and review soonish.

#8

Anonymous - November 12, 2007 - 22:41
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.