AnyEvent-MSN
view release on metacpan or search on metacpan
lib/AnyEvent/MSN.pm view on Meta::CPAN
You must include everyone on your Forward List (FL), Allow List (AL) and Block List (BL). If you don't, anyone you fail to include will be removed from their respective lists. Also note that the official client does not include contacts on the RL and...
You MUST send your privacy settings (BLP command), then ADL and finally your display name (PRP command) in that order or the server will ignore your ADL. These are retrieved using the ABFindAll SOAP request.
After receiving ADL (TrId) OK, you must set your initial presence (CHG command). If you send CHG before ADL, the servers will not dispatch your presence to other clients.
=item remove_buddy
$msn->remove_buddy('buddy@hotmail.com');
The remove contacts from your lists. Note that you may only remove people from
the FL, AL and BL using this command (which makes sense, seeing as you can
also only add people to the FL, AL and BL with the L<add_contact|/add_contact>
command). Also note that the contact will not be removed from your server-side
address book - for this, you will have to use the ABContactDelete SOAP
request. ...which we don't support yet.
=back
=head1 Notes
This is where random stuff will go. The sorts of things which may make life
somewhat easier for you but are easily skipped.
=head2 Online Status
Your online status not only affects your appearance on other's buddylists, but
can change how your buddies are shown.
=over
=item NLN
Make the client appear Online (after logging in) and send and receive
notifications about buddies.
This is the default.
=item FLN
Make the client Offline. If the client is already online, offline
notifications will be sent to users on the RL. No message activity is allowed.
In this state, the client can only synchronize the lists as described above.
=item HDN
Make the client appear Hidden/Invisible. If the client is already
online, offline notifications will be sent to users on the RL. The client will
appear as Offline to others but can receive online/offline notifications from
other users, and can also synchronize the lists. Clients cannot receive any
instant messages in this state.
=item BSY
Make the client appear Busy. This is a sub-state of NLN.
=item IDL
Make the client appear Idle. This is a sub-state of NLN.
=item BRB
Make the client say they'll Be Right Back. This is a sub-state of NLN.
=item AWY
Make the client appear to be Away from their computer. This is a sub-state of
NLN.
=item PHN
Makes the client appear to be on the Phone. This is a sub-state of NLN.
=item LUN
Makes the client appear to be out to Lunch. This is a sub-state of NLN.
=back
=back
=head1 Notes
Get by with a little help...
=head2 Text Format
Messages sent and recieved may contain a special parameter defining how the
message should be displayed. The message format specifies the font (FN),
effect (EF), color (CO), character set (CS) and pitch and family (PF) used for
rendering the text message. The value of the Format element is a string of the
following key/value pairs:
=for url http://msdn.microsoft.com/en-us/library/bb969558(v=office.12).aspx
=over
=item FN
Specifies a font name. The font name must be URL-encoded. For example, to have
a font of "MS Sans Serif", you would have to specify C<FN=MS%20Sans%20Serif>.
Font names are not case-sensitive and only spaces should be URL-encoded.
URL-encoding other characters such as numbers and letters cause unpredictable
results in other clients.
According to MS, if the receiving client does not have the specified font, it
should make judgment based on the PF and CS parameters. Basically, the client
should select whichever available font supports the character set specified in
CS and is closest to the category specified in PF. If those parameters are not
present, the client should just use a default font.
=item EF
Specifies optional style effects. Possible effects are bold, italic,
underline, and strikethrough. Each effect is referred to by its first letter.
For example, to make bold-italic text, include the parameter C<EF=IB> or
C<EF=BI>. The order does not matter. Any unknown effects are to be ignored.
If there are no effects, just leave the parameter value blank.
=item CO
Specifies a font color. The value of the CO field is a six-character
hex BGR (Note that this is I<blue-green-red>, the I<reverse> of the standard
( run in 1.599 second using v1.01-cache-2.11-cpan-483215c6ad5 )