Personal information, etc. in MSN communication

xiaoxiao2021-03-06  160

This page explains how to alter your contact details, access rules, and privacy settings. This page is the counterpart to the page about retrieving personal details.Privacy SettingsGTCTo change your GTC value, send the GTC command with a TrID and the new value as the parameter. If successful, the server will return a GTC with your TrID, the new version as the first parameter, and the new GTC value as the second parameter. If you tried to change it to the value it was already set to, you will Receive error 218. if you send an invalid parameter, you will be immediately disconnected.

Here Area Some Examples of Setting your gtc value:

>>> GTC 20 A / R / N

<<< GTC 20 200 A / R / N

>>> GTC 21 N / R / N

<<< GTC 21 201 N / R / N

>>> GTC 22 N / R / N

<<< 218 22 / r / n

<<< GTC 23 f / R / N

Server Closes Connection

BLPCHANGING THIS VALUE IS Similar To Chang Gtc. Here Are Some Examples.

>>> BLP 24 Al / R / N

<<< BLP 24 202 Al / R / N

>>> BLP 25 BL / R / N

<<< BLP 25 203 BL / R / N

>>> BLP 26 BL / R / N

<<< 218 26 / r / n

<<< BLP 27 FL / R / N

Server Closes Connection

Interestingly enough, when someone that's not in your AL or BL tries to invite you to a switchboard session when your BLP value is set to BL, they will receive error 216 instead of the expected error 217. Because of that, they know that you are ONLINE, Butt, or Because of the BLP Setting, Are Automatical Blocked.

Setting Your Phone NumbersTo set a personal phone number, send the PRP command with a TrID, the three letter code for the phone type, and the phone value. To set an empty phone number, leave out the second parameter. To disable or unregister your MSN Mobile Device, Set The Second Parameter To "N" .if success, the Server Will Respond, Version Number, Three-Letter Code, and Phone Number.

If you send a phone number longer than 95 bytes, (counting a URL-encoded character as three bytes), the server will immediately close the connection with no error. If you try to set a nonexistent phone type of three or less characters such as phh or PH, the server will respond with error 715. If the phone type is longer than three characters, the server will immediately close the connection. If you try to set MOB to anything when MBE is set to N, the server will respond with Mob Still Being Set To N and No Changes Will Be Made. You Can Do Not Have A Mobile Device Set Up, Which Doesn't make Muchse. You can also set mbe to n and leave mob still as y.

IF YOUSETHING BESIDES Y OR N, THE Server Will Set Its ITS RESPONSE. There Are A Lot of Weird Exceptions To All of this, So Just Try to Keep Weird Things From happens.

Below Are Some Examples of Setting Personal Phone Numbers:

>>> PRP 55 PhH 555-1234 / R / N

<<< PrP 55 12183 PhH 555-1234 / R / N

>>> PRP 56 pHW / R / N

<<< PrP 56 12184 pHW / R / N

>>> PRP 57 PHV 1234 / R / N

<<< 715 57 / R / N

>>> PrP 58 MOB Y / R / N

<<< PRP 58 12185 MOB Y / R / N

Adding and Removing PrincipalsAdding Principals (ADD) To add a principal, the client must send the ADD command.The first parameter is the list you want to add the principal to. The second parameter is the principal's account name. The third parameter is a nickname you assign to the principal. The official client always uses the principal's account name as the nickname, and that is why when you add a principal, his or her name always shows as his or her account name until he or she logs on and you receive an updated display name. More information about nicknames is discussed in the Names page. If you are adding a principal to your FL, there may be a fourth parameter specifying the group ID that you are adding the principal to. If you do not specify a group ID, zero is implied. you may add the same principal to your FL later specifying another group to have the principal in multiple groups. When you first add someone to your FL, you should receive a full set of BPRs. If they have alreadyadded you to their AL, these will be their actual phone numbers. Otherwise they will be blank, and correct values ​​will be sent if and when they add you to their AL. Adding someone to a new group will not cause BPRs to be sent See Below for a Discussion of Receiving BPRS Outside of A SYN.

There are a few strings you cannot do.

You can not add principals to your RL, and if you attempt to, you will be immediately disconnected. If you try to add a principal to both your AL and your BL, you will receive error 219. If you try to add more than 150 principals (the maximum as of March 23, 2003) to your FL, you will receive error 210. If you try to add an invalid email address, you will receive error 201. If you try to add a valid email address that does not exist, you will receive error 205. If you try to add a principal to your FL in a nonexistent group, you will receive error error 224. If you try to add a principal to a list (or group within the FL) that they are already in YOU WILL ERROR 215. Errors 201 and 205 Take Priority Over 224. In Addui Will Be Immedierately Disconnected. this is The Same Maximum Length for Setting Nicknames with The Rea Command Described Below. However, T he official client will not properly display names with more than 129 characters (a three-byte URL-encoded characters counts as one character). Note that 129 multiplied by 3 is 387.If your ADD was successful, the server will reply with another ADD .

If you are adding a principal to your FL, you will receive four BPRs after the ADD response. These BPRs will all be blank (except MOB which is N) even if the principal has phone numbers set. Note that you do not receive BPRs if You Have Not Sent The Syn Command in The Current Session.

Also, if the principal is online when you add them to your FL, and you are already on their AL, you will receive an ILN with the same TrID as your ADD showing their initial status. Otherwise, you will receive an NLN if and when THEY THAT TAKE SOME.BELOW Area.

>>> Add 18 Al A @ B A @ B / R / N

<<< 201 18 / R / N

>>> Add 19 fl non_existent_account@passport.com Non_existent_account@passport.com/R/NNNNNNNN

<<< 205 19 / r / n

>>> Add 20 Al Example@passport.com Example@passport.com/r/n

<<< Add 20 Al 1200 Example@passport.com Example@passport.com/R/NNNNNNNNNNN

>>> Add 21 BL EXAMPLE@passport.com Example@passport.com/r/n

<<< 219 21 / r / n

>>> Add 22 Al Example@passport.com Example@passport.com/r/n

<<< 215 22 / r / n

>>> Add 23 FL MyName_123@hotmail.com MyName_123@hotmail.com 1 / R / N

<<< Add 23 FL 1201 MyName_123@hotmail.com MyName_123@hotmail.com 1 / r / n <<< BPR 1201 MyName_123@hotmail.com phh / r / n <<< BPR 1201 MyName_123@hotmail.com PHW / R / n <<< BPR 1201 myname_123@hotmail.com phM / r / n <<< BPR 1201 myname_123@hotmail.com mob n / r / n

>>> Add 24 FL Principal@msn.com Principal@msn.com 15 / r / n (Nonexistent Group)

<<< 224 24 / r / n

>>> Add 25 rl principal@msn.comprincipal@msn.com/r/n

Server Closes Connection

Removing Principals (REM) TO Remove a Principal, The Client Must Send The Rem Command. This Works Almost Exactly The Same Way As The Add Command, Except That There Is No Nickname Parameter.

If you are removing a principal from your FL and you want to remove the principal from a specific group, you may specify the group ID in the same way you did with the ADD command.If your REM was successful, the server will reply with another Rem with The Same Exact Parameters, Except IT Will Add The New Version Number in Between The List Type and The Account Name. Listed Below Area Some Situations Which Will Cause Problems:

If you remove a principal that is not on your list, whether or not it is a valid account name, you will receive error 216. If you attempt to remove a principal from your RL, you will be immediately disconnected. If you try to remove a principal from a nonexistent group, you will receive error 224. If you try to remove a principal from an existent group that they do not belong to, you will receive error 225. error 216 takes priority over 225, and 224 takes priority over 216 Below Are Some EXAMPLE OF Using REM.

>>> REM 26 Al A @ B / R / N

<<< 216 26 / r / n

>>> REM 27 FL NON_EXISTENT_ACCOUNT@passport.com/r/n

<<< 216 27 / r / n

>>> REM 28 FL VALID_ACCOUNT@hotmail.com/R/N (Principal Not in List)

<<< 216 28 / r / n

>>> REM 29 FL Principal123@msn.com 15 / r / n (Nonexistent Group)

<<< 224 29 / r / n

>>> REM 30 FL Principal321@msn.com 3 / R / N (Principal Not in Group)

<<< 225 30 / r / n

>>> REM 31 FL MyName_123@hotmail.com/r/n

<<< Rem 31 FL 1202 myname_123@hotmail.com/r/n

>>> REM 32 FL Principal@msn.com 1 / r / N

<<< Rem 32 FL 1203 Principal@msn.com 1 / R / N

>>> REM 33 Al Principal@msn.com/r/n

<<< Rem 33 al 1204 principal@msn.com/r/n

>>> REM 34 RL Principal@msn.com/r/nservercloses Connection

Moving Principals Between GroupsTo move a principal from one group to another, just use the REM command to remove him or her from the original group, and use the ADD command to add him or her to the target group. Because principals can be in more than One Group At A Time, It Does Not Matter Which ORDER You do this in. Below is an esample:

>>> REM 35 FL Principal@msn.com 1 / r / N

>>> Add 36 FL Principal@msn.com Principal@msn.com 2 / r / N

<<< Rem 35 FL 1205 Principal@msn.com 1 / r / N

<<< Add 36 FL 1206 Principal@msn.com Principal@msn.com 2 / R / N

MSN Also Supports Having a Principal In Multiple Groups. To do this, Just Send The Add Command Multiple Times, And Include a Group You Would Like The Principal To BE in.

Blocking Principalsto Block A Principal, First Remove Him or Her from your al if He or She is is are already the the you....

>>> REM 27 Al Principal@msn.com/r/n

<<< Rem 27 Al 3053 Principal@msn.com/r/n

>>> Add 28 bl Principal@msn.comprincipal@msn.com/r/n

<<< Add 28 BL 3054 Principal@msn.comprincipal@msn.com/r/n

Renaming Principals (REA) Read this for how to set your display name as well.

To set the nickname of any principal already in any of your lists, you must use the REA command The REA command has two parameters:. The account name of the principal you want to modify, and the new URL-encoded nickname that you want to assign to that principal. If successful, the server will respond with another REA with a new version number, the principal's account name, and the principal's new nickname.If you use your own account name for the account name parameter, this command will officially change your display name and inform all other on-line principals with a new NLN (unless you are appearing offline or blocking those principals). If you attempt to change your display name too rapidly, you may receive error 800 in response to some REAs. Note That this does Not Apply to Renaming Other Principals.

As in the ADD command, if the nickname you assign is longer than 387 bytes (as of March 29, 2003), you will be immediately disconnected. However, the official client will not allow principals to set names to more than 129 characters (a three-byte URL-encoded character counts as one character) and will not properly display names with more than 129 characters. If you try to rename a principal that is not in any of your lists, you will receive error 216. This even applies if The Account Name is an invalid email address.

If MSN for some reason does not like the new nickname has words that MSN does not allow to be in nicknames, the server will send error 209. The server will also send this error if you attempt to change your own display name with this command and your Passport has not yet been verified. (When you sign up for a Passport, you receive an email where you must click on a link to verify your Passport.) Note that error 209 has priority over error 216 when giving invalid principals invalid nicknames. some well-known restricted words in nicknames are "msn" and "microsoft". It is very easy to get around this restriction on nicknames. When you set a nickname, just URL-encode all or some of the letters in a restricted word, and MSN will not detect that the nickname is invalid. For example, instead of setting a nickname to "MSN% 20SUCKS", set it to "% 4DSN% 20SUCKS", or your client could even encode every single character. Note that% 4D IS "M" and% 20 is The space character.

BELOW Are Some Examples of Setting Nicknames:

>>> REA 101 Random_Principal@randomdomain.com Nickname / R / N (Principal Not in List)

<<< 216 101 / r / n

>>> Rea 102 mypassport@passport.com msn% 20help / r / n

<<< 209 102 / r / n

>>> Rea 103 mypassport@passport.com new% 20Name / R / N

<<< Rea 103 3055 mypassport@passport.com new% 20name / R / N

GroupsGroups are a recent addition to the MSN protocol and are new in MSNP7. Every principal on your FL can belong to one or more groups. If no group is specified, the principal automatically belongs to group zero. Each group has a name and a group ID, and groups are always referred to by their IDs. The group name is solely for end-user display purposes.Adding Groups (ADG) to add a group to your contact list, send the ADG command. The first parameter will the be URL -Encoded Choice for the name of the group, and the second parameter is a zero.

If The Length of The Group Name Is LONGER THAN 128 BYTES (AS of March 29, 2003), The Server Will Immediely Disconnect You. If The Length of The Group Name Is Greater Than 61 Bytes (As of March 29, 2003), you Will Receive Error 229. Note That% 20 Count counds (AND the Same IDEA Applies for All Similar Entities). if you try to Add A 31st Group (30 is The maximum as s of march 29, 2003), you will receive error 223. Note that group zero counts as a one of the 30 groups. If the ADG was successful, the server will respond with an ADG. The first parameter will be your new version number. The second parameter will be the group name ....................... ..

Here Are Some Examples of Using The Adg Command:

>>> ADG 37 this% 20Group's% 20name% 20is% 20Sixty% 20TWO% 20Bytes% 20IN% 20LENGTH 0 / R / N

<<< 229 37 / r / n

>>> ADG 38 MY% 20NEW% 20group 0 / R / N

<<< ADG 38 4029 MY% 20NEW% 20group 4 0 / R / N

>>> ADG 39 THIRTYFIRST% 20GROUP 0 / R / N (31st Group)

<<< 223 39 / r / n

Because every group is represented by a group ID, you may have multiple groups with the same name. Make sure your client can deal with that. Also, because you can not have more than 30 groups, all group IDs will be between 0 and 29. Group IDs are recycled (if you have thirty groups, and remove group 3, and add another group, it will become group 3). But do not rely on this, and assume group IDs can be of any reasonable size.The final parameter in ADG is a little weird. At earlier dates (still with MSNP7), the server would reply with a weird string instead of another zero. If you specify another number instead of a zero, nothing will be done differently, but the server will respond With That Same Number. I'm Not Sure What Parameter is for, and if you have any clues, I'D Like to Hear About IT.

Removing Groups (RMG) To remove a group from your contact list, send the RMG command with the only parameter being the group ID. The server will respond with an RMG with the version number as the first parameter and the group ID as the second parameter . If the group doesn't exist, The Server Will respond with error 224. If you try to remove Group Zero, You will Receive Error 230.

If you remove a group, remember that every principal that is in that group is no longer in that group. If a principal was in multiple groups, he or she will still be in the other groups. But if it was his or her only group , He or She Will Be eRased from the fl.

>>> RMG 40 4 / R / N

<<< RMG 40 4030 4 / R / N

>>> RMG 41 4 / R / N

<<< 224 41 / r / n

>>> RMG 42 0 / R / N

<<< 230 42 / r / n

Renaming Groups (REG) To rename a group, send the REG command. The first parameter is the ID of the group you want to rename. The second parameter is the URL-encoded name that you want to group to be renamed to. The third parameter is exactly the same as the final parameter in ADG: The client always sends zero, but you can send other numbers and nothing changes.Just like in the ADG command, if you rename a group to have more than 128 characters (as of March 29, 2003), you will be immediately disconnected. However, there is no error on names of any less length. So if you want to have a group with 127 characters, you must first add the group to be 61 or less characters, and then rename it to have 127. If you try to rename a nonexistent group, you will get error 224. Because of the 30-group limit, if you try to rename a group with a group ID greater than 29, you will be immediately disconnected This Is Not True for Removing Groups. Also, There is nothing wrong with renaming the group with The id of zero.

If the REG was successful, the server will respond with an REG. The first parameter will be your new version number. The second parameter will be the group ID. The third parameter will be the new group name (should be the same one you specified ). And The Four Parameter Is The Same as in The Adg Command (Normal A Zero).

BELOW Are Some Examples of use the reg command:

>>> REG 43 3 MY% 20NEW% 20name 0 / R / N

<<< REG 43 4031 3 MY% 20NEW% 20Name 0 / R / N

>>> REG 44 20 NewName 0 / R / N (Group Does Not Exist)

<<< 224 44 / r / n

>>> REG 45 30 NewName 0 / R / N

Server Closes Connection

When other people change their detailsReverse List ChangesWhen someone adds you to / removes you from their forward list, they are added to / removed from your reverse list, so you will receive an ADD or REM from the server. It will have a TrID of zero , and three or four parameters: The first parameter will always be RL The second parameter will be the new version number The third parameter will be the principal's account name If it is an ADD, the fourth parameter will be the principal's display name Here are some EXAMPLES:

<<< add 0 rl 3049 example@passport.com my% 20name / R / N

<<< Rem 0 rl 3050 example@passport.com/r/n

Phone numbersNote:. At the time of writing (November 2003), a bug in Microsoft's server means that no BPRs will be sent outside of SYNs However, version numbers are still updated as if they were sent, causing many problems for clients (including the OFFICIAL Client.

When someone on your forward list updates their phone numbers, you should receive a BPR message just like after receiving an ADD. Even if you are sent several BPRs at once, each one will have a different version number.

Unlike BPRS Received in A SYN, this Command Has Four Parameters:

The first parameter is the new version number The second parameter is the principal's account name The third parameter is the phone number type (PHH, MOB, etc.) The fourth parameter is the phone value Here is an example BPR command:

<<< BPR 12183 Example@passport.com Phh 555% 20555-4321 / R / N

WHEN You Block Someone, They Will Automatically Be Sent Blank BPRS (if Your Phone Numbers Wern't Blank Already).

转载请注明原文地址:https://www.9cbs.com/read-128169.html

New Post(0)