Jump to content

IMAP mail client [Night work]


slaughter
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

@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
Link to comment
Share on other sites

@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

Link to comment
Share on other sites

  • 4 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...