Hi, I just found the time to modify my plugin according to the input I got here (and added new functionality). See attached plugin file and a German translation. Main purpose for this plugin is to automatically delete mail files with a server side shell script (cronjob). User can set expiration for each folder as desired. If the user then does not login for a longer time, expiration handling is still performed (e.g. for spam mails) and disk usage is decreased. Any comments were appreciated. I'm still not aware how to publish a plugin to squirrelmail.org. As far as I understood I can send suggestions on changes to plugins created by other authors to this list and they'll take care about the suggestions. What I'm still confused about is how I (as the author) publish a new plugin at squirrelmail.org. Is there someone out, who can explain me the necessary steps? Thx in advance! Live long and prosper Jam Details: --------- > Your plugin assumes that $data_dir is writable and does not handle directory open and create errors. Done > Temporally directory is hardcoded to /tmp. Use $attachment_dir and random > file names instead. Done > If php is running in safe mode, you can't just create $data_dir/expire directory. Directory must be present and owned by correct user. Done > check "Expiration set/deleted/modified successfully for folder %s" messages and second drop down box output when imap folder name contains 8bit characters or & or < or > or HTML formatting. Done > Don't assume that English syntax/grammar logic works with other languages. > Don't try to create one sentence from three independent strings. Translators should be able to control entire message. Done > There is no need to revert to squirrelmail domain before stopping script execution or redirecting to other script. bindtextdomain calls are resource hogs in some setups. Done > add empty line before your table. Now it is attached to folder > subscription table. Done > getpot script should send output to .pot file. .po files contain translations, .pot files contain translation templates. Done > Use of $stat variable in options.php is dangerous when php > register_globals are on. Done > Don't use SM_PATH in URLs. use sqm_baseuri() or get_location(). Done > -- > Tomas New: - Uses config.php. - Automatically create default profile at first login of user. - Support for folder rename and delete added.
Sign up for the SourceForge newsletter:No, thanks