#82 sent drafts don't mark messages as "answered"
open-later
nobody
None
5
2003-04-01
2003-04-01
No
User X sends me a message.
I hit "reply" and start composing.
I save the reply as a draft.
I resume the draft and send it.
Original message from User X is not marked with an "A"
which would indicate that it's been answered.
By saving it as draft you do not answer it and the draft
becomes a message on it's own.
I'm not sure if we want to lookup the original message by it's
message-id and set the \Answered flag when we actualy
send the draft.
Maybe we this is something to look at in a later SM version..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You also need to store the UIDVALIDITY value otherwise the
UID is meaningless.
I would prefer to use 1 single additional header for storing
all the 3 values.
X-Message-Trackback: uidvalidy #uidvalidity; uid #uid;
mailbox originalmailbox
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's not difficult.
1) when composing from draft you have to extract the info
from the x-header (if present).
2) on sent, check if it concerns a draft and if that draft
is related to an original reply action. If yes, locate the
original message and flag it.
Only difficult point is how to organize compose.php without
being lost in spaghetti code ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I doubt that'd be too difficult at all. Their is already
code in there to delete the draft on sending, you put your
update code in the same if section to update the message on
the other side. You do it silently so if there is an error
it doesn't die completely. I'll take a look.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=476981
By saving it as draft you do not answer it and the draft
becomes a message on it's own.
I'm not sure if we want to lookup the original message by it's
message-id and set the \Answered flag when we actualy
send the draft.
Maybe we this is something to look at in a later SM version..
Logged In: YES
user_id=620333
Marc, what about adding an X- header such as:
X-Message-Parent-Folder: {Original Folder}
X-Message-Parent-UID: {Message UID}
Then on sending of the message, we check the folder for that
message ID, if it is there, flag it as replied, and delete
those two headers.
Logged In: YES
user_id=476981
You also need to store the UIDVALIDITY value otherwise the
UID is meaningless.
I would prefer to use 1 single additional header for storing
all the 3 values.
X-Message-Trackback: uidvalidy #uidvalidity; uid #uid;
mailbox originalmailbox
Logged In: YES
user_id=620333
Sure, that'd be fine... Mine was just a suggested idea to
resolve the issue. I dare say it wouldn't be too difficult
to put into place would it?
Logged In: YES
user_id=476981
It's not difficult.
1) when composing from draft you have to extract the info
from the x-header (if present).
2) on sent, check if it concerns a draft and if that draft
is related to an original reply action. If yes, locate the
original message and flag it.
Only difficult point is how to organize compose.php without
being lost in spaghetti code ;)
Logged In: YES
user_id=620333
I doubt that'd be too difficult at all. Their is already
code in there to delete the draft on sending, you put your
update code in the same if section to update the message on
the other side. You do it silently so if there is an error
it doesn't die completely. I'll take a look.