This was written and tested on Ubuntu 8.04 beta4
Removing 30 day old files from you gnome trash can be done with the following magic line:
find ~/.local/share/Trash/files/ -type f -mtime +30 -printf '%P\000' |xargs -n1 -I {} -0 gvfs-rm trash:///_{}# m h dom mon dow command
MAILTO=""
@daily find ~/.local/share/Trash/files/ -type f -mtime +30 -printf '%P\000' |xargs -n1 -I {} -0 gvfs-rm trash:///_{}# m h dom mon dow command
MAILTO=""
0 */3 * * * find ~/.local/share/Trash/files/ -type f -mtime +30 -printf '%P\000' |xargs -n1 -I {} -0 gvfs-rm trash:///_{}Update: Changed -mtime 30 to -mtime +30 to delete all 30 day old and older files.