A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Express Email Newsgroup » Outlook Express
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , ,

Changes to eml handling?





 
 
Thread Tools Display Modes
  #1  
Old April 27th 06, 07:33 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
joosie
external usenet poster
 
Posts: 4
Default Changes to eml handling?

Am I going crackers or has something change with the way OE handles .eml
files. I collect stationery and would save it in .eml format so that I
could go to my stationery folder and double click on the .eml and it would
open ready for use.

But now I double click and it opens but I have to forward it and then remove
the header before I can type in a new message. I don't even know what to
look for on google to address this problem. I hope someone will understand
what I mean and be able to help me fix this. I guess it's not so bad having
to forward the message to use the stationery but I would like to know if
there is a simple solution to make things go back to the way they were. I
have my settings correct as given by http://www.lettermanstationery.com and
all the scrolling and scripts appear to work.

Any help appreciated

Joosie



Ads
  #2  
Old April 27th 06, 07:56 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Vincenzo Di Russo [MVP]
external usenet poster
 
Posts: 170
Default Changes to eml handling?

joosie wrote:

Am I going crackers or has something change with the way OE handles .eml
files. I collect stationery and would save it in .eml format so that I
could go to my stationery folder and double click on the .eml and it would
open ready for use.

But now I double click and it opens but I have to forward it and then
remove the header before I can type in a new message. I don't even know
what to look for on google to address this problem. I hope someone will
understand what I mean and be able to help me fix this. I guess it's not
so bad having to forward the message to use the stationery but I would
like to know if there is a simple solution to make things go back to the
way they were. I have my settings correct as given by
http://www.lettermanstationery.com and all the scrolling and scripts
appear to work.

Any help appreciated

Joosie


See he http://www.oehelp.com/OETips.aspx#14

--
Vincenzo Di Russo
Microsoft® MVP - Most Valuable Professional
Windows - Internet Explorer since 2003
My home: http://mvp.support.microsoft.com/
My Blog: http://blogs.dotnethell.it/vincent/

  #3  
Old April 27th 06, 08:26 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
joosie
external usenet poster
 
Posts: 4
Default Changes to eml handling?

Thank you very much. At least I know what is going on. I wonder if they
will "fix" this side effect. I don't feel like uninstalling a patch.
Thanks again
Joosie

"Vincenzo Di Russo [MVP]" wrote in message
...
joosie wrote:

Am I going crackers or has something change with the way OE handles .eml
files. I collect stationery and would save it in .eml format so that I
could go to my stationery folder and double click on the .eml and it
would
open ready for use.

But now I double click and it opens but I have to forward it and then
remove the header before I can type in a new message. I don't even know
what to look for on google to address this problem. I hope someone will
understand what I mean and be able to help me fix this. I guess it's not
so bad having to forward the message to use the stationery but I would
like to know if there is a simple solution to make things go back to the
way they were. I have my settings correct as given by
http://www.lettermanstationery.com and all the scrolling and scripts
appear to work.

Any help appreciated

Joosie


See he http://www.oehelp.com/OETips.aspx#14

--
Vincenzo Di Russo
Microsoft® MVP - Most Valuable Professional
Windows - Internet Explorer since 2003
My home: http://mvp.support.microsoft.com/
My Blog: http://blogs.dotnethell.it/vincent/



  #4  
Old April 27th 06, 11:02 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Vincenzo Di Russo [MVP]
external usenet poster
 
Posts: 170
Default Changes to eml handling?

joosie wrote:

Thank you very much. At least I know what is going on. I wonder if they
will "fix" this side effect. I don't feel like uninstalling a patch.
Thanks again
Joosie


YW.

--
Vincenzo Di Russo
Microsoft® MVP - Most Valuable Professional
Windows - Internet Explorer since 2003
My Blog: http://blogs.dotnethell.it/vincent/
My Home: http://mvp.support.microsoft.com/

"Vincenzo Di Russo [MVP]" wrote in message
...
joosie wrote:

Am I going crackers or has something change with the way OE handles .eml
files. I collect stationery and would save it in .eml format so that I
could go to my stationery folder and double click on the .eml and it
would
open ready for use.

But now I double click and it opens but I have to forward it and then
remove the header before I can type in a new message. I don't even know
what to look for on google to address this problem. I hope someone will
understand what I mean and be able to help me fix this. I guess it's
not so bad having to forward the message to use the stationery but I
would like to know if there is a simple solution to make things go back
to the way they were. I have my settings correct as given by
http://www.lettermanstationery.com and all the scrolling and scripts
appear to work.

Any help appreciated

Joosie


See he http://www.oehelp.com/OETips.aspx#14

--
Vincenzo Di Russo
Microsoft® MVP - Most Valuable Professional
Windows - Internet Explorer since 2003
My home: http://mvp.support.microsoft.com/
My Blog: http://blogs.dotnethell.it/vincent/


  #5  
Old April 27th 06, 11:36 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Steve Cochran
external usenet poster
 
Posts: 1,897
Default Changes to eml handling?

They did it deliberately, so we don't know if they will fix it.

steve

"joosie" wrote in message
...
Thank you very much. At least I know what is going on. I wonder if they
will "fix" this side effect. I don't feel like uninstalling a patch.
Thanks again
Joosie

"Vincenzo Di Russo [MVP]" wrote in message
...
joosie wrote:

Am I going crackers or has something change with the way OE handles .eml
files. I collect stationery and would save it in .eml format so that I
could go to my stationery folder and double click on the .eml and it
would
open ready for use.

But now I double click and it opens but I have to forward it and then
remove the header before I can type in a new message. I don't even know
what to look for on google to address this problem. I hope someone will
understand what I mean and be able to help me fix this. I guess it's
not
so bad having to forward the message to use the stationery but I would
like to know if there is a simple solution to make things go back to the
way they were. I have my settings correct as given by
http://www.lettermanstationery.com and all the scrolling and scripts
appear to work.

Any help appreciated

Joosie


See he http://www.oehelp.com/OETips.aspx#14

--
Vincenzo Di Russo
Microsoft® MVP - Most Valuable Professional
Windows - Internet Explorer since 2003
My home: http://mvp.support.microsoft.com/
My Blog: http://blogs.dotnethell.it/vincent/




  #6  
Old April 27th 06, 04:20 PM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Miyahn
external usenet poster
 
Posts: 39
Default Changes to eml handling?

"joosie" wrote in message
Thank you very much. At least I know what is going on. I wonder if they
will "fix" this side effect. I don't feel like uninstalling a patch.
Thanks again


Here is a limited workaround for html-format mail.
This HTA does not support attachment file.
You should set the default mail format to html.

If you run the HTA by double clicking, the HTA register itself to
the context menu of eml files and set the menu as default.
After that, if you double click the eml file which contains 'X-Unsent: 1',
"Compose Message" window will open as before.

! FileName : MakeMail.hta
htmlhead
meta http-equiv=Content-Type content="text/html; charset=us-ascii"
hta:application applicationname="MakeMail" id="This"
windowstate="minimize" singleinstance="yes"
script language=vbs
Option Explicit
Dim Arg, WS, tId, Title, Keys
Arg = Mid(This.commandline, Len(document.urlunencoded) + 4)
Set WS = CreateObject("WScript.Shell")
WS.SendKeys "%"
If Arg = "" Then Reg_UnReg
'
Sub Main
Const RKey = "HKCU\Identities\", SKey = "Last User ID"
Const TValue = _
"\Software\Microsoft\Outlook Express\5.0\Mail\Show Adv Mail Send"
Const HtmlPat = "HTML[\s\S]+/HTML"
Dim Buf, Pos, Header, Body, SendTo, CC, BCC, Subject, Command, Unsent
Dim LUID, AdvHead
LUID = WS.RegRead(RKey & SKey)
If LUID = "" Or LUID = "{00000000-0000-0000-0000-000000000000}" Then
WS.PopUp "Can't specify the user ID !!", 1, "Error"
window.close: Exit Sub
End If
AdvHead = WS.RegRead(RKey & LUID & TValue)
With CreateObject("Scripting.FileSystemObject")
With .OpenTextFile(Arg, 1): Buf = .ReadAll: .Close: End With
End With
Pos = Instr(Buf, vbCrLf & vbCrLf) + 1
Header = Left(Buf, Pos): Body = Mid(Buf, Pos + 3)
With New RegExp
.IgnoreCase = True: .Global = True: .Multiline = True
.Pattern = "^TO: ([^\r]*)"
If .Test(Header) Then SendTo = .Execute(Header)(0).SubMatches(0)
.Pattern = "^CC: ([^\r]*)"
If .Test(Header) Then CC = .Execute(Header)(0).SubMatches(0)
.Pattern = "^BCC: ([^\r]*)"
If .Test(Header) Then _
BCC = .Execute(Header)(0).SubMatches(0): AdvHead = True
.Pattern = "^SUBJECT: ([^\r]*)"
If .Test(Header) Then Subject = .Execute(Header)(0).SubMatches(0)
.Pattern = "^X-UNSENT: 1": Unsent = .Test(Header)
End With
If Unsent Then
Title = "Compose Message" ' I am not sure this title
With New RegExp
.IgnoreCase = True: .Pattern = HtmlPat
If .Test(Body) Then
Body = Decode(.Execute(Body)(0))
End If
End With
document.body.innerhtml = Body
document.execCommand "SelectAll"
document.execCommand "Copy"
Command = "mailto:" & SendTo & "?"
If CC "" Then Command = Command & "cc=" & CC & "&"
If BCC "" Then Command = Command & "bcc=" & BCC & "&"
Command = Replace(Command, """", "")
If Subject "" Then _
Command = Command & "subject=" & Subject: Title = Subject
If AdvHead Then Keys = "{TAB 4}^v" Else Keys = "{TAB 3}^v"
tId = window.SetInterval("PasteBody", 100)
window.open Command
Else
WS.Run Chr(34) & Arg & Chr(34): window.close
End If
End Sub
'
Sub PasteBody
If WS.AppActivate(Title) Then _
WS.SendKeys Keys: ClearInterval tId: window.close
End Sub
'
Function Decode(Src)
Const P0 = "([\s\S]*?)"
Dim RE, cResult, aResult
Set RE = New RegExp: RE.Global = True: RE.IgnoreCase = True
Src = Replace(Src, "=" & vbCrLf, "")
RE.Pattern =P0 & "(?:=)([\da-f]{2})" & P0 & "(?==|$)"
Set cResult = RE.Execute(Src)
If cResult.Count = 0 Then DC = Src: Exit Function
For Each aResult In cResult
With aResult.SubMatches
Decode = Decode & .Item(0) & Chr("&h" & .Item(1)) & .Item(2)
End With
Next
End Function
'
Sub Reg_UnReg
Const TKey = "HKCR\Microsoft Internet Mail Message\shell\"
Const SKey = "MakeMail", sMenu = "MakeMail(&M)"
Dim sCmd, EN
sCmd = "mshta """ & document.urlunencoded & """ %L"
With WS
On Error Resume Next
.RegRead TKey & SKey & "\": EN = Err.Number
On Error GoTo 0
If EN Then
.RegWrite TKey, SKey
.RegWrite Tkey & SKey & "\", sMenu
.RegWrite Tkey & SKey & "\command\", sCmd
.PopUp "Added to context menu.", 1,"Message"
Else
.RegDelete Tkey & SKey & "\command\"
.RegDelete Tkey & SKey & "\"
.RegWrite TKey, ""
.PopUp "Deleted from context menu.", 1,"Message"
End If
End With
window.close
End Sub
/script/headbody onload=Main/body/html

For plain text format, see this post.
" eml files read-only"


--
Miyahn (Masataka Miya****a) JPN
Microsoft MVP for Microsoft Office - Excel(Jan 2006 - Dec 2006)


  #7  
Old April 27th 06, 04:38 PM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Miyahn
external usenet poster
 
Posts: 39
Default Changes to eml handling?

Miyahn wrote in message
Function Decode(Src)
Const P0 = "([\s\S]*?)"
Dim RE, cResult, aResult
Set RE = New RegExp: RE.Global = True: RE.IgnoreCase = True
Src = Replace(Src, "=" & vbCrLf, "")
RE.Pattern =P0 & "(?:=)([\da-f]{2})" & P0 & "(?==|$)"
Set cResult = RE.Execute(Src)
If cResult.Count = 0 Then DC = Src: Exit Function


Correction.
If cResult.Count = 0 Then Decode = Src: Exit Function

--
Miyahn (Masataka Miya****a) JPN
Microsoft MVP for Microsoft Office - Excel(Jan 2006 - Dec 2006)


  #8  
Old April 28th 06, 12:36 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
joosie
external usenet poster
 
Posts: 4
Default Changes to eml handling?

Miyahn I would like to give this a try but I don't understand what I need to
do. Would you be able to explain a bit further. I am fairly good with
computers but I don't know what the HTA register is or what you mean in this
paragraph:

If you run the HTA by double clicking, the HTA register itself to
the context menu of eml files and set the menu as default.
After that, if you double click the eml file which contains 'X-Unsent: 1',
"Compose Message" window will open as before.


Joosie
"Miyahn" wrote in message
...
"joosie" wrote in message
Thank you very much. At least I know what is going on. I wonder if they
will "fix" this side effect. I don't feel like uninstalling a patch.
Thanks again


Here is a limited workaround for html-format mail.
This HTA does not support attachment file.
You should set the default mail format to html.

If you run the HTA by double clicking, the HTA register itself to
the context menu of eml files and set the menu as default.
After that, if you double click the eml file which contains 'X-Unsent: 1',
"Compose Message" window will open as before.

! FileName : MakeMail.hta
htmlhead
meta http-equiv=Content-Type content="text/html; charset=us-ascii"
hta:application applicationname="MakeMail" id="This"
windowstate="minimize" singleinstance="yes"
script language=vbs
Option Explicit
Dim Arg, WS, tId, Title, Keys
Arg = Mid(This.commandline, Len(document.urlunencoded) + 4)
Set WS = CreateObject("WScript.Shell")
WS.SendKeys "%"
If Arg = "" Then Reg_UnReg
'
Sub Main
Const RKey = "HKCU\Identities\", SKey = "Last User ID"
Const TValue = _
"\Software\Microsoft\Outlook Express\5.0\Mail\Show Adv Mail Send"
Const HtmlPat = "HTML[\s\S]+/HTML"
Dim Buf, Pos, Header, Body, SendTo, CC, BCC, Subject, Command, Unsent
Dim LUID, AdvHead
LUID = WS.RegRead(RKey & SKey)
If LUID = "" Or LUID = "{00000000-0000-0000-0000-000000000000}" Then
WS.PopUp "Can't specify the user ID !!", 1, "Error"
window.close: Exit Sub
End If
AdvHead = WS.RegRead(RKey & LUID & TValue)
With CreateObject("Scripting.FileSystemObject")
With .OpenTextFile(Arg, 1): Buf = .ReadAll: .Close: End With
End With
Pos = Instr(Buf, vbCrLf & vbCrLf) + 1
Header = Left(Buf, Pos): Body = Mid(Buf, Pos + 3)
With New RegExp
.IgnoreCase = True: .Global = True: .Multiline = True
.Pattern = "^TO: ([^\r]*)"
If .Test(Header) Then SendTo = .Execute(Header)(0).SubMatches(0)
.Pattern = "^CC: ([^\r]*)"
If .Test(Header) Then CC = .Execute(Header)(0).SubMatches(0)
.Pattern = "^BCC: ([^\r]*)"
If .Test(Header) Then _
BCC = .Execute(Header)(0).SubMatches(0): AdvHead = True
.Pattern = "^SUBJECT: ([^\r]*)"
If .Test(Header) Then Subject = .Execute(Header)(0).SubMatches(0)
.Pattern = "^X-UNSENT: 1": Unsent = .Test(Header)
End With
If Unsent Then
Title = "Compose Message" ' I am not sure this title
With New RegExp
.IgnoreCase = True: .Pattern = HtmlPat
If .Test(Body) Then
Body = Decode(.Execute(Body)(0))
End If
End With
document.body.innerhtml = Body
document.execCommand "SelectAll"
document.execCommand "Copy"
Command = "mailto:" & SendTo & "?"
If CC "" Then Command = Command & "cc=" & CC & "&"
If BCC "" Then Command = Command & "bcc=" & BCC & "&"
Command = Replace(Command, """", "")
If Subject "" Then _
Command = Command & "subject=" & Subject: Title = Subject
If AdvHead Then Keys = "{TAB 4}^v" Else Keys = "{TAB 3}^v"
tId = window.SetInterval("PasteBody", 100)
window.open Command
Else
WS.Run Chr(34) & Arg & Chr(34): window.close
End If
End Sub
'
Sub PasteBody
If WS.AppActivate(Title) Then _
WS.SendKeys Keys: ClearInterval tId: window.close
End Sub
'
Function Decode(Src)
Const P0 = "([\s\S]*?)"
Dim RE, cResult, aResult
Set RE = New RegExp: RE.Global = True: RE.IgnoreCase = True
Src = Replace(Src, "=" & vbCrLf, "")
RE.Pattern =P0 & "(?:=)([\da-f]{2})" & P0 & "(?==|$)"
Set cResult = RE.Execute(Src)
If cResult.Count = 0 Then DC = Src: Exit Function
For Each aResult In cResult
With aResult.SubMatches
Decode = Decode & .Item(0) & Chr("&h" & .Item(1)) & .Item(2)
End With
Next
End Function
'
Sub Reg_UnReg
Const TKey = "HKCR\Microsoft Internet Mail Message\shell\"
Const SKey = "MakeMail", sMenu = "MakeMail(&M)"
Dim sCmd, EN
sCmd = "mshta """ & document.urlunencoded & """ %L"
With WS
On Error Resume Next
.RegRead TKey & SKey & "\": EN = Err.Number
On Error GoTo 0
If EN Then
.RegWrite TKey, SKey
.RegWrite Tkey & SKey & "\", sMenu
.RegWrite Tkey & SKey & "\command\", sCmd
.PopUp "Added to context menu.", 1,"Message"
Else
.RegDelete Tkey & SKey & "\command\"
.RegDelete Tkey & SKey & "\"
.RegWrite TKey, ""
.PopUp "Deleted from context menu.", 1,"Message"
End If
End With
window.close
End Sub
/script/headbody onload=Main/body/html

For plain text format, see this post.
" eml files read-only"


--
Miyahn (Masataka Miya****a) JPN
Microsoft MVP for Microsoft Office - Excel(Jan 2006 - Dec 2006)




  #9  
Old April 28th 06, 05:24 AM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
Miyahn
external usenet poster
 
Posts: 39
Default Changes to eml handling?

"joosie" wrote in message
Miyahn I would like to give this a try but I don't understand what I need to
do. Would you be able to explain a bit further. I am fairly good with
computers but I don't know what the HTA register is or what you mean in this
paragraph:

If you run the HTA by double clicking, the HTA register itself to
the context menu of eml files and set the menu as default.
After that, if you double click the eml file which contains 'X-Unsent: 1',
"Compose Message" window will open as before.


The HTAs are 'HTML Applications' hosted by mshta.exe .
See this MSDN article.
"Introduction to HTML Applications (HTAs)"
http://msdn.microsoft.com/library/de...taoverview.asp

My HTA add new context menu to *.eml files and set the menu
as default when invoked without parameter(run through double
clicking).
So after that if you double click any eml file, this new menu
will be invoked and run my HTA with the path of the eml file as
a parameter.

--
Miyahn (Masataka Miya****a) JPN
Microsoft MVP for Microsoft Office - Excel(Jan 2006 - Dec 2006)


  #10  
Old April 28th 06, 02:08 PM posted to microsoft.public.windows.inetexplorer.ie6_outlookexpress
joosie
external usenet poster
 
Posts: 4
Default Changes to eml handling?

This works wonderfully but when I envoke the HTA all my stationery
dissappears :-( I guess this is what you mean by it not supporting
attachements. Thanks for trying a really appreciate it... and WoW! you gave
me something to play with... I'm going to read up on HTAs now.
Thanks
Joosie

The HTAs are 'HTML Applications' hosted by mshta.exe .
See this MSDN article.
"Introduction to HTML Applications (HTAs)"
http://msdn.microsoft.com/library/de...taoverview.asp

My HTA add new context menu to *.eml files and set the menu
as default when invoked without parameter(run through double
clicking).
So after that if you double click any eml file, this new menu
will be invoked and run my HTA with the path of the eml file as
a parameter.

--
Miyahn (Masataka Miya****a) JPN
Microsoft MVP for Microsoft Office - Excel(Jan 2006 - Dec 2006)




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling calendar items in VSTO jirina42 Outlook - Calandaring 1 March 20th 06 09:47 PM
Handling Outlook COM exceptions in .Net blueturtle@walla.co.il Add-ins for Outlook 3 February 24th 06 07:53 AM
Message Handling in OE6.0 Michael Outlook Express 1 February 5th 06 03:44 AM
Event handling? mishra.basant@gmail.com Add-ins for Outlook 0 January 25th 06 02:40 PM
Event handling? mishra.basant@gmail.com Add-ins for Outlook 0 January 25th 06 02:40 PM


All times are GMT +1. The time now is 05:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Bad Credit Mortgages - Mortgages - Best Credit Cards - Payday Loans - Credit Cards