[JDEV] Jabber Message Expiration: "jabber:x:expire"

Jared Rhine jared at wordzoo.com
Tue Feb 6 12:54:48 CST 2001


[Citation date: Tue, 06 Feb 2001 08:51:23 -0700]

>>>>> Peter == Peter Saint-Andre <jdev at jabber.org>

    Peter> Jer told me he was adding support for it to the 1.4final
    Peter> server, but I don't think any clients support it yet.

So how do we find out for sure the status of the feature in the 1.4
server?  Are there release notes?  There are a number of features in
"draft" which appear to have made it into 1.4, but I don't think
there's an indication of which.

Such a feature would be very useful for that RSS-grabbing
psuedo-client I recently posted and would alleviate the problem of
what to do if it's accidentally left running.  "Expire all headlines
older than 3 days" kind of thing.

A 'cd /usr/local/jabber; find . -type f | xargs grep -i expire' turns
up the below, which certainly indicates some code is in place.  If it
is believed functional, I'll give it a whirl with my perl :)

-- begin --

./jsm/modules/mod_offline.c:    if((cur2 = xmlnode_get_tag(m->packet->x,"x?xmlns=" NS_EXPIRE)) != NULL)
./jsm/modules/mod_offline.c:    int expire, stored, diff;
./jsm/modules/mod_offline.c:        /* check for expired stuff */
./jsm/modules/mod_offline.c:        if((x = xmlnode_get_tag(cur,"x?xmlns=" NS_EXPIRE)) != NULL)
./jsm/modules/mod_offline.c:            expire = j_atoi(xmlnode_get_attrib(x,"seconds"),0);
./jsm/modules/mod_offline.c:            if(diff >= expire)
./jsm/modules/mod_offline.c:                log_debug(ZONE,"dropping expired message %s",xmlnode2str(cur));
./jsm/modules/mod_offline.c:            sprintf(str,"%d",expire - diff);
./xdb_file/xdb_file.c:/* walk the table looking for stale files to expire */
./xdb_file/xdb_file.c:    if(timeout > 0) /* 0 is expired immediately, -1 is cached forever */
./jabberd.src/lib/lib.h:#define NS_EXPIRE    "jabber:x:expire"
grep: ./jabber.pid: Permission denied
./aim-transport/src/.#auth.c.1.25:                              log_debug(ZONE, "[AIM] unlinked a buddy that has expired\n");

-- end --

-- jared at wordzoo.com

"To go outside the mythos is to become insane...." -- Robert Pirsig




More information about the JDev mailing list