[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

1667.0. "Deferred mail after MCD cannot be cancelled...." by KERNEL::SIMPSONR (fred) Tue Oct 27 1992 11:19

  I have a customer who has a problem with deferred mail in ALL-IN-1 V3.0
  I have reproduced it by doing the following:

   o  Find a mail in you READ folder and make a copy of it (MCD) in your
      CREATED folder.

   o  Do SH and notice that Date Posted still has the date for when the 
      original message was sent.

   o  Then edit it and defer it for a couple of hours (DEF).

   o  This then makes it a status of SENT and places it into the OUTBOX.

   o  Then use CAN to cancel the deferred message and it says:
      "There are no messages that can be canceled"

   o  Same applies when using SM MM CM

  Surely this is working incorrectly.

  Regards,
  Richard Simpson.
T.RTitleUserPersonal
Name
DateLines
1667.1YesIOSG::CHAPLINAndy ChaplinTue Oct 27 1992 17:1115
    The reason it isn't working is that ALL-IN-1 detects deferred mail by
    looking for mesages that have a "sent" date but not a "posted"
    (delivered) date.  Unfortunately an MCD'd SENT message keeps its original
    sent and posted dates, and the posted date is not cleared when the message
    is deferred.
    
    This should be fixed in a future release.
    
    If this is causing the customer big problems then you might like to
    look at modifying the EMMDEF form so that it checks for a posted date
    (cab$.delivery) and clears it.  If you do this you should be aware that
    this field can be multivalued, ie some messages can have multiple
    posted dates.
                                
    Andy
1667.2Deferred mail after MCD cannot be cancelled....KERNEL::SIMPSONRfredWed Oct 28 1992 11:198
  Andy,

  Thanks for the reply. A quick question, is there a way of setting the sent 
  date of a message to nothing? Thus deferred mail would work correctly! 
 
  Regards,
  Richard Simpson.
1667.3A better explanationIOSG::CHAPLINAndy ChaplinWed Oct 28 1992 19:4731
I think I might have typoed in .1 so I'll have another go at getting the field
names right! :)

Basically the date fields work as follows:

cab$.posted     is the date and time that the message is posted,
                ie when Sent or Deferred

cab$.delivered  is the date and time that the message is delivered
                (or placed in the queue if it's remote).

cab$.delivery   is the deferred delivery date and time.

A deferred message, which has not yet been delivered and therefore _can_ be
canceled, is one which has a .delivery date, but no .delivered date.

The problem is that an MCD'd message already has a .delivered date, so
if it is subsequently deferred it cannot be canceled.

A temporary workaround would be to clear the .delivered field when messages
are deferred.  Since the field can be multivalued, a script is required.  The
following script seems to work but comes without a guarantee:

get #i = 0
for cab$attributes:delivered do compute #i = #i + 1
.label loop
.if #i eq 0 then .exit
write change cab$ k = oa$curdoc , delivered = ""
compute #i = #i - 1
.goto loop

1667.4If v3.0, use the new functions . . .IOSG::SHOVEDave Shove -- REO-D/3CThu Oct 29 1992 10:386
    Replace compute ? = ? + 1 with INCREMENT 
    (and ? - 1 with DECREMENT)
    
    It's marginally faster!
    
    D.