Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: Florianer on August 14, 2007, 03:43:40 AM

Title: SVN 675 - send empty mail message
Post by: Florianer on August 14, 2007, 03:43:40 AM
Hi,
this happened now once more, so I considered to write it down: I start composing a new HTML email. Filling in a receiver, a subject, switching to body text area, deleting the prefilled signature and writing a line of text. Now I click send and get the German warning for: "Are you sure to send an empty email?" - clicking on yes sends the mail and opening the mail in the sent folder there is a text body. So I guess, there is something wrong with the body text check.
Title: Re: SVN 675 - send empty mail message
Post by: 4alexi on August 31, 2007, 03:02:14 PM
Hi Florianer

Same happens here...

in program/js/app.js arount line 1700:

 // check for empty body
  if ((input_message.value == '' || (window.tinyMCE && tinyMCE.getContent() == '')) && !confirm(this.get_label('nobodywarning')))
   {
   input_message.focus();
   return false;
   }

should be && i think

 // check for empty body
  if ((input_message.value == '' && (window.tinyMCE && tinyMCE.getContent() == '')) && !confirm(this.get_label('nobodywarning')))
   {
   input_message.focus();
   return false;
   }



(first part is plain text email body, second part is html email body). Only one of them is filled at the same time.
Title: Re: SVN 675 - send empty mail message
Post by: CBoensch on August 31, 2007, 05:47:17 PM
Hi!

it does not fix the Problem (i`ve got the same Message)
If you switch between HTML and TEXT Mail (and back), the Message does not appear...