|
2#
楼主 |
发表于 2009-12-7 17:53:19
|
只看该作者
我把这段代码注释掉就可以跑通了,并且正常放邮件,为什么呢???
/* web_custom_request("%E6%94%B6%E4%BB%B6%E7%AE%B1_2",
"URL=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/",
"Method=SEARCH",
"Resource=0",
"RecContentType=text/xml",
"Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents",
"Snapshot=t139.inf",
"Mode=HTML",
"Body=<searchrequest xmlns=\"DAV:\"><sql>SELECT \"http://schemas.microsoft.com/exchange/smallicon\" as smicon, \"http://schemas.microsoft.com/mapi/sent_representing_name\" as from, \"urn:schemas:httpmail:datereceived\" as recvd, \"http://schemas.microsoft.com/mapi/proptag/x10900003\" as flag, \"http://schemas.microsoft.com/mapi/subject\" as subj, \"http://schemas.microsoft.com/exchange/x-priority-long\" as prio, \"urn:schemas:httpmail:hasattachment\" as fattach,\"urn:schemas:httpmail:read\" as r, "
"\"http://schemas.microsoft.com/exchange/outlookmessageclass\" as m, \"http://schemas.microsoft.com/mapi/proptag/x10950003\" as flagcolor\r\nFROM Scope('SHALLOW TRAVERSAL OF \"\"')\r\nWHERE \"http://schemas.microsoft.com/mapi/proptag/0x67aa000b\" = false AND \"DAV:isfolder\" = false\r\nORDER BY \"urn:schemas:httpmail:datereceived\" DESC\r\n</sql><range type=\"row\">0-24</range></searchrequest>\r\n",
EXTRARES,
"Url=/exchweb/img/view-document.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
"Url=/exchweb/img/sort-d.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
"Url=/exchweb/img/view-flag.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
"Url=/exchweb/img/view-importance.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
"Url=/exchweb/img/view-paperclip.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
"Url=/exchweb/img/flg-empty.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
"Url=/exchweb/6.5.7638.1/controls/ctrl_reminder.htc", "Referer=", ENDITEM,
LAST);
web_custom_request("%E6%97%A5%E5%8E%86",
"URL=https://mail.bjebc.com/exchange/mayandong/%E6%97%A5%E5%8E%86",
"Method=SUBSCRIBE",
"Resource=0",
"Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=navbar",
"Mode=HTML",
LAST);
web_custom_request("%E4%BB%BB%E5%8A%A1",
"URL=https://mail.bjebc.com/exchange/mayandong/%E4%BB%BB%E5%8A%A1",
"Method=SUBSCRIBE",
"Resource=0",
"Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=navbar",
"Mode=HTML",
LAST);
web_custom_request("%E4%BB%BB%E5%8A%A1_2",
"URL=https://mail.bjebc.com/exchange/mayandong/%E4%BB%BB%E5%8A%A1",
"Method=SEARCH",
"Resource=0",
"RecContentType=text/xml",
"Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=navbar",
"Snapshot=t140.inf",
"Mode=HTML",
"Body=<?xml version=\"1.0\"?>\n<searchrequest xmlns=\"DAV:\">\n<sql>SELECT \"DAV:href\" as URL, \n\"http://schemas.microsoft.com/exchange/outlookmessageclass\" as Class, \n\"http://schemas.microsoft.com/mapi/commonend\" as StartTime, \n\"http://schemas.microsoft.com/mapi/remindernexttime\" as ReminderTime, \n\"http://schemas.microsoft.com/mapi/subject\" as Subject, \n\"http://schemas.microsoft.com/exchange/smallicon\" as Icon \n from SCOPE('shallow traversal of \"\"') \n WHERE (\"http://"
"schemas.microsoft.com/exchange/tasks/is_complete\" = false ) \n AND (\"http://schemas.microsoft.com/mapi/reminderset\" = true) \n AND (\"http://schemas.microsoft.com/mapi/remindernexttime\" < CAST(\"2009-12-08T16:00:00Z\" as \"dateTime.tz\")) \n AND ((\"http://schemas.microsoft.com/mapi/commonend\" IS NULL) OR ((\"http://schemas.microsoft.com/mapi/commonend\" < CAST(\"2010-03-06T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"http://schemas.microsoft.com/mapi/commonend\" > CAST(\"2009-09-06T16"
":00:00Z\" as \"dateTime.tz\")))) \n AND (\"DAV:ishidden\" = false) \n ORDER BY \"http://schemas.microsoft.com/exchange/tasks/dtdue\" DESC </sql>\n</searchrequest>\n",
LAST);
web_custom_request("%E6%97%A5%E5%8E%86_2",
"URL=https://mail.bjebc.com/exchange/mayandong/%E6%97%A5%E5%8E%86",
"Method=SEARCH",
"Resource=0",
"RecContentType=text/xml",
"Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=navbar",
"Snapshot=t141.inf",
"Mode=HTML",
"Body=<?xml version=\"1.0\"?>\n<searchrequest xmlns=\"DAV:\">\n<sql>SELECT \"DAV:href\" as URL, \n\"http://schemas.microsoft.com/exchange/outlookmessageclass\" as Class, \n\"urn:schemas:calendar:dtstart\" as StartTime, \n\"urn:schemas:calendar:dtend\" as EndTime, \n\"urn:schemas:calendar:remindernexttime\" as ReminderTime, \n\"urn:schemas:calendar:location\" as Location, \n\"http://schemas.microsoft.com/mapi/subject\" as Subject, \n\"urn:schemas:calendar:instancetype\" as Type, \n\"http://"
"schemas.microsoft.com/exchange/smallicon\" as Icon \n from SCOPE('shallow traversal of \"\"') \n WHERE NOT (\"urn:schemas:calendar:instancetype\" = 1) \n AND (\"urn:schemas:calendar:remindernexttime\" < CAST(\"2009-12-08T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"urn:schemas:calendar:dtstart\" < CAST(\"2010-03-06T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"urn:schemas:calendar:dtend\" > CAST(\"2009-09-06T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"DAV:ishidden\" is Null OR \"DAV"
":ishidden\" = false) \nORDER BY \"urn:schemas:calendar:dtstart\" DESC </sql>\n</searchrequest>\n",
LAST);
web_url("1207test.EML",
"URL=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/1207test.EML?cmd=preview",
"Resource=0",
"RecContentType=text/html",
"Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents",
"Snapshot=t142.inf",
"Mode=HTML",
LAST);
*/ |
|