PATCH: sms-1.9.2l + idea mBox
q#
build w o2.pl
Nie, 23 Maj 2004, 06:40:14 CEST
Witam,
Ponizsza modyfikacja pozwala wysylas sms-sy poprzez bramke idea mbox.
--
best regards
q#
-------------- następna część ---------
diff -ruN sms-1.9.2l.orig/idea_mbox.cc sms-1.9.2l/idea_mbox.cc
--- sms-1.9.2l.orig/idea_mbox.cc 2004-05-23 03:35:40.000000000 +0200
+++ sms-1.9.2l/idea_mbox.cc 2004-05-23 04:03:58.000000000 +0200
@@ -43,7 +43,7 @@
body = s->GetBody();
regcomp(&preg,
- "<form action=\"https://www.idea.pl/.*\" method=\"POST\">",
+ "<form .* action=\"https://www.idea.pl/.*\" method=\"POST\">",
REG_EXTENDED);
/* regcomp(&preg,
"<form .* action=\"https://www.idea.pl/.*\" method=\"POST\">",
@@ -98,14 +98,14 @@
form->Add("/amg/ptk/map/core/formhandlers/AdvancedProfileFormHandler.extractDefaultValuesFromProfile", "false");
form->Add("_D:/amg/ptk/map/core/formhandlers/AdvancedProfileFormHandler.login", "");
form->Add("/amg/ptk/map/core/formhandlers/AdvancedProfileFormHandler.login", "login");
-// form->Add("_D:password", " ");
-// form->Add("password", konfig.ideambox_pass);
-// form->Add("_D:login", " ");
-// form->Add("login", konfig.ideambox_login);
+ form->Add("_D:password", " ");
+ form->Add("password", konfig.ideambox_pass);
+ form->Add("_D:login", " ");
+ form->Add("login", konfig.ideambox_login);
form->Add("_D:/amg/ptk/map/core/formhandlers/AdvancedProfileFormHandler.value.password", "");
form->Add("/amg/ptk/map/core/formhandlers/AdvancedProfileFormHandler.value.password", konfig.ideambox_pass);
form->Add("_D:/amg/ptk/map/core/formhandlers/AdvancedProfileFormHandler.value.login", "");
- form->Add("/amg/ptk/map/core/formhandlers/AdvancedProfileFormHandler.value.login", konfig.ideambox_login);
+// form->Add("/amg/ptk/map/core/formhandlers/AdvancedProfileFormHandler.value.login", konfig.ideambox_login);
form->Add("_dyncharset", "ISO8859_2");
h = s->PostData(formularz, *form);
@@ -120,7 +120,11 @@
s->ReplaceHeader("Cookie", cookies.c_str());
- delete s->GetData("http://www.idea.pl/portal/map/map/message_box?mbox_view=newsms&mbox_edit=new", 1);
+ delete s->GetData("http://www.idea.pl/portal/map/map/message_box?mbox_folder=INBOX&mbox_view=newsms", 1);
+
+
+
+
regcomp(&preg, "Nowa wiadomoĹÄ SMS", REG_EXTENDED);
wynik = !regexec(&preg, s->GetBody(), 1, ®, 0);
Więcej informacji o liście dyskusyjnej pld-devel-pl