FreeScout module to connect to Ameise API
Find a file
Claude fc5a3d949a
Fix archived replies not retried after re-login (#39)
The core bug was in CrmApiClient::archiveConversation() which returned a
truthy error array on token failures, causing archiveConversationData()
to mark threads as archived even though the CRM API was never called.

Changes:
- Return false (not error array) from archiveConversation() on token error
- Add `last_error` column to crm_archive_threads to track failed archivals
- Record failures in CrmArchiveThread so the cron can retry them
- Update ArchiveThreads command to retry failed entries and skip
  disconnected users (no token file)
- Wrap ArchiveThreadsJob in try-catch to track unexpected exceptions
- Use CrmArchive as source for conversation IDs (more reliable)

https://claude.ai/code/session_01Bvg33MSPkDhxo1LJ6kQBxu
2026-04-14 21:50:01 +00:00
.github Revert "clear git cache" 2023-07-21 16:25:32 +05:30
Config Disable verbose Ameise logging by default 2025-12-13 11:43:20 +01:00
Console Fix archived replies not retried after re-login (#39) 2026-04-14 21:50:01 +00:00
Database Fix archived replies not retried after re-login (#39) 2026-04-14 21:50:01 +00:00
Entities Add Thread import 2025-06-04 11:27:40 +02:00
Http Use POST body mail parameter for Ameise email search 2026-04-14 23:09:59 +02:00
Jobs Fix archived replies not retried after re-login (#39) 2026-04-14 21:50:01 +00:00
Providers fix: Class not found durch define() Guard und FQCNs beheben 2026-03-16 23:58:11 +00:00
Public Use POST body mail parameter for Ameise email search 2026-04-14 23:09:59 +02:00
Resources Replace maklerinfo domain with ameise.app in portal links 2026-04-14 21:54:56 +02:00
Services Fix archived replies not retried after re-login (#39) 2026-04-14 21:50:01 +00:00
composer.json add composer description 2025-05-10 00:52:22 +02:00
LICENSE.md add LICENSE.md 2024-04-12 14:28:22 +02:00
module.json package update 2023-12-20 17:44:05 +05:30
README.md docs: #scanonly Feature in README dokumentiert 2026-03-16 22:02:00 +00:00
start.php new code 2023-09-16 16:00:05 +05:30

Ameise Freescout Package

Installation

  1. Download the latest module zip file via the releases card on the right.
  2. Transfer the zip file to the server in the Modules/AmeiseModule folder of FreeScout.
  3. Unpack the zip file.
  4. Remove the zip file.
  5. Activate the module via the Modules page in FreeScout. Log in to Ameise to connect.

Update instructions

  1. Download the latest module zip file via the releases card on the right.
  2. Transfer the zip file to the server in the Modules/AmeiseModule folder of FreeScout.
  3. Remove the content of the folder AmeiseModule
  4. Unpack the zip file.
  5. Remove the zip file.
  6. Activate the module via the Modules page in FreeScout.

Logging

Verbose module logs (including Cron-Logeinträge) are disabled by default to avoid ein übermäßiges Wachstum der activity_logs-Tabelle. Bei Bedarf können Sie sie über die Umgebungsvariable AMEISE_LOG_STATUS=true wieder aktivieren.

Attachment Handling

Image attachments are automatically converted to PDF before being archived.

Scan Only Modus

Wenn der Betreff einer E-Mail #scanonly enthält, werden nur die Anhänge archiviert die E-Mail selbst wird nicht an Ameise übertragen. Die Erkennung ist case-insensitive (#scanonly, #SCANONLY, #ScanOnly etc.).