Mail and Packages: Custom component for UPS, FEDEX, and USPS

No I believe the logic can’t handle that (package shipping/arriving same day)

hmm, that’s a bit of a bummer. So much of Amazon in metro areas is exactly that, same day shipping and arrival. The wiki seems to indicate it should be able to though.

The integration scans for these emails the current day and previous 2 days. If the “deliver by:” date matches the current day the value is increased by 1. Amazon now provides a delivered notification* for internal contractor deliveries. These emails are searched for in the current day only the same way the other shipper delivered emails are counted.

Did it say “Deliver by: today, December 23” ?

You’d need to post the part of the log that came after the bit you already posted.

Here’s a full run


2020-12-23 15:03:53 INFO (MainThread) [custom_components.mail_and_packages] Version 0.3.0-b17 is starting, if you have any issues please report them here: http://github.com/moralmunky/Home-Assistant-Mail-And-Packages
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find Informed Delivery mail
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Informed delivery search date: 23-Dec-2020
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SUBJECT "Your Daily Digest" SENTON "23-Dec-2020")
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Cleaning up image directory: /config/images/mail_and_packages/
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Checking for overlay files in: /config/images/mail_and_packages/
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Copying file to: /config/images/mail_and_packages/overlay.png
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Copying file to: /config/images/mail_and_packages/vignette.png
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Copying file to: /config/images/mail_and_packages/white.png
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Informed Delivery email found processing...
2020-12-23 15:03:55 WARNING (SyncWorker_5) [homeassistant.components.local_file.camera] Could not read camera mail_usps image from file: /config/images/mail_and_packages/mail_today.gif
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Extracting image from email
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Extracting image from email
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Removing duplicate images.
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Removing USPS announcement images.
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Image Count: 0
2020-12-23 15:03:55 INFO (SyncWorker_1) [custom_components.mail_and_packages.helpers] No mail found.
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Copying nomail gif
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Generating mp4: /config/images/mail_and_packages/mail_today.mp4
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (Item Delivered)
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Item Delivered" SENTON "23-Dec-2020")
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (Item Delivered) results: b'' count: 0
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (Expected Delivery on)
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Expected Delivery on" SENTON "23-Dec-2020")
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for (['Your item is out for delivery']) in (0) emails
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['Your item is out for delivery']) count results: 0
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (Expected Delivery on) results: b'' count: 0
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (Your UPS Package was delivered)
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Your UPS Package was delivered" SENTON "23-Dec-2020")
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (Your UPS Package was delivered) results: b'' count: 0
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (Your UPS Packages were delivered)
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Your UPS Packages were delivered" SENTON "23-Dec-2020")
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (Your UPS Packages were delivered) results: b'69081' count: 1
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for tracking numbers...
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] No tracking numbers found
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (UPS Update: Package Scheduled for Delivery Today)
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "UPS Update: Package Scheduled for Delivery Today" SENTON "23-Dec-2020")
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for (['Tracking Number']) in (0) emails
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['Tracking Number']) count results: 0
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (UPS Update: Package Scheduled for Delivery Today) results: b'' count: 0
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (UPS Update: Follow Your Delivery on a Live Map)
2020-12-23 15:03:55 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "UPS Update: Follow Your Delivery on a Live Map" SENTON "23-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for (['Tracking Number']) in (0) emails
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['Tracking Number']) count results: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (UPS Update: Follow Your Delivery on a Live Map) results: b'' count: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]', '[email protected]']) with subject (Your package has been delivered)
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SUBJECT "Your package has been delivered" SENTON "23-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['[email protected]', '[email protected]']) with subject 1 (Your package has been delivered) results: b'' count: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]', '[email protected]']) with subject (Delivery scheduled for today)
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SUBJECT "Delivery scheduled for today" SENTON "23-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['[email protected]', '[email protected]']) with subject 1 (Delivery scheduled for today) results: b'' count: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]', '[email protected]']) with subject (Your package is scheduled for delivery today)
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SUBJECT "Your package is scheduled for delivery today" SENTON "23-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Search for (['[email protected]', '[email protected]']) with subject 1 (Your package is scheduled for delivery today) results: b'' count: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find Amazon email with item list ...
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 2
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Email Multipart: True
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Content Type: multipart/alternative
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon Subject: Your Amazon.com order #114-4551039-9726642 has shipped
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Email Multipart: True
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Content Type: multipart/alternative
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon Subject: Your Amazon.com order #111-7924782-9165869 has shipped
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon Count: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Attempting to find Amazon email with item list ...
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 2
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Email Multipart: True
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Content Type: multipart/alternative
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon Subject: Your Amazon.com order #114-4551039-9726642 has shipped
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Email Multipart: True
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Content Type: multipart/alternative
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon Subject: Your Amazon.com order #111-7924782-9165869 has shipped
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "20-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon order: ['114-4551039-9726642', '111-7924782-9165869']
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon delivered email(s)...
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "23-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "23-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "23-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "23-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "23-Dec-2020")
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:56 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "23-Dec-2020")
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "23-Dec-2020")
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "23-Dec-2020")
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "23-Dec-2020")
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "23-Dec-2020")
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "23-Dec-2020")
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "23-Dec-2020")
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 0
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-23 15:03:57 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-23 15:03:57 DEBUG (MainThread) [custom_components.mail_and_packages] Finished fetching Mail and Packages 

From what I can see it only looks for shipping emails from 3 days ago (the 20th) and order updates from the 23rd. I’m not sure why though.

Based on the output the amazon sensor should have been showing a count of 2.

Those two packages it listed were old. They’d already been delivered prior to the 23rd. Both of those two packages shipped on the 20th and arrived on the 21st.

I have another package that shipped yesterday and does not show.

Should I open a ticket on GitHub?

The package won’t tick +1 until the day the email states it should be delivered.
If packages are delivered earlier, the count will still only show on the day it should be delivered per the email.

Sorry, that is what I am seeing not happening but unsure why.

I got an email on Wednesday 12/23 at 1:17AM PST saying " Hi XXXX, your package will arrive: Thursday, December 24

The package arrived on Thursday the 24th, as planned.

I never got a +1 for Amazon on Wednesday, or Thursday. It never showed an order number under the Amazon sensor either. It never did anything.

Over the same period I see UPS working fine

In order to properly troubleshoot, we’d need debug logs.
Also what version of the integration are you using?

Logs: Mail and Packages: Custom component for UPS, FEDEX, and USPS

Version: latest 3.0 beta 17.

I can upload more logs, but that’s one full run of the script. I’m not sure what else to share, but I’ve had debug on for a few days now so just let me know.

I need some logs from the day of the delivery.

Okay. So I received a package on the 23rd at 19:28 with the subject “Delivered:”. The first time that the Mail and Packages debug app picked it up was after midnight on the 24th at 00:01

2020-12-24 00:01:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find Informed Delivery mail
2020-12-24 00:01:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Informed delivery search date: 24-Dec-2020
2020-12-24 00:01:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SUBJECT "Your Daily Digest" SENTON "24-Dec-2020")
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Cleaning up image directory: /config/images/mail_and_packages/
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Checking for overlay files in: /config/images/mail_and_packages/
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Copying file to: /config/images/mail_and_packages/overlay.png
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Copying file to: /config/images/mail_and_packages/vignette.png
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Copying file to: /config/images/mail_and_packages/white.png
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Informed Delivery email found processing...
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Removing duplicate images.
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Removing USPS announcement images.
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Image Count: 0
2020-12-24 00:01:27 INFO (SyncWorker_3) [custom_components.mail_and_packages.helpers] No mail found.
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Copying nomail gif
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Generating mp4: /config/images/mail_and_packages/mail_today.mp4
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (Item Delivered)
2020-12-24 00:01:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Item Delivered" SENTON "24-Dec-2020")
2020-12-24 00:01:30 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (Item Delivered) results: b'' count: 0
2020-12-24 00:01:30 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (Expected Delivery on)
2020-12-24 00:01:30 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Expected Delivery on" SENTON "24-Dec-2020")
2020-12-24 00:01:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for (['Your item is out for delivery']) in (0) emails
2020-12-24 00:01:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['Your item is out for delivery']) count results: 0
2020-12-24 00:01:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (Expected Delivery on) results: b'' count: 0
2020-12-24 00:01:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (Your UPS Package was delivered)
2020-12-24 00:01:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Your UPS Package was delivered" SENTON "24-Dec-2020")
2020-12-24 00:01:36 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (Your UPS Package was delivered) results: b'' count: 0
2020-12-24 00:01:36 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (Your UPS Packages were delivered)
2020-12-24 00:01:36 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Your UPS Packages were delivered" SENTON "24-Dec-2020")
2020-12-24 00:01:39 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (Your UPS Packages were delivered) results: b'' count: 0
2020-12-24 00:01:39 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (UPS Update: Package Scheduled for Delivery Today)
2020-12-24 00:01:39 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "UPS Update: Package Scheduled for Delivery Today" SENTON "24-Dec-2020")
2020-12-24 00:01:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for (['Tracking Number']) in (0) emails
2020-12-24 00:01:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['Tracking Number']) count results: 0
2020-12-24 00:01:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (UPS Update: Package Scheduled for Delivery Today) results: b'' count: 0
2020-12-24 00:01:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (UPS Update: Follow Your Delivery on a Live Map)
2020-12-24 00:01:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "UPS Update: Follow Your Delivery on a Live Map" SENTON "24-Dec-2020")
2020-12-24 00:01:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for (['Tracking Number']) in (0) emails
2020-12-24 00:01:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['Tracking Number']) count results: 0
2020-12-24 00:01:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (UPS Update: Follow Your Delivery on a Live Map) results: b'' count: 0
2020-12-24 00:01:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]', '[email protected]']) with subject (Your package has been delivered)
2020-12-24 00:01:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SUBJECT "Your package has been delivered" SENTON "24-Dec-2020")
2020-12-24 00:01:48 ERROR (MainThread) [custom_components.mail_and_packages] Timeout fetching Mail and Packages (mail.office365.com) data
2020-12-24 00:01:48 DEBUG (MainThread) [custom_components.mail_and_packages] Finished fetching Mail and Packages (mail.office365.com) data in 30.001 seconds
2020-12-24 00:01:49 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]', '[email protected]']) with subject 1 (Your package has been delivered) results: b'' count: 0
2020-12-24 00:01:49 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]', '[email protected]']) with subject (Delivery scheduled for today)
2020-12-24 00:01:49 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SUBJECT "Delivery scheduled for today" SENTON "24-Dec-2020")
2020-12-24 00:01:53 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]', '[email protected]']) with subject 1 (Delivery scheduled for today) results: b'' count: 0
2020-12-24 00:01:53 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]', '[email protected]']) with subject (Your package is scheduled for delivery today)
2020-12-24 00:01:53 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SUBJECT "Your package is scheduled for delivery today" SENTON "24-Dec-2020")
2020-12-24 00:01:57 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]', '[email protected]']) with subject 1 (Your package is scheduled for delivery today) results: b'' count: 0
2020-12-24 00:01:57 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find Amazon email with item list ...
2020-12-24 00:01:57 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:01:57 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:01 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:01 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:01 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:05 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:05 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:05 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:09 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:09 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:09 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:13 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:13 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:13 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:17 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:17 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:17 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon Count: 0
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find Amazon email with item list ...
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "21-Dec-2020")
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon order: []
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon delivered email(s)...
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:20 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "24-Dec-2020")
2020-12-24 00:02:23 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:23 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:23 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 1
2020-12-24 00:02:24 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Email Multipart: True
2020-12-24 00:02:24 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Content Type: multipart/alternative
2020-12-24 00:02:24 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Processing HTML email...
2020-12-24 00:02:24 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon img URL: https://us-prod-temp.s3.amazonaws.com/imageId-78bb4963-90e2-9e19-3e48-80183200bfe1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20201224T032802Z&X-Amz-SignedHeaders=host&X-Amz-Expires=592317&X-Amz-Credential=AKIAUYTL4NQGQHJ6LGJ2%2F20201224%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=876b47030e3e9239b99aa1c4e2d2d5374566b9e140fc18694b7bd04da6291f0d
2020-12-24 00:02:24 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:24 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "24-Dec-2020")
2020-12-24 00:02:24 DEBUG (MainThread) [custom_components.mail_and_packages.helpers] URL content-type: image/jpeg
2020-12-24 00:02:24 DEBUG (MainThread) [custom_components.mail_and_packages.helpers] Downloading image to: /config/images/mail_and_packages/amazon_delivered.jpg
2020-12-24 00:02:24 DEBUG (MainThread) [custom_components.mail_and_packages.helpers] Amazon image downloaded
2020-12-24 00:02:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:27 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "24-Dec-2020")
2020-12-24 00:02:30 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:30 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:30 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:30 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:30 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "24-Dec-2020")
2020-12-24 00:02:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:33 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "24-Dec-2020")
2020-12-24 00:02:36 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:36 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:36 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:36 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:36 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "24-Dec-2020")
2020-12-24 00:02:39 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:39 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:39 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:39 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:39 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "24-Dec-2020")
2020-12-24 00:02:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:42 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "24-Dec-2020")
2020-12-24 00:02:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:45 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "24-Dec-2020")
2020-12-24 00:02:48 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:48 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:48 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:48 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:48 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "24-Dec-2020")
2020-12-24 00:02:51 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:51 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:51 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:51 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:51 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Delivered: Your" SENTON "24-Dec-2020")
2020-12-24 00:02:54 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:54 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:54 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0
2020-12-24 00:02:54 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon email search address: [email protected]
2020-12-24 00:02:54 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Consegna effettuata:" SENTON "24-Dec-2020")
2020-12-24 00:02:57 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Amazon delivered email(s) found: 1
2020-12-24 00:02:57 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Searching for Amazon image in emails...
2020-12-24 00:02:57 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] HTML Amazon emails found: 0

The email itself:
image

Neither Amazon package was ever being marked as “delivering” though. The part I still don’t understand is that the plugin seems to only be looking for “[email protected]” from 3 days ago. Here’s a perfect example. These logs are from TODAY the 26th. Look at the emails it’s finding.

2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "23-Dec-2020")
2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 2
2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Email Multipart: True
2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Content Type: multipart/alternative
2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon Subject: Your Amazon.com order #114-9618054-2533015 has shipped
2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Email Multipart: True
2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Content Type: multipart/alternative
2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon Subject: Your Amazon.com order #114-2896077-3410654 has shipped
2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "23-Dec-2020")
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "23-Dec-2020")
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "23-Dec-2020")
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "23-Dec-2020")
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon email search address: ['[email protected]', '[email protected]']
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM "[email protected]" FROM "[email protected]" SENTON "23-Dec-2020")
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon emails found: 0
2020-12-26 11:37:02 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] Amazon order: ['114-9618054-2533015', '114-2896077-3410654']

Both of those packages have been shipped AND delivered either 2 or 3 days ago. The two order numbers it found both came into my email on the 23rd. I think there’s an issue with the SENTON for “shipment-tracking” as it only checks 3 days ago and not “the last 3 days” . This doesn’t appear to be an issue for the delivery confirmation scan as it checks the current day.

Today is the 26th… why is is looking for email from 3 days ago?

2020-12-26 11:37:01 DEBUG (SyncWorker_1) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (OR FROM “[email protected]” FROM “[email protected]SENTON "23-Dec-2020")

image

Alright I think I’ve found a solution, stand by for b18.

Awesome! Thanks!

I have one other issue that I just noticed on b17/18

These emails aren’t triggering in the scan


2020-12-26 20:47:02 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Attempting to find mail from (['[email protected]']) with subject (Item Delivered)
2020-12-26 20:47:02 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] DEBUG imap_search: (FROM "[email protected]" SUBJECT "Item Delivered" SENTON "26-Dec-2020")
2020-12-26 20:47:02 DEBUG (SyncWorker_3) [custom_components.mail_and_packages.helpers] Search for (['[email protected]']) with subject 1 (Item Delivered) results: b'' count: 0

Any idea what might be going on? They match the sent date, today. The subject appears to match but it says count 0.

That’s very odd. I’m not sure what’d cause that.

Could it be the comma?

I notice that “Expected Delivery on” worked and I show two packages delivering, but the string it’s trying to match is “Item Delivered” but the subject is “… Item Delivered, …”

Nah IMAP’s search works like an is in or *Item Delivered* search.
Anything before and after is allowed.