[Mrpostman-developers] Re: OutlookWA 2003 unable to delete messages
Brought to you by:
chris_humphreys,
mrbook
|
From: Luca C. <lu....@gm...> - 2006-02-10 11:58:39
|
Hi,
below the code for fix this issue.
Ciao,
Luca
sub delete(msgs)
foreach(msgs, msg)
msg_id_escaped =3D replaceall(msg.id,"\\[", "%5B")
msg_id_escaped =3D replaceall(msg_id,"\\]", "%5D")
params["MsgID"] =3D "/" & replaceall(msg_id,"\?.*","")
params["Cmd"] =3D "delete"
status,page =3D post(msg_id_escaped, params)
end
return true
end
On 2/10/06, Luca Corbo <lu....@gm...> wrote:
>
> Hi,
> I've the following error when try to delete a mail where the subject
> contains the char "[" or "]".
>
> 10-feb-2006 10.41.02 org.mrbook.mrpostman.generic.GenericMailSessionquitS=
ession
> GRAVE: ./outlook2003.script: Error deleting message(s): Script
> './outlook2003.script', line 177: Parameter mismatch: post(string url [,
> Map<string:string> parameters [, Map<string:string> headers [, encoding]]=
])
>
> I've changed in the outlook2003.script the "delete" function delete for
> escape these chars:
>
> sub delete(msgs)
> local(msg, status, page)
> foreach(msgs, msg)
> status,page =3D post(msg.id, map("MsgID", "/" &
> replaceall(replaceall(replaceall(msg.id,"\?.*",""), "\\[", "%5B"), "\\]",
> "%5D"), "Cmd", "delete"))
> end
> return true
> end
>
> but I've the same error.
>
> I've also enabled the debug logging but there aren't useful info to fix
> the problem, see below.
>
> Have you any suggest?
>
> Thanks in advance,
> Luca
>
>
>
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericMailSession::quitSession(1.45)-INFO:
> ./outlook2003.script: Deleting 1 messages...
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericParser::callProcedure (1.24)-FINEST:
> ./outlook2003.script (172): msgs =3D [ [ "size" =3D> [ "value" =3D> "1", =
"unit" =3D>
> "KB" ], "id" =3D> "Posta%20in%20arrivo/[test].EML?Cmd=3Dopen" ] ]
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericParser::executeLine(1.24)-FINER:
> ./outlook2003.script (173): Parsing 'local(msg, status, page)'
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericParser::executeLine (1.24)-FINER:
> ./outlook2003.script (174): Parsing 'foreach(msgs, msg)'
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericParser::executeLine(1.24)-FINEST:
> ./outlook2003.script (174): msg =3D [ "size" =3D> [ "value" =3D> "1", "un=
it" =3D>
> "KB" ], "id" =3D> "Posta%20in%20arrivo/[test].EML?Cmd=3Dopen" ]
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericParser::executeLine(1.24)-FINER:
> ./outlook2003.script (175): Parsing 'status,page =3D post(msg.id,
> map("MsgID", "/" & replaceall(replaceall(replaceall( msg.id,"\?.*",""),
> "\\[", "%5B"), "\\]", "%5D"), "Cmd", "delete"))'
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericMailSession::quitSession (1.45)-SEVER=
E:
> ./outlook2003.script: Error deleting message(s): Script
> './outlook2003.script', line 176: Parameter mismatch: post(string url [,
> Map<string:string> parameters [, Map<string:string> headers [, encoding]]=
])
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericMailSession::quitSession(1.45)-INFO:
> ./outlook2003.script: Logging out...
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericParser::executeLine(1.24)-FINER:
> ./outlook2003.script (181): Parsing 'get("?Cmd=3Dlogoff")'
> 10-feb-2006 10.49.08
> org.mrbook.mrpostman.generic.GenericParser::executeLine(1.24)-FINEST:
> ./outlook2003.script (181): Calling get({ "?Cmd=3Dlogoff" })
>
>
>
>
>
>
|