mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Check content on send
This commit is contained in:
@@ -318,6 +318,9 @@ public class ServiceSend extends ServiceBase {
|
||||
if (ident == null)
|
||||
throw new IllegalArgumentException("Identity not found");
|
||||
|
||||
if (!message.content)
|
||||
throw new IllegalArgumentException("Message body missing");
|
||||
|
||||
// Create message
|
||||
Properties props = MessageHelper.getSessionProperties();
|
||||
Session isession = Session.getInstance(props, null);
|
||||
|
||||
Reference in New Issue
Block a user