Jump to content

Bam

Active Members
  • Posts

    81
  • Joined

  • Last visited

About Bam

  • Birthday 03/24/1990

Profile Information

  • Location
    USA

Bam's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Nothing that I can see, here's what ItemGet Returns on an email marked for deletion: [1]|Actions||0 [2]|AlternateRecipientAllowed|True|6 [3]|Application||0 [4]|Attachments||0 [5]|AutoForwarded|False|6 [6]|AutoResolvedWinner|False|6 [7]|BCC||1 [8]|BillingInformation||1 [9]|Body||1 [10]|BodyFormat|1|3 [11]|Categories||1 [12]|CC||1 [13]|Class|43|3 [14]|Companies||1 [15]|Conflicts||0 [16]|ConversationIndex|01CD22551399541CC58A3678419CBFEFCC7CCAC6EA86|1 [17]|ConversationTopic||1 [18]|CreationTime|20120425143009|5 [19]|DeferredDeliveryTime|45010101000000|0 [20]|DeleteAfterSubmit|False|6 [21]|DownloadState|1|3 [22]|EntryID|00000000871EC33D92F3AA49B908F0334225805BC4292000|1 [23]|ExpiryTime|45010101000000|0 [24]|FlagRequest||1 [25]|FormDescription||0 [26]|GetInspector||0 [27]||1 [28]|Importance|1|3 [29]|InternetCodepage|28591|3 [30]|IsConflict|False|6 [31]|IsMarkedAsTask|False|6 [32]|ItemProperties||0 [33]|LastModificationTime|20120425143743|5 [34]|Links||0 [35]|MarkForDownload|0|3 [36]|MessageClass|IPM.Note|1 [37]|Mileage||1 [38]|NoAging|False|6 [39]|OriginatorDeliveryReportRequested|False|6 [40]|OutlookInternalVersion|0|3 [41]|OutlookVersion||1 [42]|Parent||0 [43]|Permission|0|3 [44]|PermissionService|0|3 [45]|PropertyAccessor||0 [46]|ReadReceiptRequested|False|6 [47]|ReceivedByEntryID||0 [48]|ReceivedByName|Bam|1 [49]|ReceivedOnBehalfOfEntryID||0 [50]|ReceivedOnBehalfOfName|Bam|1 [51]|ReceivedTime|20120424160146|5 [52]|RecipientReassignmentProhibited|False|6 [53]|Recipients||0 [54]|ReminderOverrideDefault|False|6 [55]|ReminderPlaySound|False|6 [56]|ReminderSet|False|6 [57]|ReminderSoundFile||1 [58]|ReminderTime|45010101000000|0 [59]|RemoteStatus|0|3 [60]|ReplyRecipientNames||1 [61]|ReplyRecipients||0 [62]|Saved|True|6 [63]|SaveSentMessageFolder||0 [64]|SenderEmailAddress||1 [65]|SenderEmailType|SMTP|1 [66]|SenderName||1 [67]|SendUsingAccount||0 [68]|Sensitivity|0|3 [69]|Sent|True|6 [70]|SentOn|20120424160138|5 [71]|SentOnBehalfOfName||1 [72]|Session||0 [73]|Size|9560|3 [74]|Subject||1 [75]|Submitted|False|6 [76]|TaskCompletedDate|45010101000000|0 [77]|TaskDueDate|45010101000000|0 [78]|TaskStartDate|45010101000000|0 [79]|TaskSubject||1 [80]|To|Bam|1 [81]|ToDoTaskOrdinal|45010101000000|0 [82]|UnRead|False|6 [83]|UserProperties||0 [84]|VotingOptions||1 [85]|VotingResponse||1 I tried _OL_ItemGet($oOL, $aItems[1][0], $aFolder[3], "1728184331") and _OL_ItemGet($oOL, $aItems[1][0], $aFolder[3], "PR_BEING_DELETED") They returned nothing.
  2. No I don't but it looks like deleted items folder isn't in the account, Whats weird is Bam/[Gmail]/All Mail shows the email with a strike through it but if I go to Bam/Inbox I see the same email but no strike through it. I have a Bam/[Gmail]/Trash and don't see the striked email in there either. I'm thinking it might be a setting in outlook that's causing the problem.
  3. Had to change it up a little but. #include <OutlookEX.au3> $oOL = _OL_Open() $aFolder = _OL_FolderAccess($oOL, "BAM[Gmail]All Mail", $olFolderInbox) $aItems = _OL_ItemFind($oOL, $aFolder[1], $olMail, "", "", "", "EntryID") _OL_ItemDelete($oOL, $aItems[1][0], $aFolder[3]) _OL_Close($oOL) This is still just putting a line through the emails and they're still there after I click purge marked items in all accounts.
  4. That was the complete script other then include lines. I was in the process of having a nice script until I ran into this problem and now it just got messy. The reason I had ItemGet was to see if the item was still there so if the script was ran more then once the email should be deleted and ItemGet should throw and error. If the item or Email was moved to deleted items folder because of ItemDelete, shouldn't ItemGet still throw an error because of the StoreID parameter?
  5. No I haven't, the only thing I find is that if its marked for deletion it needs to be purged but that does not seem to be working in my case.
  6. Yeah at first I thought I was doing something wrong but when searching outlook for this problem it seems to be normal for outlook 2007 when using imap. Anyways thanks for the help
  7. I got the EntryID from ItemFind and StoreID from FolderAccess. I call ItemGet to see if the item is still there because if it didn't then item delete worked. I want to delete and email. and on outlook there's personal folders and then there's another folder that goes ****/[Gmail]/All Mail so i think its a store of another user. But the email is getting a line through it so it supposedly marked for deletion but it seems to never go away and I've tried purging the account and restarted outlook and send and receive with no joy. Also its outlook 2007 on XP.
  8. Oh duhh, didn't think about that but I ran your code and this is what the console shows. _OL_ItemGet: Error = 0 Extended: 0 _ArrayDisplay: Error = 0 Extended: 0 _OL_ItemDelete: A = Error = 0 Extended: 0 >Exit code: 0 Time: 2.975
  9. Hello, I seem to be having some trouble with _OL_ItemDelete, It doesn't seem to be deleteing the email but just puting a line thro it. When I switch folders and come back the line thro it is gone. Code: Global $oOutlook = _OL_Open() $ID = "00000000FF50131DCE42AA419B8EAF968B036AA1E4002000" $StoreID = "0000000038A1BB1005E5101AA1BB08002B2A56C200007073747072782E646C6C00000000000000004E495441F9BFB80100AA0037D96E0000000043003A005C0044006F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670073005C00420061006D005C004C006F00630061006C002000530065007400740069006E00670073005C004100700070006C00690063006100740069006F006E00200044006100740061005C004D006900630072006F0073006F00660074005C004F00750074006C006F006F006B005C004F00750074006C0044004300530058002D00300030003000300030003000300032002E007000730074000000" _ArrayDisplay(_OL_ItemGet($oOutlook, $ID, $StoreID)) ConsoleWrite("Error = " & @error & " " & @extended & @CRLF) $A = _OL_ItemDelete($oOutlook, $ID, $StoreID) ConsoleWrite("A = " & $A & @CRLF) ConsoleWrite("Error = " & @error & " " & @extended & @CRLF) Console: Error = 0 0 A = Error = 0 0 >Exit code: 0 Time: 3.796
  10. #include <OutlookEx.au3> $Email = "email@address.w/e" $oOutlook = _OL_Open() $oMail = _OL_ItemCreate($oOutlook, $olMailItem, "*", "", "Subject=TestMail", "BodyFormat=" & $olFormatHTML, _ 'HTMLBody=This is a picture.<img src="cid:The_Outlook">This is more text.') If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF: _OL_ItemCreate Example Script", "Error creating a mail item. @error = " & @error & ", @extended = " & @extended) $oItem = _OL_ItemAttachmentAdd($oOutlook, $oMail, Default, @ScriptDir & "\The_Outlook.JPG") If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF: _OL_ItemCreate Example Script", "Error adding an attachment to the mail item. @error = " & @error & ", @extended = " & @extended) _OL_ItemRecipientAdd($oOutlook, $oMail, Default,$olTo,$Email) _OL_ItemSend($oOutlook, $oItem, Default) _OL_Close($oOutlook) I just tried the code above and when I received the email the picture didn't show up in the message but it was in attachments. Email MIME (I think its the MIME) from script: ------=_NextPart_000_0007_01CC60D8.D75954A0 Content-Type: image/jpeg; name="The_Outlook.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="The_Outlook.jpg" I think the problem is it doesn't have the "Content-ID:" wich is in the source of the email from the python script. --===============1827817307== Content-Type: image/png MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-ID: <image1>
  11. When it displays the email it look awesome just they way it should but I cant seem to find a way to add an email address to send the email to and how to send it. Also is there any to have a plain text version of the email with an html version? (I know the plain text wont be able to show the image but I'm just curious)
  12. Thanks for the response. <b>Some <i>HTML</i> text</b> and an image.<br><img src="cid:image1"><br>Nifty! is the html part, the cid:image1 part is what im mainly interested in. It seems to pull the picture from the attachments and displays the picture in the message with out having to view it in attachments or show remote content. I also like that it includes a plain text version of the email. Here's the source of the email if that's what you where looking for. (had to shorten the image data, was too long and the code tags didn't like it ) Content-Type: multipart/related; boundary="===============1827817307==" MIME-Version: 1.0 Subject: Subject From: email@address.com To: email@address.com Message-ID: <################@####.#######.###> Date: Fri, 19 Aug 2011 13:34:21 -0500 (CDT) X-Sendgrid-EID: AH77f4+342/dscWd6jTxVQ6eWP508CuYzOjTWDheTB57KzaG05LaWcPnpnIq7zsmBdJNYYzUPRdGh66xDl6LTpwttsAvjcnSA+IXh/0jCRrnsdV3uYgcvDcpSybQhVLOi9uMOymGx9mehYPOAj+LcSl7cBfhnf8gPLxA1Ul+Brk= Sender: Bam=##############@#######.### This is a multi-part message in MIME format. --===============1827817307== Content-Type: multipart/alternative; boundary="===============1877621409==" MIME-Version: 1.0 --===============1877621409== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit This is the alternative plain text message. --===============1877621409== Content-Type: text/html; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit <b>Some <i>HTML</i> text</b> and an image.<br><img src="cid:image1"><br>Nifty! --===============1877621409==-- --===============1827817307== Content-Type: image/png MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-ID: <image1> iVBORw0KGgoAAAANSUhEUgAAASwAAAELCAIAAADstiysAAAACXBIWXMAAAsS yKomG8t9ZSFqVdWFngjpQqhbJJVZUU0c/QvZiEqKXcy/ywAAAABJRU5ErkJg gg== --===============1827817307==--
  13. Well have jury rigged solution, using the python script and $File = FileOpen(@ScriptDir & "\bam-mail.py") $Data = FileRead($File) FileClose($File) $Data = StringReplace($Data, "#@email.com", "to@emailadress") $File = FileOpen(@ScriptDir & "\bam-mailA.py", 2) FileWrite($File, $Data) FileClose($File) $Run = RunWait("C:\Python32\python.exe C:\Users\Bam\Desktop\Python\bam-mailA.py","") MsgBox(1,1,$Run) Still open to any other AutoIt solutions.
  14. Thanks for the reply. Ive tried that before but Im not trying to add an image as a attachment Im trying to make it show up as part of the email.
  15. Kinda just need pointed in the right direction / can it be done with auto it. Im looking for a way to embed an image into an email, I've done alot of searching and I guess the way to do it is with cid: after attaching the image to the email but Ive tried this with the outlook udfs already with no joy. I found a python script that I found that does what I want but I never have used python until today. I've also used a data URI (Im not sure what its called, this site can convert an image into text and then then you just insert the text into <img src="LengthyStringHereGeneratedBySite">), This does work if the email is opened with Thunderbird or other email clients but if opened with gmail theirs just a plank spot where the image should be. It would be awesome if it could be done with out outlook but I still prefer using AutoIt with outlook vrs learning python. Any help is appreciative.
×
×
  • Create New...