Sign in to follow this  
Followers 0

IMAP mail client [Night work]

21 posts in this topic

#1 ·  Posted (edited)

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]

IMAP_MAIL_1.0C.ZIP

Edited by slaughter

Share this post


Link to post
Share on other sites



#2 ·  Posted

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

Share this post


Link to post
Share on other sites

#3 ·  Posted

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

Share this post


Link to post
Share on other sites

#4 ·  Posted

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)

Share this post


Link to post
Share on other sites

#6 ·  Posted

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.

Share this post


Link to post
Share on other sites

#7 ·  Posted

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.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#9 ·  Posted

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

Share this post


Link to post
Share on other sites

#11 ·  Posted

Thanks! :P

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

@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

Share this post


Link to post
Share on other sites

#17 ·  Posted

@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

Share this post


Link to post
Share on other sites

#18 ·  Posted

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

Share this post


Link to post
Share on other sites

#19 ·  Posted

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

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

Share this post


Link to post
Share on other sites

#20 ·  Posted

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

I made an emailer. look at my signature.


[font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0