fix: ignore inquiry emails (demande d'information) during Airbnb import #24

Merged
hume merged 1 commit from fix/ignore-inquiry-emails into main 2026-10-04 07:14:48 +00:00
Owner
  • Add EmailType.INQUIRY enum for 'demande d'information' / pre-approval emails
  • Detect inquiry emails by subject keywords: 'demande d'information', 'demande de renseignements', 'pre-approval', 'pré-approbation'
  • Skip inquiry emails in both preview_email_import() and import_email() - they are NOT confirmed bookings
  • Add test_detect_email_type_inquiry, test_preview_email_import_inquiry, test_import_email_inquiry tests

This prevents creation of fake bookings from inquiry emails like 'Elodie airbnb' which was just a request for information, not a confirmed reservation.

- Add EmailType.INQUIRY enum for 'demande d'information' / pre-approval emails - Detect inquiry emails by subject keywords: 'demande d'information', 'demande de renseignements', 'pre-approval', 'pré-approbation' - Skip inquiry emails in both preview_email_import() and import_email() - they are NOT confirmed bookings - Add test_detect_email_type_inquiry, test_preview_email_import_inquiry, test_import_email_inquiry tests This prevents creation of fake bookings from inquiry emails like 'Elodie airbnb' which was just a request for information, not a confirmed reservation.
fix: ignore inquiry emails (demande d'information) during Airbnb import
All checks were successful
Backend / backend (pull_request) Successful in 1m22s
Migration Test / migration-test (pull_request) Successful in 27s
05c97a4902
- Add EmailType.INQUIRY enum for 'demande d'information' / pre-approval emails
- Detect inquiry emails by subject keywords: 'demande d'information', 'demande de renseignements', 'pre-approval', 'pré-approbation'
- Skip inquiry emails in both preview_email_import() and import_email() - they are NOT confirmed bookings
- Add test_detect_email_type_inquiry, test_preview_email_import_inquiry, test_import_email_inquiry tests

This prevents creation of fake bookings from inquiry emails like 'Elodie airbnb' which was just a request for information, not a confirmed reservation.
hume merged commit a517502abd into main 2026-10-04 07:14:48 +00:00
hume deleted branch fix/ignore-inquiry-emails 2026-10-04 07:14:48 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hume/sci-rental-manager!24
No description provided.