GO!NotifyLink Enterprise Server:
Question: How do I fetch the Header and Body of an email through a telnet session?
Answer: The following needs to be done from the NotifyLink server. NOTE: After selecting the INBOX or folder, it should show how many exist. You can consult the desktop client to verify the numbered email the client must have the email sorted by date for this to be the correct number. For example, if you have 100 items in your inbox, the most recent item will be number 100 and the oldest will be 1.
Open a command prompt.
- Type telnet <mail server address> 143 RETURN (do not include the <> around mail server)
- Type a login <username> <password> RETURN (do not include the <>)
- Type a select inbox RETURN (if the email that you are trying to fetch is in a different folder then replace Inbox with that folder name)
- Type a fetch 1 (body.peek[header]) RETURN (where “1” is the Message #, Copy the results and paste them to a document)
- Type a fetch 1 (body.peek[text]) RETURN (where “1” is the Message #, Copy the results and paste them to a document)
- To exit the telnet session type a logout RETURN
Another way to perform the fetch is based off of the UID of the message itself. If you know the UID of the email in question you can perform either of the following steps after following steps 1 - 3 above.
OPTION 1: 1. uid fetch 1 body.peek[header] RETURN (where "1" is the UID, Copy the results and paste them to a document) 2. uid fetch 1 body.peek[text] RETURN (where "1" is the UID, Copy the results and paste them to a document)
OPTION 2: 1. a fetch 1:* (UID) RETURN
This query will return the list of all of the messages matching the Message # to the UID. Simply find the UID in question from the list returned with this query and then perform the standard fetch from the first set of instructions above. The steps in Option 1 can then be disregarded.
|