Commit 2ad7131
Fix In-Reply-To multi-ID parsing, duplicate labels, and resume message
deriveThreadKey: parse In-Reply-To as a msg-id list per RFC 2822
instead of trimming the whole header string. Multi-ID headers like
"<a@x> <b@x>" now correctly extract the first ID instead of
producing malformed keys like "a@x> <b@x".
Label merge: exclude the current mailbox when appending from
msgIDToLabels to avoid duplicate label IDs that violate the
message_labels primary key constraint. Trash/Spam-only messages
on Gmail would fail ingest because the mailbox appeared twice.
Resume message: tell IMAP users that the next run restarts from
the beginning (skipping already-imported messages) instead of the
misleading "Run again to resume."
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 36ad57a commit 2ad7131
File tree
4 files changed
+41
-13
lines changed- cmd/msgvault/cmd
- internal
- imap
- sync
4 files changed
+41
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
282 | 286 | | |
283 | 287 | | |
284 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
781 | 783 | | |
782 | 784 | | |
783 | 785 | | |
784 | 786 | | |
785 | | - | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
786 | 792 | | |
787 | 793 | | |
788 | 794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
724 | 723 | | |
725 | 724 | | |
726 | 725 | | |
727 | 726 | | |
728 | 727 | | |
729 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
730 | 731 | | |
731 | 732 | | |
732 | | - | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
733 | 736 | | |
734 | 737 | | |
735 | 738 | | |
736 | 739 | | |
737 | | - | |
738 | | - | |
739 | | - | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
740 | 753 | | |
741 | 754 | | |
742 | 755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1576 | 1576 | | |
1577 | 1577 | | |
1578 | 1578 | | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
1579 | 1584 | | |
1580 | 1585 | | |
1581 | 1586 | | |
| |||
0 commit comments