CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMailProcessor.php ceased to process when fCiviMail.processed/cur overfilled"
Pages: [1]

Author Topic: CiviMailProcessor.php ceased to process when fCiviMail.processed/cur overfilled"  (Read 1489 times)

jrkelley32

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
CiviMailProcessor.php ceased to process when fCiviMail.processed/cur overfilled"
May 05, 2009, 09:55:31 am
CiviMailProcessor.php ceased to process bounces.  In investigating, I found many thousands of files in
/media/civicrm/custom/CiviMail.processed/cur
When I cleaned them up, CiviMailProcessor.php worked again.  Is this something I need to do as maintenance or is CiviMailProcessor.php supposed to clean up that folder?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviMailProcessor.php ceased to process when fCiviMail.processed/cur overfilled"
May 05, 2009, 11:53:19 am
Quote from: jrkelley32 on May 05, 2009, 09:55:31 am
CiviMailProcessor.php ceased to process bounces.  In investigating, I found many thousands of files in
/media/civicrm/custom/CiviMail.processed/cur
When I cleaned them up, CiviMailProcessor.php worked again.  Is this something I need to do as maintenance or is CiviMailProcessor.php supposed to clean up that folder?

Hm, that’s a good question. The processed files are put there so that you have a kind of trail for what CiviMail Processor actually processed – I didn’t want to delete any email, but then I didn’t take into account that this may cause problems in large-scale installs.

For now, if you can setup a cronjob that simply deletes old files from there, that would be best. What would be a sane time to consider processed emails as ‘old’ in your case?

I filed CRM-4452 to track this issue.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMailProcessor.php ceased to process when fCiviMail.processed/cur overfilled"
May 05, 2009, 02:00:47 pm

how about archiving the old files in a YYYY/MM/DD/ directory format

then we can add additional code to go in and delete directories that are much older. plus for most installs the above system does not create directories with a lot of files

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviMailProcessor.php ceased to process when fCiviMail.processed/cur overfilled"
May 06, 2009, 06:04:24 am
Quote from: Donald Lobo on May 05, 2009, 02:00:47 pm
how about archiving the old files in a YYYY/MM/DD/ directory format

then we can add additional code to go in and delete directories that are much older. plus for most installs the above system does not create directories with a lot of files

Hey, a very good idea. I’ll fix the Processor to outright move the processed emails to {$config->customFileUploadDir}/CiviMail.processed/$year/$month/$day/cur, and we can create stuff that’s older than two months easily.

(I want to keep the cur/new/tmp subdirs at the lowest level so that the …/$year/$month/$day keeps being a valid Maildir and thus trivially accessible with any user agents like Mutt.)
« Last Edit: May 06, 2009, 07:47:47 am by Piotr Szotkowski »
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

jrkelley32

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
Re: CiviMailProcessor.php ceased to process when fCiviMail.processed/cur overfilled"
May 06, 2009, 06:12:34 am
In the meantime I added a cron job:
find (...)/media/civicrm/custom/CiviMail.processed/cur/* -mtime +5 -exec rm {} \;
I can change the 5 to whatever period of time I want to let them hang around for.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMailProcessor.php ceased to process when fCiviMail.processed/cur overfilled"

This forum was archived on 2017-11-26.