diff options
| author | Vosjedev <vosje@vosjedev.net> | 2026-01-21 18:13:22 +0100 |
|---|---|---|
| committer | Vosjedev <vosje@vosjedev.net> | 2026-01-21 18:13:22 +0100 |
| commit | 3534bdea6d04be1c045d3cb032e1b1c25e1cbc06 (patch) | |
| tree | 5eb73cb2cb505b2c217458821c4a4770d446b696 /src/acit/imapplugin.py | |
| parent | f1237a8a5b5db413988c38f1e3414495f42f52e1 (diff) | |
| download | acit-3534bdea6d04be1c045d3cb032e1b1c25e1cbc06.tar.gz acit-3534bdea6d04be1c045d3cb032e1b1c25e1cbc06.tar.bz2 acit-3534bdea6d04be1c045d3cb032e1b1c25e1cbc06.tar.xz | |
I don't remember and can't figure out from the diff what this is
Diffstat (limited to 'src/acit/imapplugin.py')
| -rw-r--r-- | src/acit/imapplugin.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/acit/imapplugin.py b/src/acit/imapplugin.py index a095178..5598fa8 100644 --- a/src/acit/imapplugin.py +++ b/src/acit/imapplugin.py @@ -149,6 +149,9 @@ class ImapPlugin(plugins.SimplePlugin): email=email.replace("None#","#") email=email.replace("#None",'') email=email.replace("+None",'') + if email.startswith("@"): + email=self.imap_user + if subject: email+='?subject=' email+=quote(subject, safe='') @@ -384,7 +387,7 @@ class ImapPlugin(plugins.SimplePlugin): self.move_errored_mail(mailbox,msg) else: # try again later, maybe we need to index first or handle some other email first - mailbox.flag([msg.uid],"RETRYING") + mailbox.flag([msg.uid],"RETRYING",value=True) self.mlog("Message-ID not in index, trying again next round") return # end block @@ -508,7 +511,7 @@ class ImapPlugin(plugins.SimplePlugin): body+="\n\nIf you think this is a bug, please report it (mail to acit@bugs.vosjedev.net).\n" body+="Make sure to attach both this email and the email that triggered this bug." - self.smtp.sendmail(replyto=msg,from_=from_,body=body) + self.smtp.sendmail(replyto=msg,from_=from_,body=body,save=False) def move_errored_mail(self,mailbox:MailBox,msg:MailMessage,): target=self.ensurefolder(mailbox,"INBOX","Errors") |
