Allow save-to-drafts without recipients
authorsamjam <samjam@uncensored.citadel.org>
Mon, 6 Sep 2010 12:06:28 +0000 (08:06 -0400)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 7 Sep 2010 20:59:10 +0000 (22:59 +0200)
This is a multipart message in MIME format.

Allow save-to-drafts without recipients
>

  ---
 citadel/msgbase.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

Still need to read X-Citadel-Room when resuming from drafts
<html><body>

<p><span class="message_subject"> Allow save-to-drafts without recipients</span></p>
<blockquote></blockquote>
<div class="message_content"><tt>---</tt><br /> <tt>citadel/msgbase.c |    9 +++++----</tt><br /> <tt>1 files changed, 5 insertions(+), 4 deletions(-)</tt><br /> <br /></div>
<p>Still need to read X-Citadel-Room when resuming from drafts</p>
</body></html>

citadel/msgbase.c

index cd4fd5e41dd240b25a8f8bc2019f7b68e9b8d654..d7f832a7b9aaf91b116cd8c3b8aad1c292a9e862 100644 (file)
@@ -4033,12 +4033,13 @@ void cmd_ent0(char *entargs)
        /* In mailbox rooms we have to behave a little differently --
         * make sure the user has specified at least one recipient.  Then
         * validate the recipient(s).  We do this for the Mail> room, as
-        * well as any room which has the "Mailbox" view set.
+        * well as any room which has the "Mailbox" view set - unless it
+        * is the DRAFTS room which does not require recipients
         */
 
-       if (  ( (CC->room.QRflags & QR_MAILBOX) && (!strcasecmp(&CC->room.QRname[11], MAILROOM)) )
-          || ( (CC->room.QRflags & QR_MAILBOX) && (CC->curr_view == VIEW_MAILBOX) )
-       ) {
+       if (  ( (CC->room.QRflags & QR_MAILBOX) && (!strcasecmp(&CC->room.QRname[11], MAILROOM)) )
+            || ( (CC->room.QRflags & QR_MAILBOX) && (CC->curr_view == VIEW_MAILBOX) )
+       ) && (strcasecmp(&CC->room.QRname[11], USERDRAFTROOM)) !=0 ) {
                if (CC->user.axlevel < AxProbU) {
                        strcpy(recp, "sysop");
                        strcpy(cc, "");