Merchant Archive

Thread: Parsing /mailSave's??

tuta23
Sat Nov 22, 2003 8:40 pm
#1

All,


Does anyone have a useful tool for parsing vendor/bazaar sales yet? I would like to get at this information and keep track, but this is not in my skill set. If so, would you mind sharing?


Right now it is still pencil and paper for me!


Thanks!

DocSavag
Sat Nov 22, 2003 10:45 pm
#2






tuta23 wrote:

All,


Does anyone have a useful tool for parsing vendor/bazaar sales yet? I would like to get at this information and keep track, but this is not in my skill set. If so, would you mind sharing?


Right now it is still pencil and paper for me!


Thanks!






I'm playing with a little something but it isn't ready for prime time quite yet.






----------------------------------
Chataka Windae
Rifleman/Combat Medic
CEO, Windae Enterprises
Mesric Sanctuary Founder



Ewach
Mon Nov 24, 2003 9:56 am
#3






DocSavag wrote:
I'm playing with a little something but it isn't ready for prime time quite yet.




I've only given the files a cursory look and have not started anything yet.Have you reverse engineered the date field yet?


If so, please post here how to decode the date/time information.


Thanks.




SWG Lexicon: "Every Player" Means "Except Crafters"



Ewach - Founder of Travelers Respite on Sunrunner
Located halfway between Anchorhead and Mos Eisley (2180, -4684)
Visit my Shop at (2030, -4660)
DocSavag
Mon Nov 24, 2003 2:03 pm
#4

I wrote mine inVB because I can quickly develop the code and test it. I'm not opposed to helping with a larger project but I don't have any interest in writing anything complex. I mainly just wanted an import routine to import into an ODBC database (in this case I am currently using Access but it could be easily converted to just about anything that windows can handle as an odbc connection string.)






----------------------------------
Chataka Windae
Rifleman/Combat Medic
CEO, Windae Enterprises
Mesric Sanctuary Founder



Quinian
Mon Nov 24, 2003 2:24 pm
#5

A great solution would be a web-based app that everyone can access. The user would upload a zip file containing all of the /mailsave files they want to parse. Press the "GO" button and get a *.csv/*.txt file mailed to you (or sent to the user somehow). Whatever the parser is coded in wouldn't matter.

I have the code complete, the server, I just need the bandwidth, let me check my limitations.
Haruspex77
Tue Nov 25, 2003 1:43 am
#6






DocSavag wrote:


[regarding a /mailsave tool] I'm playing with a little something but it isn't ready for prime time quite yet.




Cool! I had been thinking about doing that too, but it has been suffering fromfeature creep in my mind and the project has been growing out of bounds before I wrote any code. Some of the features that I felt I needed to build were:


* Decent mail client display to screen with folder capabilities.


* Compressed storage into a single file (or even a zip file)


* Export of buy and sell messages into a cdf for spreadsheet processing.


* Selection of files to export


* Prevent duplicates in compressed form even if same mail saved more than once


As a result my estimated coding time has grown outside my likely time to complete anything in a reasonable timeframe.


Any interest in making it an open-source project that I could contribute to? I prefer Visual C++ development for this application, but could handle anything with a reasonably priced development environment.



Quinian
Tue Nov 25, 2003 1:51 am
#7

I have something that I've been using, works great, seperates between vendor and bazaar sales and regular "hey, what's up?" emails. It even parses out the left over color tags that some items are named with. But I will need to add a few things before distributing it. It is written in perl.

Oh, btw, it creates one flat delimited file that can be loaded into a database (Access, Oracle, MySQL, etc.) or with Excel. Customer name, City, Planet, Item, Quantity, Price, Data, Time are all seperated out.
Goff_McMerrii
Tue Nov 25, 2003 3:24 pm
#8







Ewach wrote:


I've only given the files a cursory look and have not started anything yet.Have you reverse engineered the date field yet?


If so, please post here how to decode the date/time information.


Thanks.





Q. How do I view the contents of a TIMESTAMP fieldcreated by anSQL Server?

A. You don't. Timestamp columns, contrary to what the name implies, are NOT date/times. They are just hex values which are guaranteed by SQL Server to be unique within the database. In normal circumstances the values are monotonically increasing.



Goff McMerrii
Miner

Goff_McMerrii
Tue Nov 25, 2003 4:06 pm
#9

Ignore above post by me. That was directly taken from the SQL manual. "Usually" timestamps have nothing to do with time, nor dates. In this case however, the timestamp is not a unique identifier but rather a date/time. In the mail-file format the ID is actually the Timestamp (when following the correct terminology) and what is called Timestamp is actually date/time.


To convert it to a readable date/time us the following function (for ASP, should be valid for VBScript aswell):


FormatDateTime(value+2209161600)/60/60/24,2)


Where value is the date/time value.



Goff McMerrii
Miner

Page 1 of 1
Previous Next