as I am in the works of porting some filters to the new
1.14 spoolfile specs, I was thinking a file inside
MAIL_ROOT exposing the current XMail version would come
in handy when determing what version of XMail a filter or
another external script runs under.

Much may happen in the future and this would pose a
good way from a script's point of view to deal with
whatever compability issues that may arise over versions.

Either this file could be distributed with the dist
or even better created by XMail at startup making sure
an old one don't get stuck after an upgrade.


see pseudo code below and you get what I mean..

---
#(whatever filter)

$XMAIL_VERSION = `cat $ENV{MAIL_ROOT}/VERSION` ;

if $XMAIL_VERSION >= 2.xx
  do stuff the hot way
else $XMAIL_VERSION > 1.yy
  do stuff in yesterday's manner
else 
  do stuff like in the old days
---



my 2 cents
/thomas

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to