Opened 10 months ago
Closed 10 months ago
#1488610 closed Bugs (fixed)
Impossible to create message with empty plain text part
| Reported by: | alexandro | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.8.1 |
| Component: | Core functionality | Version: | 0.8.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I try to write a simple plugin, that allow to copy-past gpg-encrypted text and send it as PGP/Mime message.
PGP/Mime encrypted messages must not contain plain text part, but roundcube doesn't allow empty message body and "fix" body in program/steps/mail/sendmail.inc:
if (!strlen($message_body)) {
// empty message body breaks attachment handling in drafts
$message_body = "\r\n";
}
Change History (5)
comment:1 Changed 10 months ago by alec
- Milestone set to 0.9-beta
comment:2 Changed 10 months ago by alec
This is a fix for #1484506. We need to find another way.
comment:3 Changed 10 months ago by alec
I tested removal of this code and it works for me. However when body is empty then the message doesn't contain a text part at all. This is fine according to standard. Is this fine for your use-case too?
comment:4 Changed 10 months ago by alexandro
Yes, this is what i need, thank you!
rfc3156 require exactly two parts in email, no plain-text part allowed.
comment:5 Changed 10 months ago by alec
- Milestone changed from 0.9-beta to 0.8.1
- Resolution set to fixed
- Status changed from new to closed

I suppose we don't need this hack anymore. Need to investigate.