all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BBDB] Entry decay?
@ 2002-10-01  8:21 Jonas Steverud
  2002-10-01 15:10 ` Sacha Chua
       [not found] ` <mailman.1033485128.20141.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Jonas Steverud @ 2002-10-01  8:21 UTC (permalink / raw)



Is it possible to have BBDB to automatically remove some people from
the database after some time after the last email to/from that person?

The reason I ask is that I sometimes have a prolonged dialgoe with
someone. I would then like to add them to my BBDB but as soon as that
correspondence is over, I will with 99 % certainty never again talk to
that person and I don't want to manually remove them from my BBDB -
mostly becourse I sit in front of an computer and this is an automated
task, which computers are designed for. And I'm lazy. ;-)

Are there any nice ways of solving this?

-- 
(          www.dtek.chalmers.se/~d4jonas/         !     Wei Wu Wei     )
(        Meaning of U2 Lyrics, Roleplaying        !  To Do Without Do  )

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BBDB] Entry decay?
  2002-10-01  8:21 [BBDB] Entry decay? Jonas Steverud
@ 2002-10-01 15:10 ` Sacha Chua
       [not found] ` <mailman.1033485128.20141.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Sacha Chua @ 2002-10-01 15:10 UTC (permalink / raw)


Jonas Steverud <d4jonas@dtek.chalmers.se> writes:

> Is it possible to have BBDB to automatically remove some people from
> the database after some time after the last email to/from that person?
> mostly becourse I sit in front of an computer and this is an automated
> task, which computers are designed for. And I'm lazy. ;-)

I was going to write something witty about laziness being a good
thing, but I decided to just point you to bbdb expire (first hit on
Google: bbdb expire) at http://www.esperi.demon.co.uk/nix/, which
seems to do what you want.

-- 
Sacha Chua <sacha@free.net.ph> - 4 BS CS Ateneo geekette
interests: emacs, gnu/linux, wearables, teaching compsci

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BBDB] Entry decay?
       [not found] ` <mailman.1033485128.20141.help-gnu-emacs@gnu.org>
@ 2002-10-02  7:25   ` Jonas Steverud
  2002-10-02 11:31     ` Robert Marshall
  0 siblings, 1 reply; 7+ messages in thread
From: Jonas Steverud @ 2002-10-02  7:25 UTC (permalink / raw)


Sacha Chua <sacha@free.net.ph> writes:

> Jonas Steverud <d4jonas@dtek.chalmers.se> writes:
[...]
> I was going to write something witty about laziness being a good
> thing, but I decided to just point you to bbdb expire (first hit on
> Google: bbdb expire) at http://www.esperi.demon.co.uk/nix/, which
> seems to do what you want.

Great! I did use Google to try to find something but failed horribly...

I haven't tested it yet and it will take some time before I do, but
considering that the README file says that Nix does not know if it
works on GNU Emacs, I would like to know if anyone knows if there are
some "issues" with GNU Emacs?

Thanks.

-- 
(          www.dtek.chalmers.se/~d4jonas/         !     Wei Wu Wei     )
(        Meaning of U2 Lyrics, Roleplaying        !  To Do Without Do  )

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BBDB] Entry decay?
  2002-10-02  7:25   ` Jonas Steverud
@ 2002-10-02 11:31     ` Robert Marshall
  2002-10-03 11:24       ` Jonas Steverud
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Marshall @ 2002-10-02 11:31 UTC (permalink / raw)


On Wed, 02 Oct 2002, Jonas Steverud wrote:

> Sacha Chua <sacha@free.net.ph> writes:
> 
>> Jonas Steverud <d4jonas@dtek.chalmers.se> writes:
> [...]
>> I was going to write something witty about laziness being a good
>> thing, but I decided to just point you to bbdb expire (first hit on
>> Google: bbdb expire) at http://www.esperi.demon.co.uk/nix/, which
>> seems to do what you want.
> 
> I haven't tested it yet and it will take some time before I do, but
> considering that the README file says that Nix does not know if it
> works on GNU Emacs, I would like to know if anyone knows if there
> are some "issues" with GNU Emacs?
> 

Works ok and the latest version of bbdb has this functionality 'out of the box'

Robert
-- 
Poetry's not window cleaning.
It breaks the glass.
-- Chase Twichell

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BBDB] Entry decay?
  2002-10-02 11:31     ` Robert Marshall
@ 2002-10-03 11:24       ` Jonas Steverud
  2002-10-03 17:59         ` Robert Marshall
  0 siblings, 1 reply; 7+ messages in thread
From: Jonas Steverud @ 2002-10-03 11:24 UTC (permalink / raw)


Robert Marshall <spam@chezmarshall.freeserve.co.uk> writes:

[...]
> Works ok and the latest version of bbdb has this functionality 'out of the box'

Do you mean 2.35 or 2.34? 2.34 is the latest released version and the
one I use and it lacks this functionality, 2.35 is the development
version.

-- 
(          www.dtek.chalmers.se/~d4jonas/         !     Wei Wu Wei     )
(        Meaning of U2 Lyrics, Roleplaying        !  To Do Without Do  )

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BBDB] Entry decay?
  2002-10-03 11:24       ` Jonas Steverud
@ 2002-10-03 17:59         ` Robert Marshall
  2002-10-04  8:18           ` Jonas Steverud
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Marshall @ 2002-10-03 17:59 UTC (permalink / raw)


On Thu, 03 Oct 2002, d4jonas@dtek.chalmers.se wrote:

> Robert Marshall <spam@chezmarshall.freeserve.co.uk> writes:
> 
> [...]
>> Works ok and the latest version of bbdb has this functionality 'out
>> of the box'
> 
> Do you mean 2.35 or 2.34? 2.34 is the latest released version and
> the one I use and it lacks this functionality, 2.35 is the
> development version.
> 

Sorry I got that garbled in my memory!  I have bbdb 2.34 - before that
version to use bbdb-expire you had to patch bbdb, this is no longer so.
So bbdb-expire works with bbdb 'out of the box' rather than what I said!

Robert
-- 
To preserve the silence within -- amid all the noise. To
remain open and quiet no matter how many tramp across the
parade ground in whirling dust under an arid sky.
-- Dag Hammarskjold

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BBDB] Entry decay?
  2002-10-03 17:59         ` Robert Marshall
@ 2002-10-04  8:18           ` Jonas Steverud
  0 siblings, 0 replies; 7+ messages in thread
From: Jonas Steverud @ 2002-10-04  8:18 UTC (permalink / raw)


Robert Marshall <spam@capuchin.co.uk> writes:

[...]
> So bbdb-expire works with bbdb 'out of the box' rather than what I said!

I made a change to the way it works, i don't like the idea of adding a
"permanent" field to all entries, it is mor common to have permanent
entries then expirable ones in my BBDB so I wrote the following code,
which is tested once (and worked):

;; Beginning of code

;; Since I don't want to expire all kinds of records, only those I've
;; marked for expiry, I need to add this function to
;; bbdb-expire-preservation-functions. Only records that contains the
;; bbdb-expire field and it is set to "Yes" (observe case!) is allowed
;; to be deleted. In my BBDB there are more records which are
;; permanent then there are records that are expireable, so doing this
;; with the "permanent" field is more work then using this approch.

(defun js-bbdb-expire-not-marked-for-expire-p (RECORD)
  "If RECORD does contain the bbdb-expire field and it is set to ``Yes'',
it is considered to be expireable and the function returns nil,
otherwise it returns t. The logic is slightly inversed.
Best used in bbdb-expire-preservation-functions."
  (not (string-equal "Yes" (bbdb-record-getprop RECORD 'bbdb-expire)))
  )

(add-hook 'bbdb-expire-preservation-functions
          'js-bbdb-expire-not-marked-for-expire-p)

(bbdb-expire-initialize)

;; End of code

-- 
(          www.dtek.chalmers.se/~d4jonas/         !     Wei Wu Wei     )
(        Meaning of U2 Lyrics, Roleplaying        !  To Do Without Do  )

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-10-04  8:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-01  8:21 [BBDB] Entry decay? Jonas Steverud
2002-10-01 15:10 ` Sacha Chua
     [not found] ` <mailman.1033485128.20141.help-gnu-emacs@gnu.org>
2002-10-02  7:25   ` Jonas Steverud
2002-10-02 11:31     ` Robert Marshall
2002-10-03 11:24       ` Jonas Steverud
2002-10-03 17:59         ` Robert Marshall
2002-10-04  8:18           ` Jonas Steverud

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.