Duplicating The Use Of "X-Unsent: 1"

Discussion of general topics about Mozilla Thunderbird
Post Reply
User avatar
D.Dancer
Posts: 76
Joined: February 5th, 2006, 1:09 pm

Duplicating The Use Of "X-Unsent: 1"

Post by D.Dancer »

Many years ago, I discovered this simple headers:

Code: Select all

X-Unsent: 1
If included in a file that the default mail application was set to open, would cause the mail application to open the message in "draft mode", where as you could edit the message more, or add more people to the "To:" field, etc, etc, before hitting the Send button.

That wonderful time saver enabled me to use:

Code: Select all

ShellExecute 0, "Open", Filename, "", "", 1
In my VBA applications to send a message file that was constructed with the VBA.

Alas, TB does not honor that header. Bummer.

It's used in hundreds of Excel workbooks which need to generate a custom HTML formatted message for the SendTo.

Serious bummer.

http://kb.mozillazine.org/Command_line_ ... hunderbird
Okies, I could do that.

https://msdn.microsoft.com/en-us/librar ... s.85).aspx
I could also do that.

But not now, I need a quick solution. Mainly because I need something that I can drag and drop, or use a secondary interceptor within the "open" command for the ShellExecute to handle the conversion from .EML to command line formatting or something.

But the biggest issue is that I worked a nice little (HA!) macro that took a single worksheet and subdivided it into several .CSV files, IN MEMORY, converted them to Mime64, and built an email with that.
(Code available to any who want to see how it works.)

Oh boi.

Short of hacking the registry or doing weird (and possibly unacceptable) things to the OS, any other suggestions?
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Duplicating The Use Of "X-Unsent: 1"

Post by tanstaafl »

So you are trying to open a .eml file that has a "X-Unsent: 1" header in Thunderbird, and get it to display that message in the compose message window? That's pretty Microsoft specific behavior for a cross platform application. Thunderbird doesn't treat .eml files as first class citizens. Thunderbird doesn't rely upon the windows registry as much as most Windows applications, which rules out many registry hacks.

If its too time consuming to modify the arguments to ShellExecute to use the command line arguments that Thunderbird supports that also rules out using SimpleMAPI calls as an alternative. There is a ExternalEditor add-on at http://globs.org/articles.php?pg=2&lng=en . See the second comment for a link to the latest version.

I did find https://bugzilla.mozilla.org/show_bug.cgi?id=166541 (Add support for X-Unsent property in .eml files) . A duplicate bug report (with its own discussion) is at https://bugzilla.mozilla.org/show_bug.cgi . See if the discussion in those bug reports gives you any ideas. I found a reference to an add-on at https://addons.mozilla.org/en-US/firefo ... t-support/ that claims to do what you want for Thunderbird. Its not clear why its listed under Firefox add-ons.

https://addons.mozilla.org/en-US/thunde ... rt/?src=ss seems to be what you want. See https://github.com/lieser/X-Unsent_support and https://github.com/lieser/X-Unsent_support/releases if there are issues with it.
User avatar
D.Dancer
Posts: 76
Joined: February 5th, 2006, 1:09 pm

Re: Duplicating The Use Of "X-Unsent: 1"

Post by D.Dancer »

Can be found in Thunderbird's search for addons, and will install from there.

Thanks dude, this was just needed.

It's the dozens of existing calls in my system that are the ankle biters here.
Post Reply