aghstrategies / com.aghstrategies.airmail

Unified CiviCRM bounce event handler for SMTP services
Other
8 stars 13 forks source link

CRM_Airmail_Backend_Elastic::processMessages() has hard-coded log file #24

Closed bugfolder closed 1 year ago

bugfolder commented 2 years ago

The function CRM_Airmail_Backend_Elastic::processMessages() has a hard-coded log file location:

  public function processMessages($event) {
    // Keep a log to check what we're being sent.
    file_put_contents("/var/www/support.opendemocracy.net/sites/default/files/private/elasticemail-events.json",
      json_encode($event),
      FILE_APPEND
    );
    ...

Of course this directory structure doesn't exist in most installations. Seems like this ought to be a user setting.

chrisgaraffa commented 1 year ago

Thanks - fixed by merging #23