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

Re: nnimap article editing revisited



Steinar Bang <sb@metis.no> writes:

> So maybe having a single annotation message in each folder, recognized 
> by the from-field, could a the way to go.  This message could then
> hold all rethreading and MIME-type remapping information for messages
> in this folder.  If there is a need to change this information, the
> annotation message is downloaded, deleted on the IMAP server, edited
> locally, and a new message is created in the server.
> 
> I think the information should be stored as a multipart/mixed MIME
> message with the message parts being of a new MIME type defined to
> hold the annotation information.

I think there is something good in this idea. It would require
rewriting the rethreading code, and to write some code to remap
MIME-types, but it would work. We also could use the ANNOTATE
extension in IMAP, not that any server I know of implement that today.

However, I think it would be cleaner to add a new function,
`gnus-delete-and-insert-edited-copy-of-article', and have the editing
commands in Gnus updated to fall back on it if the backend doesn't
support replacing.

Anything else sort of feel like writing extra code to work around
Gnus' behaviour.

-s