Wooltown Posted March 5, 2009 Author Posted March 5, 2009 3 New functions _OutlookDeleteNote - New 2009-03-05 - Delete a note _OutlookDeleteTask - New 2009-03-05 - Delete a task _OutlookGetDistLists - New 2009-03-05 - Get the contents of one or more distribution lists
Wooltown Posted March 6, 2009 Author Posted March 6, 2009 2 New functions: _OutlookDeleteTask - New 2009-03-06 - Delete a task _OutlookModifyTask - New 2009-03-06 - Modify a Task
stamandster Posted March 6, 2009 Posted March 6, 2009 (edited) I seem to be getting some errors with the outlook.udf Outlook.au3(898,22) : WARNING: $sNewCategories: possibly used before declaration. If $sNewCategories <> ~~~~~~~~~~~~~~~~~~~^ Outlook.au3(899,17) : WARNING: $iNewColor: possibly used before declaration. If $iNewColor <> ~~~~~~~~~~~~~~^ Outlook.au3(910,5) : ERROR: syntax error EndWith ~~~~^ Outlook.au3(898,22) : ERROR: $sNewCategories: undeclared global variable. If $sNewCategories <> ~~~~~~~~~~~~~~~~~~~^ Outlook.au3(496,100) : ERROR: _OutlookFindRootFolder(): undefined function. _OutlookFindRootFolder($oFolder,$sRootFolderName,StringMid($sFolder,StringInStr($sFolder,"\")+ 1)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~^ Outlook.au3(498,126) : ERROR: _OutlookFindMailInTree(): undefined function. _OutlookFindMailInTree($asMail, $oFolder, $sRootFolderName, $fSubFolders, $sFrom, $sTo, $sCc, $sBCc, $sSubject, $iImportance) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\cstamand\Desktop\outlook\OutlookDemo.au3 - 4 error(s), 2 warning(s) I was able to fix much of the issues. I added the With where it was suppose to go and local'd the variables properly. Is there a way to check for new email and read the title and subject? Edited March 6, 2009 by kickarse
Wooltown Posted March 9, 2009 Author Posted March 9, 2009 I was in a little hurry last friday, I will correct the errors and submit an update. Using _OutlookGetMail you can search for all mail in a folder, in the resulting array you can see which mails are unread, I can add a parameter to search for only unread if you wish. I prefer not to use With - EndWith, If I have a Return in the middle of an With - EndWith, you will have problems.
Wooltown Posted March 9, 2009 Author Posted March 9, 2009 Kickarse - errors corrected, and added a parameter in _OutlookGetMail to only return unread mails.
Wooltown Posted March 12, 2009 Author Posted March 12, 2009 A handfull of more functions will come soon, together with better DemoFiles.
Wooltown Posted March 12, 2009 Author Posted March 12, 2009 5 new functions added today, 7 Demo files, categorized in the different areas.
Wooltown Posted March 23, 2009 Author Posted March 23, 2009 Updated: 2009-03-23 - Get rid of Security Warnings when reading/modifying in Outlook - http://www.mapilab.com/outlook/security/
faldo Posted March 24, 2009 Posted March 24, 2009 Will this work for all versions of Outlook? Check out my other scripts: RDP antihammer/blacklist generator | Phemex cryptocurrency exchange API
Wooltown Posted March 25, 2009 Author Posted March 25, 2009 I think so, have tested on 2003 and it works, but for some reason it is extremly slow, when reading contacts Outlook consumes 50% of the CPU
faldo Posted March 25, 2009 Posted March 25, 2009 (edited) I can confirm that it works for Outlook 2007 aswell Would it be possible to include the body and category of an appointment in the _OutlookGetAppointments array? Thanx for a great UDF! *Edit* I solved the problem, i just replaced: $avAppointments[$avAppointments[0][0]][4] = $oItem.AllDayEvent $avAppointments[$avAppointments[0][0]][5] = $oItem.Importancewith $avAppointments[$avAppointments[0][0]][4] = $oItem.Body $avAppointments[$avAppointments[0][0]][5] = $oItem.Categories the importance and all day-info isn't vital in my applyance. Edited March 25, 2009 by faldo Check out my other scripts: RDP antihammer/blacklist generator | Phemex cryptocurrency exchange API
Wooltown Posted March 25, 2009 Author Posted March 25, 2009 Or you could increase the array and include more information.
faldo Posted March 25, 2009 Posted March 25, 2009 Or you could increase the array and include more information.Indeed... my suggestion would be to include more columns in the original UDF, if you have the time Check out my other scripts: RDP antihammer/blacklist generator | Phemex cryptocurrency exchange API
Wooltown Posted March 25, 2009 Author Posted March 25, 2009 I can do it, but do you wish to have more than Body and Categories ?
faldo Posted March 25, 2009 Posted March 25, 2009 I'm creating a syncronisation-tool for the employees of my company so they can use the calendar in outlook to specify the time they've worked and then push a button to send it all to the economy/timestamp database, that way they don't have to enter the same info twice. So in my specific case, those two colums would be enough Check out my other scripts: RDP antihammer/blacklist generator | Phemex cryptocurrency exchange API
Wooltown Posted March 25, 2009 Author Posted March 25, 2009 OutlookGetAppointments updated, new version uploaded !
Gut Posted March 27, 2009 Posted March 27, 2009 I would like to check the mail and then save all the attachments to a directory and then delete the msg. Is this possible with this udf?
faldo Posted March 28, 2009 Posted March 28, 2009 I suggest you try it out... if you get stuck, post your problem along with your code. Check out my other scripts: RDP antihammer/blacklist generator | Phemex cryptocurrency exchange API
Wooltown Posted March 30, 2009 Author Posted March 30, 2009 I would like to check the mail and then save all the attachments to a directory and then delete the msg. Is this possible with this udf? Yes it is, just check all the examples.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now