Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

IMAP mail client [Night work]


  • Please log in to reply
20 replies to this topic

#1 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 02 October 2008 - 09:14 PM

IMAP AU3 Client GUI
* UPDATE No2

Now working:
*Recieve mail
*Mail goes to inbox
*Mail box tree shows right folders
*You can read mail text
*Shuld be moe comtible with more mail servers
TDO:
* Insted of label use edit box
*Renew folder tree and mail list after mail recieving is done


To make it work just change settings in ini file.
I left my test account. So you can end mails and test how it works
test mail is test@lirosta.lt

MAIL.zip ( 6.43K ) : 65 [old one]
Attached File  IMAP_MAIL_1.0C.ZIP   352.95KB   1460 downloads

Edited by slaughter, 10 October 2008 - 04:01 PM.








#2 tlokz

tlokz

    Adventurer

  • Active Members
  • PipPip
  • 109 posts

Posted 03 October 2008 - 05:31 AM

omg I have been looking for this forever :) Ive been trying to incorparate sending mails from my mail server in my program...

will deffinently be watching this thread...

tho on topic: it crashes when downloading mail...

C:\Users\T_LOKZz\Desktop\Imap_get2.au3 (338) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
MsgBox(0,"",$mail_tekstas[5])
MsgBox(0,"",^ ERROR

#3 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 03 October 2008 - 08:45 AM

omg I have been looking for this forever :) Ive been trying to incorparate sending mails from my mail server in my program...

will deffinently be watching this thread...

tho on topic: it crashes when downloading mail...

C:\Users\T_LOKZz\Desktop\Imap_get2.au3 (338) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
MsgBox(0,"",$mail_tekstas[5])
MsgBox(0,"",^ ERROR

culd be... sory had no time to test with more mail servers.... Now working on understanding mail mesage body syntax

#4 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 03 October 2008 - 09:02 AM

culd someone send me you mesage body?
Jus delete ;~ at lines 139 and 140 it will make txt file then post it here wuld be great!!!!!


139 FileDelete("Body.txt")
140 _FileWriteFromArray("Body.txt", $body)

#5 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 07 October 2008 - 03:37 PM

So anybody can help me out a bit?

#6 martin

martin

    ~~\o/~~~/0\=¬''~~~

  • MVPs
  • 7,321 posts

Posted 07 October 2008 - 04:30 PM

So anybody can help me out a bit?

I sent myself an email on another account and that worked fine, and I sent one to you. Did you get it?
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

#7 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 07 October 2008 - 05:27 PM

I sent myself an email on another account and that worked fine, and I sent one to you. Did you get it?

no i didint :/ Wuld be great to get from more mail servers like hMialServer, hotmail, gmail, ect. Then i culd analyse email bodies and write some more functions to get more VAR's from email body.

#8 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 09 October 2008 - 12:19 PM

TDO 2008-10-09:
1. PHP Function to decode UTF subject. Found in work. Nead to make it work on au3.

function decode_utf8($str) {
preg_match_all("/=\?UTF-8\?B\?([^\?]+)\?=/i",$str, $arr);

for ($i=0;$i<count($arr[1]);$i++){
$str=ereg_replace(ereg_replace("\?","\?",
$arr[0][$i]),base64_decode($arr[1][$i]),$str);
}
return $str;
}

2. check how this PHP function works: imap_headerinfo
3. Change body striping TEXT -> Content-Type: text/plain
4. BASE64 encode end to --> "--"

Edited by slaughter, 09 October 2008 - 01:32 PM.


#9 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 10 October 2008 - 04:02 PM

TDO 2008-10-09:
1. PHP Function to decode UTF subject. Found in work. Nead to make it work on au3.


2. check how this PHP function works: imap_headerinfo
3. Change body striping TEXT -> Content-Type: text/plain
4. BASE64 encode end to --> "--"

DONE

Script UPDATED

#10 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 11 October 2008 - 01:34 PM

no comments? :/

#11 XPecto

XPecto

    Seeker

  • Normal Members
  • 2 posts

Posted 11 October 2008 - 02:49 PM

Thanks! :P

#12 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 11 October 2008 - 02:51 PM

Thanks! :P

Nice commentar =]]

Any feed back?

#13 ptrex

ptrex

    Universalist

  • MVPs
  • 2,420 posts

Posted 12 October 2008 - 07:36 PM

@slaughter

Does this work to read a gmail account ?

regards
ptrex

#14 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 13 October 2008 - 02:15 PM

@slaughter

Does this work to read a gmail account ?

regards
ptrex


IF GMAIL do not require SSL It shuld work...

#15 ptrex

ptrex

    Universalist

  • MVPs
  • 2,420 posts

Posted 13 October 2008 - 04:05 PM

@sslaughter

Unfortunately it does need SSL.

Regards,

ptrex

#16 slaughter

slaughter

    Prodigy

  • Active Members
  • PipPipPip
  • 190 posts

Posted 13 October 2008 - 06:30 PM

@sslaughter

Unfortunately it does need SSL.

Regards,

ptrex

Is posible to use this ?
http://www.obdev.at/products/ssl-proxy/index.html

Now I am trying, but un suceseful
Always geting error:

proxy ready, listening for connections
connection on fd=120
SSL: No verify locations, trying default
connect: No such file or directory
jumping catch



IF $is_SSL <> 0 Then     $ssl_startup = "-L127.0.0.1 -l5000 -R"& $incoming_server &" -r"& $incoming_server_port &""     ShellExecute(@ScriptDir & "\sslproxy.exe", $ssl_startup, @ScriptDir)     Sleep(1000)     IMAPConnectToServer("127.0.0.1", "5000") Else     IMAPConnectToServer($IMAPserver, $IMAPport) EndIf

Edited by slaughter, 13 October 2008 - 06:30 PM.


#17 ptrex

ptrex

    Universalist

  • MVPs
  • 2,420 posts

Posted 13 October 2008 - 07:10 PM

@slaughter

There are some threads in the forum that show it should be possible using POP/ssl and SMTP/ssl.

But I never found a good post, explaining the whole thing in clear text.

This one is a good start. Gmail POP/ssl and SMTP/ssl

If someone could post a clear instruction on how to. I would appreciate that.

regarsds,

ptres

#18 Axel82

Axel82

    Seeker

  • Active Members
  • 16 posts

Posted 11 November 2008 - 06:28 PM

And what about sending mail? It would be very usefull...

#19 txomin

txomin

    Seeker

  • Active Members
  • 38 posts

Posted 16 November 2008 - 07:10 PM

Anyone knows how to retrieve messages from Gmail via SMTP/SSL???

Please I am been looking forever to do this!!!

#20 billthecreator

billthecreator

    I am The creator

  • Active Members
  • PipPipPipPipPipPip
  • 379 posts

Posted 16 November 2008 - 09:51 PM

And what about sending mail? It would be very usefull...


I made an emailer. look at my signature.
My Scripts: From Most recent to least.Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users