MozillaZine

HeaderTools ( for TB ) ver 0.6.0 available

Announce and Discuss the Latest Theme and Extension Releases.
Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 6th, 2006, 10:17 pm

For any message...modifying a message with a label/colour clears the label ..

Labels are 'attached' to a message in the 'database' of TB.. The same database that must be rebuilt when one has a problem with a particular folder..
My extension recreates a message, then adds that message source to the end of the TB folder's file of messages ( basically, the modified message is a *new* message, as far as TB is concerned )

Because the message is a new message, the label ( which was 'attached' to the old message ) is lost.. I will see what I can do to preserve the label and flags

-Also for IMAP messages...modifying a "replied" message clears the replied status ...
Imap is a strange kettle of fish.. when I add the modified message source to the IMAP store, all status bits are reset.. I will see what I can to do preserve status bits

Shortcut button ? Prolly not since there are way too many options, as in
Add > X-Tag: friends or
Add > X-Tag: family or
Add > X-Tag: boss or
Add > X-Tag: jokes or
Add > X-Tag: friends,jokes

or

Remove > X-Tag: jokes

I am working on a menu option dropdown like

Tools>>Add X-Tags > Jokes and
Tools>>Add X-Tags > Jokes&Family

The command behind those menu options is

HTglobals.MMH_Main('X-Tags', 'friends&jokes', 'add'); or
HTglobals.MMH_Main('X-Tags', 'boss', 'add'); or
HTglobals.MMH_Main('X-Some_other_label', 'friends&jokes', 'remove'); or

One could easily add that/those commands to another extension to provide the button(Buttons!) or quick key(keyConfig)

it will be possibly to modify a selection of messages at once.

Regarding edit raw contents.. Totally possible and easy ... BUT *way* too much can go wrong.. also the editor widget built into TB can wreak havok with special characters/character codes..

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 6th, 2006, 10:30 pm

zyzzyvas ,

What version of TB are you running ?
( newer versions preserve labels and flagging )

daviswj
 
Posts: 12
Joined: October 27th, 2004, 10:37 am

Post Posted February 6th, 2006, 11:20 pm

Updated to HeaderTools050. Attempted to add a "References" line to move an email into its appropriate thread.

Headers before:

From - Mon Feb 06 22:57:48 2006
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
Message-ID: <43E836CD.3010402@comcast.net>
Date: Mon, 06 Feb 2006 22:57:33 -0700
From: Bill Davis <daviswj@comcast.net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: Addresee Removed
Subject: Re: Sodium
Content-Type: multipart/related;
boundary="------------010607020608020605090202"

This is a multi-part message in MIME format.
--------------010607020608020605090202
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Headers After:

From - Mon Feb 06 22:57:48 2006
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
Message-ID: <43E836CD.3010402@comcast.net>
Date: Mon, 06 Feb 2006 22:57:33 -0700
From: Bill Davis <daviswj@comcast.net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: Removed
Subject: Re: Sodium
Content-Type: multipart/related;
References: <43E7F71B.7020401@comcast.net>

This is a multi-part message in MIME format.
--------------010607020608020605090202
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

... the email moved to the proper thread all right, but now the entire body of the message has disappeared. Ouch.

Bill Davis

zyzzyvas

User avatar
 
Posts: 16
Joined: February 3rd, 2006, 10:57 pm

Post Posted February 6th, 2006, 11:33 pm

Thanks for the detailed response. To follow-up:

-I'm using TB 1.5.0.1. I just tested again and you are right...for local messages, the labels are retained. I see now the problem is only with IMAP messages.

-As for the label and status flags, I can imagine it might be a bit tricky. I know that in local folders, they are all stored in the X-Mozilla-Status and Status2 headers (encoded in some numeric blocks). However on IMAP those headers are gone and Status:, X-Status:, and X-Keywords (for labels) do the job. For instance "X-Status: A" means replied and "X-Keywords: $Label1" is for label 1. If you can adjust these headers then it should be possible to restore the original status perfectly. Easier said than done, I bet.

-When I said "shortcut button" I really meant exactly what you indicate...some preset header modifications for common tags or changes. That will be fantastic.

-RE: raw contents...I can see the potential for trouble, but I will continue to dream :)

Lee_Dailey

User avatar
 
Posts: 14194
Joined: July 27th, 2004, 4:33 pm
Location: milky way galaxy, sol system, terra, north america, usa, tx, bedford

Post Posted February 7th, 2006, 12:10 am

ausdilecce wrote:Just quickly..

Looked at your link and corresponding request... Looks doable...

Patience, my friend


howdy ausdilecce,

my patience is yours for the asking! [*grin*] the only time i ever really got agitated was when you dropped out and didn't even respond to a pm with " go away! i'm busy!" [*grin*]

the reason i asked about the quick-x-tags thing is to allow what the tbird "label" really otta be. a user definable and extensible list of tags. my ideal in that would be the way itunes does grouping ... very nifty. lets me tag my music with SO many personally meaningful ways.

rock surf instrumental guitar celtic vocal female rowdy sax lounge flute harmonica blues etc ... um, er, not all at the same time! [*grin*]

what i want from ht is the ability to re-apply the last few tags quickly. just remembering what was added in the last 3 to 5 such changes would be dandy. does make for a bit of a problem to track what those changed were ... and then add them to the list. [*sigh ...*] not simple ...

take care,
lee

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 7th, 2006, 12:32 am

Please find the latest version at

www.supportware.net/mozilla/HeaderTools051.xpi

after installation, Have a look at new menu items in Tools... after Change Header Details.. ( for Add X-Tags... and Remove X-Tags... ) ...
These menu itmes are configurable in the extension's options page.. in the "New Header Defualts" textbox..

Separate each header and value group with a comma
separate the header name and value group with a >
separate the header values in the header group with a :

so
X-Tags>friends:jokes:TODO:office&jokes,X-Catagories>this:that:the:other,X-Style>cool:uncool:hip

will give you 3 "add" menu items and 3 "remove" menu items each with its own value group
Tools..Add X-Tags...friends
Tools..Add X-Tags...jokes
Tools..Add X-Tags...TODO
Tools..Add X-Tags...office&jokes
Tools..Add X-Catagories...this
Tools..Add X-Catagories...that
Tools..Add X-Catagories...the
Tools..Add X-Catagories...other
Tools..Add X-Style...cool
Tools..Add X-Style...uncool
Tools..Add X-Style...hip
Tools..Remove X-Tags...friends
Tools..Remove X-Tags...jokes
etc

Just a note... in the example above with office&jokes.. The underlying code will automatically replace & with , so that the scheme is preserved.. do NOT separate office&jokes with a comma as that means that jokes will be a new header and not just a possible header value

Also have a look in Header Tools' extension options .. ( ignore and order )
Last edited by Old Ausdilecce on February 7th, 2006, 2:00 am, edited 1 time in total.

Lee_Dailey

User avatar
 
Posts: 14194
Joined: July 27th, 2004, 4:33 pm
Location: milky way galaxy, sol system, terra, north america, usa, tx, bedford

Post Posted February 7th, 2006, 1:46 am

howdy ausdilecce,

thanks for the new version to play with! [*grin*]

i hafta get offline for a while, but i will play with it soon and drop off some feedback here.

take care,
lee

Lee_Dailey

User avatar
 
Posts: 14194
Joined: July 27th, 2004, 4:33 pm
Location: milky way galaxy, sol system, terra, north america, usa, tx, bedford

Post Posted February 7th, 2006, 1:57 am

howdy ausdilecce,

there seems to be something wrong with the linked file.

i get a zero byte download. tried ff, ie and freedownload manager. all get the same result. cleared the cache for all = same result. cleaned out my temp folder = same result.

extended properties extension reports "missing" for file size.

take care,
lee

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 7th, 2006, 2:02 am

Sorry Lee..

It seems my server took a dump.. it should be a good file now

Lee_Dailey

User avatar
 
Posts: 14194
Joined: July 27th, 2004, 4:33 pm
Location: milky way galaxy, sol system, terra, north america, usa, tx, bedford

Post Posted February 7th, 2006, 4:31 am

howdy ausdilecce,

kool dude! [*grin*] got it an will play a bit before commenting. thanks!

take care,
lee

TobyK
 
Posts: 103
Joined: December 4th, 2004, 12:32 am

Post Posted February 7th, 2006, 5:00 am

I'm sorry to tell, but multiline header get messed up:

Code: Select all

original:

Received: by mini004.webpack.hosteurope.de running Exim 4.51 using esmtp
   from xi.mc1.hosteurope.de ([80.237.128.241])
   id 1F6Ojc-0001pG-Hf; Tue, 07 Feb 2006 10:02:04 +0100
Received: by xi.mc1.hosteurope.de running Exim 4.60 using esmtp
   from smtp05.web.de ([217.72.192.209])
   id 1F6Ojb-0005Xr-VX; Tue, 07 Feb 2006 10:02:04 +0100
Received: from [217.247.94.9] (helo=test)
   by smtp05.web.de with asmtp (WEB.DE 4.105 #340)
   id 1F6Oja-0006KV-00; Tue, 07 Feb 2006 10:02:03 +0100

-->

after using headertools

Received: by mini004.webpack.hosteurope.de running Exim 4.51 using esmtp
Received: by xi.mc1.hosteurope.de running Exim 4.60 using esmtp
Received: from [217.247.94.9] (helo=test)

#######

original:


Cc: "test" <test@test.com>,
   "test2" <test2@test.com>

-->

after using headertools

Cc: "test   " <test@test.com>,

#######

original:

Content-Type: multipart/alternative;
   boundary="----=_NextPart_000_0099_01C62BCD.9A5C7B40"

-->

after using headertools

Content-Type: multipart/alternative;

######

original:

X-HE-Spam-Report: Content analysis details:   (0.1 points)
   pts rule name              description
   ---- ---------------------- --------------------------------------------------
   0.1 TW_ZF                  BODY: Odd Letter Triples with ZF
   0.0 HTML_MESSAGE           BODY: HTML included in message

   
-->

after using headertools

X-HE-Spam-Report: Content analysis details:   (0.1 points)

Old Ausdilecce
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 7th, 2006, 5:32 am

TobyK,

You think you can give me a bit more info ?

Like, when going from

<code>
original:

Cc: "test" <test@test.com>,
"test2" <test2@test.com>

</code>
To
<code>
after using headertools

Cc: "test " <test@test.com>,
</code>
What OS do you have ?
What did you use .. tools...Change Header Details ? or ...
What did YOU put into the textbox when changing the value.. what was the textbox value before ?

Basically, a *bit* of background and overall helpfulness could help...

How the heck did you change "Received" headers anyway? or did you ?

All in all, I was left with a fairly sour taste in my mouth after reading your "post"..
You *do* know I am doing this in my (*very* limited) free time right ?

Lee_Dailey

User avatar
 
Posts: 14194
Joined: July 27th, 2004, 4:33 pm
Location: milky way galaxy, sol system, terra, north america, usa, tx, bedford

Post Posted February 7th, 2006, 6:04 am

howdy ausdilecce,

a few problems ...

[1] the rt-clk menu item "change header details" [chd] does nothing and this ...
"
Error: newHeaderValue has no properties
Source file: chrome://hdrtools/content/hdrtools.js
Line: 247
"

... shows in the error console when i rt-clk and select chd

[2] the tools/change-header-details menu item DOES open the dialog like rt-clk once did

[3] "new menu items in Tools... after Change Header Details.."
my menu shows ONLY "Change Header Details" with no added items nor any flyout with new items

[4] other errors
- selected plaintext msg with rtf attachment
- using the menu item, i added "x-tags" with a value of "one"
- got this on the error console
"
Error: folder has no properties
Source file: chrome://hdrtools/content/hdrtools.js
Line: 160
"
- closed chd
- using view-source confirmed "X-Tags: one" was added immediately AFTER the last pre-existing x-header
- opened chd again and x-tags = "one" was shown
- added "two" to the end of the x-tags line
got the same "folder has no properties" in the error console.
- closed chd
- opened chd and x-tags = "one two"
- closed chd

have no idea what that error means. [*grin*] header line insert & value edit/add both seem to be working.

[5] i did not fiddle with any settings in the options dialog.
do you want me to do anything with the two debug options? i can post the resulting file[s] here if that's what those checkmarks do.

let me know when you get to it ... [*grin*]

take care,
lee

Lee_Dailey

User avatar
 
Posts: 14194
Joined: July 27th, 2004, 4:33 pm
Location: milky way galaxy, sol system, terra, north america, usa, tx, bedford

Post Posted February 7th, 2006, 6:23 am

howdy ausdilecce,

after reading the post by TobyK, i went and looked at my OTHER headers. [*grin*]

_every_ header that had more than one line when displayed in view-source was truncated to ONE line. here's the variable names from the lines that were truncated ...

Authentication-Results:
Received: [several of these, as expected [*grin*]]
X-OB-Received:

btw, what IS the right name for the part BEFORE the ":"? i think of it as a variable:value pair, but that's pro'ly not really the right term for the left hand part.

did the email i sent to you via my free yahoo mail account get to you? it hasn't bounced back to me yet but it's been a LONG time - more than a day - but it IS yahoo ... [*grin*] i have a gmail account that i can try to reach you thru if ya want the before and after files from playing with the current version of headertools.

take care,
lee

Lee_Dailey

User avatar
 
Posts: 14194
Joined: July 27th, 2004, 4:33 pm
Location: milky way galaxy, sol system, terra, north america, usa, tx, bedford

Post Posted February 7th, 2006, 6:26 am

howdy ausdilecce,

[*blush*] here's my setup info ...

Generated: Tue Feb 07 2006 07:25:44 GMT-0600 (Central Standard Time)
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051201 Thunderbird/1.5
Build ID: 2005120115

Enabled Extensions: [27]
- AboutConfig 0.6
- accountex [multilingual] 0.2.2
- addressContext 0.7
- Auto Copy 0.6.1
- Buttons! 0.5.1
- Change quote and reply format 0.4.6
- ConfigDate 0.3.3
- Console² 0.3.2
- Contacts Add BCC button 0.0.3
- Edit Config Files 1.5.8
- FlashGot 0.5.9.99
- GMailUI 0.4
- header scroll extension 0.3
- MboxImport 0.5.1
- More Button Plus 0.3
- MoreColsForAddressBook 0.2.6
- MR Tech Local Install 4.0
- No New Window on Double Click 0.2.3
- QuickMenuMC 0.9.2.1
- SendTools 0.4.2
- Stylish 0.2.1
- Talkback 1.5
- TB Header Tools Extension 0.5.1
- TripleSelect 1.7
- URL Link 1.06.6
- View Headers Toggle Button 1.5.2
- ViewSourceWith 0.0.7.9

Installed Themes: [1]
- Thunderbird (default)

take care,
lee

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 3 guests