|
797 | 797 | :email/body-text "Notify: d:1\n"} |
798 | 798 |
|
799 | 799 | ;; ========================================================================= |
800 | | - ;; 59 — Case insensitive tag: [bug] lowercase |
| 800 | + ;; 59 — Properly tagged [BUG] (anchors a thread for 61/62/64) |
801 | 801 | ;; ========================================================================= |
802 | 802 | { |
803 | 803 | :email/id "59" |
804 | 804 | :email/source "direct" |
805 | 805 | :email/message-id "<59@test.org>" |
806 | | - :email/subject "[bug] lowercase tag test" |
| 806 | + :email/subject "[BUG] strict tag test" |
807 | 807 | :email/from-address "user@test.org" |
808 | 808 | :email/date-sent #inst "2026-01-21T10:00:00" |
809 | 809 | :email/ingested-at #inst "2026-01-21T10:00:00" |
810 | | - :email/body-text "Lowercase tag.\n"} |
| 810 | + :email/body-text "Strict tag.\n"} |
811 | 811 |
|
812 | 812 | ;; ========================================================================= |
813 | 813 | ;; 60 — [ANNOUNCEMENT] long form tag |
|
829 | 829 | :email/id "61" |
830 | 830 | :email/source "direct" |
831 | 831 | :email/message-id "<61@test.org>" |
832 | | - :email/subject "Re: [bug] lowercase tag test" |
| 832 | + :email/subject "Re: [BUG] strict tag test" |
833 | 833 | :email/from-address "maint@test.org" |
834 | 834 | :email/date-sent #inst "2026-01-21T12:00:00" |
835 | 835 | :email/ingested-at #inst "2026-01-21T12:00:00" |
|
843 | 843 | :email/id "62" |
844 | 844 | :email/source "direct" |
845 | 845 | :email/message-id "<62@test.org>" |
846 | | - :email/subject "Re: Re: [bug] lowercase tag test" |
| 846 | + :email/subject "Re: Re: [BUG] strict tag test" |
847 | 847 | :email/from-address "maint@test.org" |
848 | 848 | :email/date-sent #inst "2026-01-21T13:00:00" |
849 | 849 | :email/ingested-at #inst "2026-01-21T13:00:00" |
|
866 | 866 |
|
867 | 867 | ;; ========================================================================= |
868 | 868 | ;; 64 — Duplicate report attempt (same subject tag, same thread) |
869 | | - ;; Tests that a second [bug] email in the same thread doesn't create |
| 869 | + ;; Tests that a second [BUG] email in the same thread doesn't create |
870 | 870 | ;; a second report — it becomes a descendant instead. |
871 | 871 | ;; Uses its own message-id (unlike email 59) to avoid DB-level upsert. |
872 | 872 | ;; ========================================================================= |
873 | 873 | { |
874 | 874 | :email/id "64" |
875 | 875 | :email/source "direct" |
876 | 876 | :email/message-id "<64@test.org>" |
877 | | - :email/subject "[bug] lowercase tag test" |
| 877 | + :email/subject "[BUG] strict tag test" |
878 | 878 | :email/from-address "user@test.org" |
879 | 879 | :email/date-sent #inst "2026-01-21T15:00:00" |
880 | 880 | :email/ingested-at #inst "2026-01-21T15:00:00" |
|
1838 | 1838 | :email/in-reply-to "<136@test.org>" |
1839 | 1839 | :email/references "<136@test.org>" |
1840 | 1840 | :email/body-text "Actually the other one was the better description.\nSuperseded-by: <135@test.org>\n"} |
| 1841 | + |
| 1842 | + ;; ========================================================================= |
| 1843 | + ;; 201 — Malformed label (lowercase): label must be case-sensitive |
| 1844 | + ;; Expected: no report created (regex rejects [bug]) |
| 1845 | + ;; ========================================================================= |
| 1846 | + {:email/id "201" |
| 1847 | + :email/source "direct" |
| 1848 | + :email/message-id "<201@test.org>" |
| 1849 | + :email/subject "[bug] should not match" |
| 1850 | + :email/from-address "user-a@test.org" |
| 1851 | + :email/date-sent #inst "2026-03-09T09:00:00" |
| 1852 | + :email/ingested-at #inst "2026-03-09T09:00:00" |
| 1853 | + :email/body-text "Lowercase tag, must not classify.\n"} |
| 1854 | + |
| 1855 | + ;; ========================================================================= |
| 1856 | + ;; 202 — Malformed label (no space after `]`): must be rejected |
| 1857 | + ;; Expected: no report created (regex requires \s|$ after closing bracket) |
| 1858 | + ;; ========================================================================= |
| 1859 | + {:email/id "202" |
| 1860 | + :email/source "direct" |
| 1861 | + :email/message-id "<202@test.org>" |
| 1862 | + :email/subject "[BUG]glued subject" |
| 1863 | + :email/from-address "user-a@test.org" |
| 1864 | + :email/date-sent #inst "2026-03-09T09:01:00" |
| 1865 | + :email/ingested-at #inst "2026-03-09T09:01:00" |
| 1866 | + :email/body-text "Glued label, must not classify.\n"} |
1841 | 1867 | ] |
0 commit comments