Skip to content
Snippets Groups Projects
Commit dcf69bee authored by rswindell's avatar rswindell
Browse files

Message index.offset property (returned from get_msg_index) is now the index

record number rather than the header byte offset, to be consistent with other
uses of message "offset" in this class.
parent c41ab54e
No related branches found
No related tags found
No related merge requests found
......@@ -577,7 +577,7 @@ js_get_msg_index(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *r
JS_DefineProperty(cx, idxobj, "attr" ,val
,NULL,NULL,JSPROP_READONLY|JSPROP_ENUMERATE);
JS_NewNumberValue(cx, msg.idx.offset ,&val);
JS_NewNumberValue(cx, msg.offset ,&val);
JS_DefineProperty(cx, idxobj, "offset" ,val
,NULL,NULL,JSPROP_READONLY|JSPROP_ENUMERATE);
......@@ -1668,7 +1668,7 @@ static jsSyncMethodSpec js_msgbase_functions[] = {
"<tr><td><tt>attr</tt><td>Attribute bitfield"
"<tr><td><tt>time</tt><td>Date/time (in time_t format)"
"<tr><td><tt>number</tt><td>Message number"
"<tr><td><tt>offset</tt><td>Byte-offset into header file"
"<tr><td><tt>offset</tt><td>Record number in index file"
"</table>")
,311
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment