projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4306e72
)
Changed save_to_drafts to saving_to_drafts for clarity
author
Art Cancro
<ajc@uncensored.citadel.org>
Thu, 25 Aug 2011 19:33:48 +0000
(15:33 -0400)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Thu, 25 Aug 2011 19:33:48 +0000
(15:33 -0400)
webcit/messages.c
patch
|
blob
|
history
diff --git
a/webcit/messages.c
b/webcit/messages.c
index feaf5db329371b53bafbd3c06bcc0b3c70de94e8..acb2afee2669d971775b3d4db86473853d4857a9 100644
(file)
--- a/
webcit/messages.c
+++ b/
webcit/messages.c
@@
-1007,13
+1007,13
@@
void post_message(void)
const StrBuf *my_email_addr = NULL;
StrBuf *CmdBuf = NULL;
StrBuf *references = NULL;
const StrBuf *my_email_addr = NULL;
StrBuf *CmdBuf = NULL;
StrBuf *references = NULL;
- int sav
e
_to_drafts;
+ int sav
ing
_to_drafts;
long HeaderLen;
long HeaderLen;
- sav
e
_to_drafts = !strcasecmp(bstr("submit_action"), "drafts");
+ sav
ing
_to_drafts = !strcasecmp(bstr("submit_action"), "drafts");
Buf = NewStrBuf();
Buf = NewStrBuf();
- if (sav
e
_to_drafts) {
+ if (sav
ing
_to_drafts) {
/* temporarily change to the drafts room */
serv_puts("GOTO _DRAFTS_");
StrBuf_ServGetln(Buf);
/* temporarily change to the drafts room */
serv_puts("GOTO _DRAFTS_");
StrBuf_ServGetln(Buf);
@@
-1071,12
+1071,12
@@
void post_message(void)
CmdBuf = NewStrBufPlain(NULL, sizeof (CMD) + HeaderLen);
StrBufPrintf(CmdBuf,
CMD,
CmdBuf = NewStrBufPlain(NULL, sizeof (CMD) + HeaderLen);
StrBufPrintf(CmdBuf,
CMD,
- sav
e
_to_drafts?"":ChrPtr(Recp),
+ sav
ing
_to_drafts?"":ChrPtr(Recp),
is_anonymous,
ChrPtr(encoded_subject),
ChrPtr(display_name),
is_anonymous,
ChrPtr(encoded_subject),
ChrPtr(display_name),
- sav
e
_to_drafts?"":ChrPtr(Cc),
- sav
e
_to_drafts?"":ChrPtr(Bcc),
+ sav
ing
_to_drafts?"":ChrPtr(Cc),
+ sav
ing
_to_drafts?"":ChrPtr(Bcc),
ChrPtr(Wikipage),
ChrPtr(my_email_addr),
ChrPtr(references));
ChrPtr(Wikipage),
ChrPtr(my_email_addr),
ChrPtr(references));
@@
-1097,7
+1097,7
@@
void post_message(void)
StrBuf_ServGetln(Buf);
if (GetServerStatus(Buf, NULL) == 4) {
StrBuf_ServGetln(Buf);
if (GetServerStatus(Buf, NULL) == 4) {
- if (sav
e
_to_drafts) {
+ if (sav
ing
_to_drafts) {
if ( (havebstr("recp"))
|| (havebstr("cc" ))
|| (havebstr("bcc" )) ) {
if ( (havebstr("recp"))
|| (havebstr("cc" ))
|| (havebstr("bcc" )) ) {
@@
-1110,7
+1110,7
@@
void post_message(void)
}
}
post_mime_to_server();
}
}
post_mime_to_server();
- if (sav
e
_to_drafts) {
+ if (sav
ing
_to_drafts) {
AppendImportantMessage(_("Message has been saved to Drafts.\n"), -1);
gotoroom(WCC->CurRoom.name);
display_enter();
AppendImportantMessage(_("Message has been saved to Drafts.\n"), -1);
gotoroom(WCC->CurRoom.name);
display_enter();
@@
-1127,11
+1127,12
@@
void post_message(void)
}
dont_post = lbstr("postseq");
} else {
}
dont_post = lbstr("postseq");
} else {
- /* FIXME
this does not work! It just displays an empty screen
*/
- syslog(9, "
%s:%d: server post error: %s\n
", __FILE__, __LINE__, ChrPtr(Buf) + 4);
+ /* FIXME */
+ syslog(9, "
\033[31m%s:%d: server post error: %s\033[0m
", __FILE__, __LINE__, ChrPtr(Buf) + 4);
AppendImportantMessage(ChrPtr(Buf) + 4, StrLength(Buf) - 4);
AppendImportantMessage(ChrPtr(Buf) + 4, StrLength(Buf) - 4);
- if (save_to_drafts) gotoroom(WCC->CurRoom.name);
display_enter();
display_enter();
+ if (saving_to_drafts) gotoroom(WCC->CurRoom.name);
+ FreeStrBuf(&Recp);
FreeStrBuf(&Buf);
FreeStrBuf(&Cc);
FreeStrBuf(&Bcc);
FreeStrBuf(&Buf);
FreeStrBuf(&Cc);
FreeStrBuf(&Bcc);