{"record":{"id":"1c55f40e7cffc667","repo":"theonedev/onedev","slug":"this-address-is-intended-to-open-issues-however-t","errorCode":null,"errorMessage":"This address is intended to open issues, however the message looks like a reply to some other email","messagePattern":"This address is intended to open issues, however the message looks like a reply to some other email","errorType":"exception","errorClass":"ExplicitException","httpStatus":null,"severity":"error","filePath":"server-core/src/main/java/io/onedev/server/mail/DefaultMailService.java","lineNumber":760,"sourceCode":"\t\tString messageId = getMessageId(message);\n\t\tif (messageId != null) {\n\t\t\tvar existingIssue = issueService.findByMessageId(messageId);\n\t\t\tif (existingIssue != null) {\n\t\t\t\tlogger.warn(\"Ignored opening issue from message as issue with same message id already exists: {}\", \n\t\t\t\t\t\texistingIssue.getReference());\n\t\t\t\treturn existingIssue;\n\t\t\t}\n\t\t}\n\n\t\tIssue issue = new Issue();\n\t\tissue.setProject(project);\n\n\t\ttry {\n\t\t\tvar subject = message.getSubject();\n\t\t\tif (StringUtils.isBlank(subject)) {\n\t\t\t\tthrow new ExplicitException(\"Subject required to open issue via email\");\n\t\t\t} else if (subject.trim().toLowerCase().startsWith(\"re:\")) {\n\t\t\t\tthrow new ExplicitException(\"This address is intended to open issues, \" +\n\t\t\t\t\t\t\"however the message looks like a reply to some other email\");\n\t\t\t}\n\t\t\tissue.setTitle(subject);\n\t\t} catch (MessagingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\t\n\t\tif (messageId != null)\n\t\t\tissue.setMessageId(messageId);\n\n\t\tString description = parseBody(message, project, issue.getUUID());\n\t\tif (StringUtils.isNotBlank(description)) \n\t\t\tdescription = stripSignature(description);\n\t\tif (StringUtils.isNotBlank(description))\n\t\t\tissue.setDescription(decorateContent(description));\n\t\t\n\t\tif (submitter == null) {\n\t\t\tissue.setSubmitter(userService.getSystem());","sourceCodeStart":742,"sourceCodeEnd":778,"githubUrl":"https://github.com/theonedev/onedev/blob/d44925c47c37992c828ea673a5f9620539bc3ff2/server-core/src/main/java/io/onedev/server/mail/DefaultMailService.java#L742-L778","documentation":"The issue-creation email address is only for opening new issues. If the subject starts with 're:' (case-insensitive), the message is treated as a reply, which cannot create an issue, so OneDev rejects it with this ExplicitException.","triggerScenarios":"Replying (or a mail client threading a reply) to a notification using the project's issue-creation email address; subject begins with 're:', 'RE:', etc.","commonSituations":"User hits Reply instead of Reply-All/Compose-new on a notification that shows the issue address in Cc; mail client auto-addresses the reply to the issue-creation address; templates that always include the issues address.","solutions":["Compose a new email to the issue address instead of replying to an existing thread","Reply to issue notification emails using the issue's own reply address, not the issue-creation address","Strip the 're:' prefix if the intent truly is a new issue (not recommended; retitled anyway)","Configure mail clients/templates so replies go to notification addresses only"],"exampleFix":"// before\nTo: project-issues@onedev.example\nSubject: Re: Fix login timeout\n// after\nTo: project-issues@onedev.example\nSubject: Fix login timeout   (fresh mail, not a reply)","handlingStrategy":"validation","validationCode":"String subj = message.getSubject(); if (subj != null && subj.trim().toLowerCase().startsWith(\"re:\")) { /* do not send to issues address */ }","typeGuard":null,"tryCatchPattern":"try { openIssueViaEmail(msg); } catch (ExplicitException e) { redirectReplyToIssueAddress(e); }","preventionTips":["Compose new mail rather than replying when creating issues","Reply to notifications using their issue address, not the issues address","Remove the issues address from notification reply-to headers"],"tags":["email","issues","validation"],"backgroundTag":"invalid-argument-value","analyzedSha":"d44925c47c37992c828ea673a5f9620539bc3ff2","analyzedAt":"2026-09-06T07:18:27.995Z","contentChangedAt":"2026-09-06T07:18:27.995Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}