Tom Lane | 1 Aug 2003 05:13
Picon

Re: Memory leak in 2.6.3?

"Lawrence R. Rogers" <lrr <at> cert.org> writes:
> I'm running RedHat 9 and noticed that 2.6.3 is growing and growing and 
> growing. I upgraded to tcl/tk 8.4.4 and exmh is not growing as quickly, but 
> still growing.

Check the list archives; this has come up before.  I think it's got
something to do with poor font management in bleeding-edge Tcl versions.

			regards, tom lane
bergman | 7 Aug 2003 17:42
Picon
Favicon

hooks into Address DB?

I'm looking for a way to programmatically delete entries in the exmh address 
database. Specifically, I've got a shell script that I call when I want to flag 
a message as spam (it blacklists the address within spamassassin, sends the 
message through spamassassin's Bayesian learning filter, and the refiles the 
message to a junk folder). Since the address has already been saved to the exmh 
database (I automatically save addresses), I also want to remove that address 
from the database.

I could filter it out at the shell level with something like:
	cp ~/.exmh/exmh_addrs ~/.exmh_addrs.bak 
	grep -v spammer <at> spam.com < ~/.exmh/exmh_addrs.bak > ~/.exmh/exmh_addrs

However, I don't know if the internal address database access methods have any
kind of locking (ie, could my external changes conflict with access from
within exmh).

When I view the exmh log while deleting an address, all I see is:
	Address DB: Deleted 500_Dollars_Cash <at> opmnetwork.net
but I don't see a Tcl routine that's called to do the work.

Mark

----
Mark Bergman		
Hal DeVore | 7 Aug 2003 19:57
Picon
Favicon

Re: hooks into Address DB?


>>>>> On Thu, 7 Aug 2003, "bergman" == bergman <at> panix.com wrote:

  bergman> However, I don't know if the internal address database
  bergman> access methods have any kind of locking (ie, could
  bergman> my external changes conflict with access from within
  bergman> exmh).

The whole list is loaded when it's needed and held in memory as 
a simple Tcl array indexed by the email address.  The file 
format is tailored to allow the file to be read using the Tcl 
"source" command.

All it takes to delete an entry is :

  unset addr_db(user <at> domain.tld)

Twiddling the file while exmh is running is likely to have no 
net effect as I _believe_ it will be overwritten when exmh exits.

--Hal
bergman | 7 Aug 2003 20:11
Picon
Favicon

Re: hooks into Address DB?


In the message dated: Thu, 07 Aug 2003 12:57:46 CDT,
The pithy ruminations from Hal DeVore on 
<Re: hooks into Address DB? > were:
=> 
=> 
=> >>>>> On Thu, 7 Aug 2003, "bergman" == bergman <at> panix.com wrote:
=> 
=>   bergman> However, I don't know if the internal address database
=>   bergman> access methods have any kind of locking (ie, could
=>   bergman> my external changes conflict with access from within
=>   bergman> exmh).
=> 
=> The whole list is loaded when it's needed and held in memory as 
=> a simple Tcl array indexed by the email address.  The file 
=> format is tailored to allow the file to be read using the Tcl 
=> "source" command.

Thanks. That's what I needed to know.

=> 
=> All it takes to delete an entry is :
=> 
=>   unset addr_db(user <at> domain.tld)

Hmmm... Is there a way to call that from outside exmh (ie, in a shell script)? 
If not, is the From: address available as a Tcl variable while viewing the 
current message, or do I have to parse the message to extract that address 
before it can be unset?

(Continue reading)

Pierrick PONS | 8 Aug 2003 12:25
Picon

pb with right-click

Hi all,

I use exmh-2.5-1 and I have new problems when I read a mail with an 
attachement.
When I do right click to save the file or doing anything else, exmh give me 
this error : tkMenuUnp

I can't click anywhere on exmh because it doesn't respond. Exmh is not frozen 
like receiving an html mail.

I think these problems occured since I have updated my debian. I'm on sarge.

does someone do have an idea ?

Thanks in advance

Pierrick
Hal DeVore | 9 Aug 2003 16:21
Picon
Favicon

Re: hooks into Address DB?


>>>>> On Thu, 7 Aug 2003, "bergman" == bergman <at> panix.com wrote:

  bergman> Hmmm... Is there a way to call that from outside exmh
  bergman> (ie, in a shell script)?

Sure.  Using the Tcl "send" command.  You can find a few 
examples of using the send command in the misc directory.

>>>>> On Thu, 7 Aug 2003, "bergman" == bergman <at> panix.com wrote:

  bergman> If not, is the From: address available as a Tcl
  bergman> variable while viewing the current message, or do I
  bergman> have to parse the message to extract that address
  bergman> before it can be unset?

The addr.tcl file contains this code which saves the From 
address:

proc Hook_MsgShowAddr {path headervar } {
    upvar $headervar header
    global addr_db

    set addr_db(last_seen) [list $path $header(0=1,hdr,from) $header(0=1,hdr,date)]
    if {! $addr_db(enabled)} {
        return
    }
    Addr_Save [MsgParseFrom $header(0=1,hdr,from)] $path \
            $header(0=1,hdr,from)       $header(0=1,hdr,date)
}
(Continue reading)

Brent Welch | 11 Aug 2003 17:29
X-Face
Favicon

Re: hooks into Address DB?


>>>Hal DeVore said:
 > 
 > 
 > >>>>> On Thu, 7 Aug 2003, "bergman" == bergman <at> panix.com wrote:

 >   bergman> If not, is the From: address available as a Tcl
 >   bergman> variable while viewing the current message, or do I
 >   bergman> have to parse the message to extract that address
 >   bergman> before it can be unset?
 > 
 > The addr.tcl file contains this code which saves the From 
 > address:
 >
 > It's left as an exercise for the reader to extract the From
 > address and store it into your own global variable for later use.
 > :)

It turns out that the global variable "address" is the current From header.
This is icky, but true.

--
Brent Welch
Software Architect, Panasas Inc
Delivering the World's Most Scalable and Agile Storage Network
www.panasas.com
welch <at> panasas.com
Brent Welch | 11 Aug 2003 18:22
X-Face
Favicon

Re: hooks into Address DB?


>>>Brent Welch said:

 > It turns out that the global variable "address" is the current From 
header.
 > This is icky, but true.

To be precise, it is the address part of the From header, so it's
just what you want.

--
Brent Welch
Software Architect, Panasas Inc
Delivering the World's Most Scalable and Agile Storage Network
www.panasas.com
welch <at> panasas.com
Brent Welch | 12 Aug 2003 00:57
Favicon

RE: [Q] exmh 2.6.3 slowing down (fwd)

I don't believe this made it through to the list.
	Brent
Picon
From: Jeff Hobbs <jeffh <at> ActiveState.com>
Subject: RE: [Q] exmh 2.6.3 slowing down
Date: 2003-07-24 23:30:39 GMT
I tried to respond to this before, but the exmh list moderation must
have eaten my post.

> >>>>> On Sat, 12 Jul 2003, "Dick" == Dick Wesseling wrote:
>   Dick> I do not know in which version of Tk this appeared, but that
change
>   Dick> killed all of my Tk apps running on remote displays. The problem
>   Dick> is this, that this patch to tk8.4.1/unix/tkUnixFont.c introduces a
>   Dick> round trip to the X server for every string drawm. I have removed
>   Dick> it from my copy of Tk and all of suddent things worked as before:

> Is someone going to give this info to the tk folks ?

This has already been corrected for the Tk 8.4.4 release that went
out earlier this week.  The test itself is necessary to prevent a
possible crash from overlong text strings, but I've just hardwired
in a limit until a better way to use the known cached width of the
widget can be used.
(Continue reading)

Mattias.Borell | 12 Aug 2003 15:01
Picon
Picon

Re: Cite problem

Don't know if this was properly solved or not, but it's important
that you have Preferences/Quoting/Include headers set to 'On' if you
want to use the cite-scripts builtin functionality to extract
the sender info from the quote-file.

As I've recently switched both Hardware, OS & exmh-version, I'm not
really sure if this is a changed default-setting or something I've just
set wrongly while using other ways to quote.

Cheers,

/Mattias

Gmane