bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] mbox_append_message


From: Alain Magloire
Subject: Re: [bug-mailutils] mbox_append_message
Date: Wed, 17 Sep 2003 17:58:55 -0400 (EDT)

> 
> Not sure if any else is in need of this or not but here it goes:
> 
> I'm using the mbox_append_message function to append a message to a mailbox
> and was pulling my hair out trying to figure out why when I changed an
> attribute on the message (before appending) it was not saving
> correctly...After digging into the code I noticed there was a shortcut made
> to mbox_append_message0 (the underlying function that does all the work)
> that will skip over witting the attributes and appending the X-UID field to
> a message unless it is the first message or the expunge flag is set.  There
> is no way to set the expunge flag (nor is this really what I wanted from
> mbox_append_message.  If I removed the if statement and allowed it to fall
> through as it would normally everything works fine.  I was thinking about
> modifying the mbox_append_message function to accept a flag to not skip the
> attribute saving and X-UID setting.  
> 
> Any thoughts suggestions?
> 

The rationnale:
You(the user) should not be allowed to set the X-UID or the X-ImapBase, because
You can not guarantee that it will be uniq .i.e can conflict with
other messages.  This why the code takes over the responsability
and rewrite those fields,  it guaranties that a mailbox will have uniqu
identifier and that messages can uniquely identify ... at least within
the session.

> 
> -Anthony
> 
> This message contains confidential information and is intended only for the
> individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake then
> delete this e-mail from your system.
> 

You know this is crap, any lawyer should be able to tell you that.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]