diff options
author | Eduardo Chappa <chappa@washington.edu> | 2013-10-13 02:08:28 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2013-10-13 02:08:28 -0600 |
commit | ee95edb6a42df4b45c82080c32f852781f289a02 (patch) | |
tree | 1fc71517846468677163b76dbf2400b59d7997b5 /web | |
parent | 30a979ab1460a57d466a6a5cc6adb96eac452ce4 (diff) | |
download | alpine-ee95edb6a42df4b45c82080c32f852781f289a02.tar.xz |
* Fixes in Pico so that it will crash in big files, instead of looping
forever. Todo: see how this can be improved.
* Add support for UID EXPUNGE in selected folders.
Diffstat (limited to 'web')
-rw-r--r-- | web/src/alpined.d/alpined.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/web/src/alpined.d/alpined.c b/web/src/alpined.d/alpined.c index 2132f95d..db9e86c0 100644 --- a/web/src/alpined.d/alpined.c +++ b/web/src/alpined.d/alpined.c @@ -4839,7 +4839,7 @@ PEFolderCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST agg_select_all(stream, msgmap, NULL, 1); errstr = peApplyFlag(stream, msgmap, 'd', 0, &count); if(!errstr) - (void) cmd_expunge_work(stream, msgmap); + (void) cmd_expunge_work(stream, msgmap, NULL); } } else{ @@ -4864,7 +4864,7 @@ PEFolderCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST if(!strucmp(what,"selected")){ if(any_lflagged(msgmap, MN_SLCT)){ if(!(errstr = peApplyFlag(stream, msgmap, 'd', 0, &count))) - (void) cmd_expunge_work(stream, msgmap); + (void) cmd_expunge_work(stream, msgmap, NULL); } else count = 0L; @@ -4883,7 +4883,7 @@ PEFolderCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST if(!errstr && uid){ /* uid is a UID here */ mail_flag(stream, long2string(uid), "\\DELETED", ST_SET | ST_UID); - (void) cmd_expunge_work(stream, msgmap); + (void) cmd_expunge_work(stream, msgmap, NULL); count = 1L; } } @@ -5637,7 +5637,7 @@ PEMailboxCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST ps_global->last_error[0] = '\0'; if(IS_NEWS(stream) && stream->rdonly){ - msgno_exclude_deleted(stream, msgmap); + msgno_exclude_deleted(stream, msgmap, NULL); clear_index_cache(sp_inbox_stream(), 0); /* @@ -5651,7 +5651,7 @@ PEMailboxCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST refresh_sort(ps_global->mail_stream, msgmap, FALSE); } else - (void) cmd_expunge_work(stream, msgmap); + (void) cmd_expunge_work(stream, msgmap, NULL); Tcl_SetResult(interp, ps_global->last_error, TCL_VOLATILE); return(TCL_OK); @@ -5683,7 +5683,7 @@ PEMailboxCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST ps_global->last_error[0] = '\0'; if(IS_NEWS(stream) && stream->rdonly){ - msgno_exclude_deleted(stream, msgmap); + msgno_exclude_deleted(stream, msgmap, NULL); clear_index_cache(sp_inbox_stream(), 0); /* @@ -5728,7 +5728,7 @@ PEMailboxCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST /* then remove them */ if(n == tomove){ - (void) cmd_expunge_work(stream, msgmap); + (void) cmd_expunge_work(stream, msgmap, NULL); } restore_selected(msgmap); @@ -6106,7 +6106,7 @@ PEMailboxCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST return(TCL_OK); } else if(!strucmp(op, "excludedeleted")){ - msgno_exclude_deleted(ps_global->mail_stream, sp_msgmap(ps_global->mail_stream)); + msgno_exclude_deleted(ps_global->mail_stream, sp_msgmap(ps_global->mail_stream), NULL); return(TCL_OK); } } |