Hi !
Can anyone here recommend good e-mail parsing library ?
I have to write a program that scans e-mail message piped to it on STDIN.
Most libraries I've found parses e-mail from file building a message part
tree in RAM, or even loading whole message into RAM. I'd like to avoid such
excessive memory usage, thus I'm looking for a library with
"SAX-like" (comparing to XML parsers) API, that is, a library that would
call my functions while going through the stream, reaching headers, part
begginigs/ends etc.
Aby hints ?
Regards,
PW 1 1329 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: |
last post by:
I want a binnary file to my aplicattion, but py2exe don't match the xmll.sax module.
the py2exe shows this errors:
warning: py2exe: ***************************************************************
**********
warning: py2exe: * The following modules were not found:
warning: py2exe: * xml.sax
warning: py2exe: * win32con
warning: py2exe: * pywintypes
|
by: David Dorward |
last post by:
I'm attempting to read an XHTML 1.1 file, perform some DOM manipulation,
then write the results to a different file.
I've found myself rather stuck at the first hurdle.
I have the following:
from xml.dom.ext.reader import Sax2
reader = Sax2.Reader()
f = open('dorward.me.uk/sitemap.html', 'r')
|
by: Thomas Guettler |
last post by:
Hi!
What are the difference between xml.parsers.expat
and xml.sax?
Up to now I used xml.sax.make_parser and subclass
from ContentHandler.
I think xml.sax.make_parser uses expat as default.
Why should I want to use xml.parsers.expat?
|
by: Erland |
last post by:
Hi all,
I am new to .NET and i am about to start learning SAX, DOM and C# in
parallel :-)
My questions is : if i want to learn DOM, SAX using C# then what is the
good starting point. Which namespaces i should look for DOM and SAX in
..NET ? Any other pointers and/or web resources will be highly
appreciated.
If anything else comes to your mind regarding DOM, SAX and C# then
|
by: Jeff Calico |
last post by:
I have 2 XML data files that I want to extract data from simultaneously
and transform with XSLT to generate a report. The first file is huge
and when XSLT builds the DOM tree in memory, it runs out of space.
I only need a few branches of elements from the original XML, so I am
seeking a recomended way of building a DOM for XSLT of only the
elements
that I need. I'm writing a Java application that invokes Xalan, and
reading up on SAX...
| |
by: Hari Sekhon |
last post by:
I've written an xml parser using xml.sax which works most of the time
but often traces back when trying to read a file. The output of the
traceback is below:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py",
line 271, in run
main()
File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py",
line 502, in main
|
by: Edward K. Ream |
last post by:
Hi. Presumably this is a easy question, but anyone who understands the sax
docs thinks completely differently than I do :-)
Following the usual cookbook examples, my app parses an open file as
follows::
|
by: erik_midtskogen |
last post by:
Hi Folks,
I'm writing a general-purpose HTML screen-scraping framework in Java
(scrape new web sites without writing new code, yada yada...), and I
want to use the JAXP DOM api along with XPath and XSLT for most of my
business logic. I actually hope to make this an open-source project if
I can ever get it to some reasonable level of usability.
My problem is that, since the slurry pumped out by most web sites bears
only the faintest...
|
by: blazedaces |
last post by:
Ok, so you know my problem, java is running out of memory reading with SAX, the event-based xml parser intended more-so than DOM for extremely large files. I'll try to explain what I've been doing and why I have to do it. Hopefully someone has a suggestion...
Alright, so I'm using a gps-simulation program that outputs gps data, like longitude, lattitude, altitude, etc. (hundreds of terms, these are just the well known ones). In the newer...
|
by: goldtech |
last post by:
SAX XML Parse Python error message
Hi,
My first attempt at SAX, but have an error message I need help with.
I cite the error message, code, and xml below.
Be grateful if anyone can tell me what the fix is.
Thanks.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |