Archive of UserLand's first discussion group, started October 5, 1998.

Re: Mail to the Future Server Functionality

Author:David Shinpaugh
Posted:2/18/1999; 3:25:57 PM
Topic:Mail to the Future Server Functionality
Msg #:3023 (In response to 3019)
Prev/Next:3022 / 3024

We need a new RPC handler (mailtothefuture.editMessage) to edit MTTF messages.

Currently there is a facility to edit MTTF messages. There is a Mainresponder Membership Handler for setting a MTTF user's profile called (mainresponder.members.setProfile) and since all the MTTF messages for that user are stored in a table called "Queue" in their profile, the data in the messages can be updated using this call. Access to a specific message using this method is made up of "Member Group, Username, Password, Unique MessageID".

Here are the reasons why I think a different facility needed:

In the MTTF RPC Handlers there is a deleteMessage handler which deletes a message. Access to a specific message in this method is made up of "Username, Password, msgNum". msgNum is the nth message in that user's queue NOT a unique messageID.

The function of editing an MTTF message really belongs within Mail to the Future, (since deleteMessage is there), it should be it's own RPC handler, and it should take the same access to a single message as deleteMessage does, (username, password, msgNum). Instead of making modifications to the messages through two different keys, from two different RPC Handler sets.

So I suggest we add:

mailtothefuture.editMessage(username, password, n, msgStruct) This would take four params, memberkey (mail address), password, sequential message number, and a struct containing the message with revised data.

It would replace the nth message in the user's queue with the data contained in the revised msgStuct sent to the handler. Returns the empty string. If the user's queue doesn't have an nth element or the user/password fails, it s.

David


There are responses to this message:


This page was archived on 6/13/2001; 4:47:59 PM.

© Copyright 1998-2001 UserLand Software, Inc.