serv_puts("subj|__ Push email settings __");
serv_puts("000");
while (!Done &&
- StrBuf_ServGetln(Buf)) {
+ StrBuf_ServGetln(Buf) >= 0) {
if ( (StrLength(Buf)==3) &&
!strcmp(ChrPtr(Buf), "000")) {
Done = 1;
int i =0;
Done = 0;
while (!Done &&
- StrBuf_ServGetln(Buf)) {
+ StrBuf_ServGetln(Buf) >= 0) {
if (( (StrLength(Buf)==3) &&
!strcmp(ChrPtr(Buf), "000"))||
((StrLength(Buf)==4) &&
if (!strcmp(ChrPtr(Buf), "text")) {
Done = 0;
while (!Done &&
- StrBuf_ServGetln(Buf)) {
+ StrBuf_ServGetln(Buf) >= 0) {
if ( (StrLength(Buf)==3) &&
!strcmp(ChrPtr(Buf), "000")) {
Done = 1;
GetServerStatus(Buf, NULL);
}
FlushFolder(&Room);
- output_headers(1, 1, 2, 0, 0, 0);
+ output_headers(1, 1, 1, 0, 0, 0);
DoTemplate(HKEY("prefs_pushemail"), NULL, &SubTP);
wDumpContent(1);
FreeStrBuf(&Buf);
sms = bstr("user_sms_number");
}
Buf = NewStrBuf();
+ memset(&Room, 0, sizeof(folder));
if (goto_config_room(Buf, &Room) != 0) {
FreeStrBuf(&Buf);
FlushFolder(&Room);
}
while (!Done &&
- StrBuf_ServGetln(Buf)) {
+ StrBuf_ServGetln(Buf) >= 0) {
if ( (StrLength(Buf)==3) &&
!strcmp(ChrPtr(Buf), "000")) {
Done = 1;