added messgage bundel not all at one, added sepearte memory at every filter
This commit is contained in:
@@ -146,6 +146,7 @@ class ProcessedMail(Base):
|
||||
|
||||
id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True)
|
||||
account_id: Mapped[int] = mapped_column(ForeignKey("accounts.id", ondelete="CASCADE"), index=True)
|
||||
rule_id: Mapped[int] = mapped_column(ForeignKey("filter_rules.id", ondelete="CASCADE"), index=True)
|
||||
folder: Mapped[str] = mapped_column(String(255))
|
||||
mail_uid: Mapped[str] = mapped_column(String(100))
|
||||
mail_subject: Mapped[str | None] = mapped_column(String(500), nullable=True)
|
||||
@@ -153,3 +154,4 @@ class ProcessedMail(Base):
|
||||
processed_at: Mapped[datetime] = mapped_column(DateTime, server_default=func.now())
|
||||
|
||||
account: Mapped["Account"] = relationship()
|
||||
rule: Mapped["FilterRule"] = relationship()
|
||||
|
||||
Reference in New Issue
Block a user