networkException / thundersort

Sort incoming mails based on recipient slug
https://addons.thunderbird.net/en-US/thunderbird/addon/thundersort/
BSD 2-Clause "Simplified" License
4 stars 2 forks source link

manually trigger filter #102

Open Nex4rius opened 6 months ago

Nex4rius commented 6 months ago

The filter trigger button (from the dropdown) does not work with the addon.

I just installed it and I have several thousand email in the folder and it would be really good to filter them with the rules. :) It only filters newly received emails.

networkException commented 6 months ago

Interesting, can you try using the right click context menu on the folder?

Nex4rius commented 6 months ago

The rightclick context menu works kinda ....

I click it and after 5sec it sorts like 20 emails then it stops (even with waiting like 5min).

Edit: I clicked it some more and it seems to do less and less emails with each time until now nothing happens. I restarted thunderbird and tried again but that doesn't seem to affect it.

Version: 115.9.0 (32-Bit)

networkException commented 6 months ago

oh thats weird

so that the sort just stops after some messages is known, feels a lot like thunderbird killing the function (its just a loop, nothing much to interrupt)

Can you send the logs for when it can't sort any more messages? Addons Manager > Gear Icon on the right > Debug Add-ons > Inspect on thundersort

Also regarding the main topic of this issue: I sadly cant test this right now as the Extra menu is not present in my configuration (I think I'm using some compact / old UI setting) but I will look at it later. Just for now it failing to sort some messages through a known working context menu option seems like a more relevant issue

Nex4rius commented 6 months ago

The same 100 messages appear each time I start the sorting.

My rule is literally this simple:

networkException commented 6 months ago

Ok so the addon can't find your actual address that received the email, as such it can't match?

Can you check the headers of one of those emails and tell me which include your actual address? I already try to extract as many addresses as I can, but I guess that fails here

Nex4rius commented 6 months ago

I think the real problem is that it only checks the first 100 emails and then stops ??? It should just skip them if it can't find the email / rule for it.

All those emails from youtube have the email field "to" with googles email address filled but the actual email address that is receiving it is in "envelope-to".

From - Tue Nov 28 18:23:03 2023
X-Account-Key: account25
X-UIDL: 1MFd72-1kjubH1hde-00HANi
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Return-Path: <3_5_7XwcLADQdehUfbooekjkRU.Sec@youtube-subscriptions.bounces.google.com>
Received: from mail-il1-f197.google.com ([209.85.166.197]) by
 mx.kundenserver.de (mxeue111 [217.72.192.67]) with ESMTPS (Nemesis) id
 1M8iZD-1ku6fB3COf-004oyN for <youtube@example.org>; Mon, 11 Jan 2021
 01:46:57 +0100
Received: by mail-il1-f197.google.com with SMTP id x10so15808737ilq.12
        for <youtube@example.org>; Sun, 10 Jan 2021 16:46:56 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:dkim-signature:mime-version:date
         :list-unsubscribe:message-id:subject:from:to;
        bh=pR6OR90FEWK5z+0+84XltFfUT/1i5JLZjRHlJWmFCXM=;
        b=kPaw/jeN8L6RHTGing33UOVwLhBumiT+6hfgRKASs1aB5fYwLGkGClGRQG2gCulm4s
         cTUs2VTW8q7DvLEb318Yi9K/U+vxdQaeMtzEAHakm6vi2TpKmIzDrhpGcKNmipUYN0yV
         aS6JeRJ3yoTkaAViV0wJ6ou+BsfOLo9C8eYrja4Jp0KshYkOmoAhcSpvMHn3bdCSBTJZ
         W35/0T9kBF8baQ02bsCPXnzo/nBvmEDBqeuo9eaoVeD/9cnFtr22O0n4JKCHfLl3H2y/
         q6cxmaEECMQst0FRYur6uQB+FaNklzmubm7Ug5u++3vwJx822lG75p+dwS5igE3Owpfj
         wdUw==
X-Gm-Message-State: AOAM5308lw/s+Goep9PRnabGxKqbcpeskjstoIPZO5eHRBag7djGwpNh
    +sTSnPI3+vX/8C4w36mkMmQE
X-Received: by 2002:a5d:8483:: with SMTP id t3mr13192540iom.35.1610326015479;
        Sun, 10 Jan 2021 16:46:55 -0800 (PST)
X-Google-Smtp-Source: ABdhPJzrIzm1eGZc3YoRoHeSQcLmm9j40R6QPLI8bfti0j/hfGcA+fD46P94UxRBFBvhNRlG6PAB
X-Received: by 2002:a02:ac18:: with SMTP id a24mr12116782jao.24.1610326015323;
        Sun, 10 Jan 2021 16:46:55 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1610326015; cv=none;
        d=google.com; s=arc-20160816;
        b=q483AOHMhDDrLBR9/BySb3kX/Gz+QMv2NNIlHv+svnO0yFpprNrOJQAmgqNct2Ouku
         ZFK0EnyaQzWCXlPBI4UidpAsMrR4fd9AtIFYwdFdnFPb4ef6B3kwT78QoSHq1JDtqi2n
         8ah/GmoLErdQI4MyZlKLXmmu1l/fkMjJZC6/cbaZ8V/CtE40PxNVEMzlQNwrcdYiw7np
         dj72lYlbWXpS0NBt6aPx2A4s5DlcDGLIP1xIMoGGl3oqq2wPH5IZ41hMKMsZyWX8e31W
         zCkeLO0vz7uSBPxtM8z7+SOkM6xCW/vkyS0wzx+HJmGzF3KpTHJq2tTq96Zz3x3ElqbR
         5dvQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:from:subject:message-id:list-unsubscribe:date:mime-version
         :dkim-signature;
        bh=pR6OR90FEWK5z+0+84XltFfUT/1i5JLZjRHlJWmFCXM=;
        b=GhAgcsyNPGCCtViB+l//5gB+H9r7Nn0ONP3COvK0ooSTW6v01agDzIYYCww4faD1Kw
         +pl51pCiM9X3s8OidJGFgQ8d7fAnYezN0NRIj+OZPu+xGyy23aehsEg7BLcXIYqCFR6A
         1IlEsEbcsQGrFtMiwawEokGl1M8xclleTcuw3cYYAnzoFhhFLyAXaiLe9e2mtKmyjWSJ
         hByVMKvIZm6t9G1DcuZHiDY8Ac0Djp7Hpu9F7ldTSyQ7eJKNw4+8p6YcUnID2UgAHpTQ
         HZFg8uJZcEdsiComdYxIDH0NT43JIUEOAa4J6YC4qGDl26f9aUbbLgPuOeOENWPdzNT9
         J16A==
ARC-Authentication-Results: i=1; gmr-mx.google.com;
       dkim=pass header.i=@youtube.com header.s=20161025 header.b=nz5t5Wai;
       spf=pass (google.com: domain of 3_5_7xwcladqdehufbooekjkru.sec@youtube-subscriptions.bounces.google.com designates 2607:f8b0:4864:20::547 as permitted sender) smtp.mailfrom=3_5_7XwcLADQdehUfbooekjkRU.Sec@youtube-subscriptions.bounces.google.com;
       dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=youtube.com
Received: from mail-pg1-x547.google.com (mail-pg1-x547.google.com. [2607:f8b0:4864:20::547])
        by gmr-mx.google.com with ESMTPS id c14si86069ilk.5.2021.01.10.16.46.55
        for <foo-bar-foobar-123@pages.plusgoogle.com>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sun, 10 Jan 2021 16:46:55 -0800 (PST)
Received-SPF: pass (google.com: domain of 3_5_7xwcladqdehufbooekjkru.sec@youtube-subscriptions.bounces.google.com designates 2607:f8b0:4864:20::547 as permitted sender) client-ip=2607:f8b0:4864:20::547;
Received: by mail-pg1-x547.google.com with SMTP id 26so11401902pgl.2
        for <foo-bar-foobar-123@pages.plusgoogle.com>; Sun, 10 Jan 2021 16:46:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=youtube.com; s=20161025;
        h=mime-version:date:list-unsubscribe:message-id:subject:from:to;
        bh=pR6OR90FEWK5z+0+84XltFfUT/1i5JLZjRHlJWmFCXM=;
        b=nz5t5Wai01qhF1jiF1T7WEthn1TZR8Yc0fRuRV5e1heWf8VLZ1yK2/2vfE02FCj2aF
         luqr+VCP3sKrmt56vV1PXn2MXs1zgxPuUQT7DY8i1t/iL9l4BmbmMZ54O6q/zk8Pjygx
         8yFhKXxfTpqo90143p3yjoB5KU8wPDrH0d5Q46y8IdrZzLSkLq/v18bPRi/oM1KUU93w
         1SMin6Fl5JDaRUuGg/GfXGRTFUIyGI9yZeQlv/KV7DRo7iOdrKKVdzOO+UKYJSIjIFfr
         PE1DjPVH1U97nx6ZUk+wiPaM6l6dRTOABK48M0wEE8+jefHHNcG8JyfQCwR7N9TB+vE0
         ZnVw==
MIME-Version: 1.0
X-Received: by 2002:a62:97:0:b029:1ab:93bf:43a1 with SMTP id
 145-20020a6200970000b02901ab93bf43a1mr17120549pfa.75.1610326015096; Sun, 10
 Jan 2021 16:46:55 -0800 (PST)
Date: Sun, 10 Jan 2021 16:46:55 -0800
X-No-Auto-Attachment: 1
Message-ID: <0000000000001a373405b8953e65@google.com>
Subject: lol empty
From: YouTube <noreply@youtube.com>
To: Foo Bar Foobar 123 <foo-bar-foobar-123@pages.plusgoogle.com>
Content-Type: multipart/alternative; boundary="0000000000001a371205b8953e62"
Envelope-To: <youtube@example.org>
X-Spam-Flag: NO
X-UI-Filterresults: notjunk:1;V03:K0:320LipixGsA=:nxZsHmRNyYWQvnG/yRIHgB3TcT
 11+4h7DDJOqXIQ7j5UuMqTHFEeKzvMjfDm4a/+pHTz/Ifq1JZoSj2A5sBR58uLc8Yukk2oRj9
 azCVrX4WlXbmHsULrgoIj8eECRsC6vqqGdetH7qs1+zvroBIm7cy8mhSsDHl1avVcI/sHllkR
 iXqz+MixTudLEK1HSOsoFsN8RSm8kjuTs2UHY6o1NekE+CpAvrm/hL5+Pjf0EUiMvStJHWDq9
 LOAQJl5LVP/Wm1cCkRj+rT18i/G8tdw7bAagRdupPK1smXC7JcvePD4VNCZRt2XDvyt3V85ma
 LiK92+kYsEDY3Fkrv+OSUAVcQmjwAdJ/4MvC5jk5anLu+Iv2OTRu7FlQ5qYPCliW+KrxT9cMv
 nylyXNiWGMvb6M3QFnkVykP76Ml71z9p2a6CCcxsFKwAdO+f/rFS4vXKsXbnYoUwuovRvcQew
 XGDA3SbxWsqH7vHtbvO4BDBmqImBrsAxaH5/yhDhOVWiIdVuElt/+Pznr+VB7J9TDiB4XENmW
 RxauXR0KTAHCdWfNuC1q1gHazzvOkgbQkTMamW7Lk0s63XYvJ9KiuWKUbqAkBTBxJQOp44eDl
 KpzyPD40iOtxyQjAdwhm3FDW/krVCaYb/tddCwoNYccCOVBC4/djz121LUSUJpW3vpfkp2nEF
 ETHgblev/Lg32NuFfW5aHATGul4CY2enUh0YU/0naVxjuKDeHVsJXkyqqQbhJ0JYTU8DrgbqE
 iXOE4EVd7vUMkeXm5p+llHjEZn9LGJzoJPJywAO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
 1UAyb1FJEAo/30IU/Izo7+t8RuOn4OUmShvvbhLRSbH3C8SoOxQloGUw7sC/sKrH8IDaHbDdw
 B0ipuqur1NJFKilR2O5fRoFyuys1uUScqbtXijkr4BsXpUGxwBBvk4A5P1qbbjY+3tNdq5vZ0
 5eskEDAag2izKYdAVzeWSJJDqU364hvmULPF+XXhNpu6dP/aV1A

--0000000000001a371205b8953e62
networkException commented 6 months ago

I think the real problem is that it only checks the first 100 emails and then stops ???

Yea that was me just not implementing paging, should work in the next release

I also added recipient extraction from envelope-to, so sorting these messages should work as well now

You can either try to build the bundle yourself or wait for the addon store to approve the new version

Nex4rius commented 6 months ago

I can confirm it works now and it sorted all 7000 emails.

I have another catch all emails with 1500 emails and there it gets this error: password: 2PMxzLfQYP https://pastebin.com/Z10Z4Lyx (1 week until delete)