I’‘ve seen this suggested around, but didn’‘t see an implementation on the boards, so I thought I’'d try my hand at it and drop a link to it here.
The plugin source and jar files are in there.
This plugin will forward messages to a user’'s “email address” that are “away”.
“email address” is defined as either the one listed in that user’‘s vcard entry or, if that’'s missing, then the user@domain from the JID … both the To and the From are set this way.
“away” is defined as (exactly )
presenceManager.getPresence(userTo).toString().toLowerCase().indexOf(“away”) != -1
… which of course probably isn’'t the best way since this is my first stab at it
I think it’‘d be easy to translate this one line to “offline” instead of “away”… or make an admin screen to choose which to use (there’‘s no admin screen with this as there’'s nothing to configure) based upon what you really want.
We are using this for putting our cell phone’'s email address in the vcard entry and getting those notifications on our cells when we are away from the computer… constant contact is important to us.
Just thought I’'d share