Article View: gnu.emacs.vm.bug
Article #294Re: Suggested fix to vm-pipe-message-part
From: blueman
Date: Fri, 08 Jan 2010 08:38
Date: Fri, 08 Jan 2010 08:38
79 lines
5863 bytes
5863 bytes
blueman <NOSPAM@nospam.com> writes: > Uday S Reddy <uDOTsDOTreddy@cs.bham.ac.uk> writes: >> blueman wrote: >> >>> >>> Quick test shows it works! >> >> Perhaps it does. But I already added a fix a day or two ago, tested >> it and committed to the repository on launchpad. Unfortunately, this >> to-and-fro hasn't contributed all that much to the problem, after the >> initial discussion. There are some 20 odd messages in this thread. I >> don't think this mode of communication has been very effective. > > Personally, I find that comment unfair. I have: > - Identified multiple show-stopper bugs in the routine > - Coded bug fixes > - Suggested and discussed extensions to make it usable on > multiple messages rather than running them together > - Coded the extension > > I have shared my code the whole way through and have accepted input from > you and Julian which ultimately made it better. > > At the same time, you mention making fixes which you haven't shared here > and which I can't seem to even find on launchpad (I am looking at > http://bazaar.launchpad.net/~reddyuday/viewmail/8.1/changes) But based > upon your allusions to rewriting code and adding variables, it seems > like you may have done something more convoluted than necessary which > could have other unforseen consequences (indeed all that was necessary > was removing two words and quoting a third). OK - I found your revisions. The way you implemented it is really just a kludge which adds an additional unnecessary variable vm-message-include-separators. Moreover, as I metioned in one of my earlier "unproductive" posts, your method actually ends up adding an extra newline to each message (and hence doesn't do what you claim it does) unless the user also remembers to change the value of vm-pipe-message-to-command-end from "\n" to nil -- which is hardly obvious and which you don't document. This also makes me wonder how well you tested the function because if you had done the minimal test of diff'ing a pipe to 'cat' of all messages in a folder against the original folder contents you would have noticed this difference and probably not have coded the change this way. Additonally, you added a comment to the vm-pipe-message-to-command function whereas the real need for the separators is in the vm-pipe-messages-to-command function where you are combining multiple messages in one pipe. In fact, Robert's vm-pipe-messages-to-command-start/end variables *only* apply to the vm-pipe-messages-to-command function. Finally, your method doesn't allow for adding the "From_" line in the case where you are just looking at the headers (prefix-arg 16 or 64) and there are use cases where you might want to see the From_ and From: lines when looking just at the non-body part of messages. Also if you look through the "20-odd" messages, the first half were spent productively generating the solution that I ultimately coded (which you yourself acknowledged "Indeed, it is nice!") -- yet you didn't include the fix in your patch but instead added an inelegant kludge. And the second half of the messages were devoted to fixing the actual show-stopper bug in the code which causes it to crash when you supply either of the optional arguments. However, despite my supplying the bug fixes multiple times on this thread (and in my bug report) you have not added it to the code. Indeed I don't know how you can claim to have properly tested this function without checking the optional variables given that they account for much of the code complexity and thus deserve to be tested. So, yes this thread is a waste -- but only because you don't seem to have listened to any of the productive suggestions included in the thread... Even worse, in my opinion, your fix added an inelegant and arguably broken kludge to an otherwise elegant function and to add insult to injury the vm-pipe-messages-to-command function is itself still fundamentally broken.
Technical Details
Message-ID:
<m2eim1xa8c.fsf@consult.pretender>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mailReferences:
<m2d41p7sho.fsf@consult.pretender> <m23a2l7myy.fsf@consult.pretender> <hhti24$9ua$1@scotsman.ed.ac.uk> <m2tyv15eaz.fsf@consult.pretender> <hhv7u9$bf4$1@scotsman.ed.ac.uk> <m2iqbg5zjg.fsf@consult.pretender> <hi0018$1gk$1@north.jnrs.ja.net> <m21vi45kxy.fsf@consult.pretender> <hi0e67$5b2$1@north.jnrs.ja.net> <m2tyv03yq9.fsf@consult.pretender> <m2pr5o3ycq.fsf@consult.pretender> <m2ljgc3xd3.fsf@consult.pretender> <hi2c72$l5i$1@north.jnrs.ja.net> <m2ocl7yvsr.fsf@consult.pretender> <hi4d25$81f$1@north.jnrs.ja.net> <m24omxzybc.fsf@consult.pretender> <hi54kr$euu$1@north.jnrs.ja.net> <m2r5q1ybz4.fsf@consult.pretender> <m2my0pybcx.fsf@consult.pretender> <hi5peg$kmp$1@north.jnrs.ja.net> <m2iqbdxbuj.fsf@consult.pretender>Show Full Headers
Complete Article Headers
X-Google-Thread: a16957f451,747cd7667796b3e3 X-Google-Attributes: gida16957f451,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: blueman <NOSPAM@nospam.com> Newsgroups: gnu.emacs.vm.bug Subject: Re: Suggested fix to vm-pipe-message-part Date: Fri, 08 Jan 2010 03:38:11 -0500 Organization: A noiseless patient Spider Lines: 79 Message-ID: <m2eim1xa8c.fsf@consult.pretender> References: <m2d41p7sho.fsf@consult.pretender> <m23a2l7myy.fsf@consult.pretender> <hhti24$9ua$1@scotsman.ed.ac.uk> <m2tyv15eaz.fsf@consult.pretender> <hhv7u9$bf4$1@scotsman.ed.ac.uk> <m2iqbg5zjg.fsf@consult.pretender> <hi0018$1gk$1@north.jnrs.ja.net> <m21vi45kxy.fsf@consult.pretender> <hi0e67$5b2$1@north.jnrs.ja.net> <m2tyv03yq9.fsf@consult.pretender> <m2pr5o3ycq.fsf@consult.pretender> <m2ljgc3xd3.fsf@consult.pretender> <hi2c72$l5i$1@north.jnrs.ja.net> <m2ocl7yvsr.fsf@consult.pretender> <hi4d25$81f$1@north.jnrs.ja.net> <m24omxzybc.fsf@consult.pretender> <hi54kr$euu$1@north.jnrs.ja.net> <m2r5q1ybz4.fsf@consult.pretender> <m2my0pybcx.fsf@consult.pretender> <hi5peg$kmp$1@north.jnrs.ja.net> <m2iqbdxbuj.fsf@consult.pretender> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Fri, 8 Jan 2010 08:38:12 +0000 (UTC) Injection-Info: news.motzarella.org; posting-host="o0xooYC/dlyFpPxuXQpbEw"; logging-data="16462"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KDL9Ov6OyDXxh3SwVfmpJASVimWaVbng=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:L7EiqESSuK3QQz0BHc1AhJNB04g= sha1:W+w2O2m0yy9zAG3Hdv9hR7ezg0k=