kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-08-03 02:12 am

[dw-free] Option to get notified by email when you send a message

[commit: http://hg.dwscoalition.org/dw-free/rev/fb2a27007801]

http://bugs.dwscoalition.org/show_bug.cgi?id=1518

Add option to CC self when composing a PM.

Patch by [staff profile] denise.

Files modified:
  • htdocs/inbox/compose.bml
  • htdocs/inbox/compose.bml.text
--------------------------------------------------------------------------------
diff -r 7e8ec1a20219 -r fb2a27007801 htdocs/inbox/compose.bml
--- a/htdocs/inbox/compose.bml	Sun Aug 02 20:29:05 2009 -0500
+++ b/htdocs/inbox/compose.bml	Sun Aug 02 21:12:23 2009 -0500
@@ -66,6 +66,7 @@ body<=
             # Get recipient list without duplicates
             my %to_hash = map { lc($_), 1 } split(",", $to_field);
             my @to_list = keys %to_hash;
+            push @to_list, $remote->username if $POST{'cc_msg'};
             my @msg_list;
 
             # must be at least one username
@@ -232,7 +233,16 @@ body<=
     $body .= LJ::JSUtil::autocomplete(field => 'msg_to', list => \@flist);
 
     # The drop-down userpic menu
-    $body .= $picform . "</div>";
+    $body .= $picform;
+
+    # Are we sending a copy of the message to the user?
+    $body .= LJ::html_check( {
+        name     => 'cc_msg',
+        id       => 'cc_msg',
+        value    => 1,
+        selected => 0,
+    } );
+    $body .= " <label for='cc_msg' style='font-weight: normal; font-size: smaller; font-style:italic;'>" . BML::ml( '.form.label.cc' ) . "</label></div>";
 
     $body .= "<div class='inbox_formmes'><p><label class='subj-l'>Subject:</label> ";
     $body .= LJ::html_text({
diff -r 7e8ec1a20219 -r fb2a27007801 htdocs/inbox/compose.bml.text
--- a/htdocs/inbox/compose.bml.text	Sun Aug 02 20:29:05 2009 -0500
+++ b/htdocs/inbox/compose.bml.text	Sun Aug 02 21:12:23 2009 -0500
@@ -1,3 +1,5 @@
 ;; -*- coding: utf-8 -*-
 
-.suspended.cannot.send=Suspended accounts are not allowed to send private messages
\ No newline at end of file
+.form.label.cc=Send me a copy of my own message
+
+.suspended.cannot.send=Suspended accounts are not allowed to send private messages
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org