Julien Cristau wrote:
> On Mon, Jul 21, 2008 at 17:15:10 +0200, Bastian Venthur wrote:
>> Julien Cristau wrote:

>>> That's one of the documented functions such a script can rely on.
>> Where is that documented? And where does getkey come from? Haven't found
>> a package providing this command.
> 
> /usr/share/doc/reportbug/README.developers.gz
> 
> The function is in /usr/share/reportbug/handle_bugscript which looks
> like it could be used pretty much as-is in rng.

Probably, I'll see what I can do.

>>>> as you can see rng already gathered the info and even put in in a file,  
>>>> all the user has to do is to attach this file to the mail.
>>>>
>>> That doesn't make any sense.  If you gather the info, then surely
>>> putting it in the mail is not much more work.  I'm pretty sure you can
>>> attach files to a mail, if nothing else.
>> Not every MUA supports an "attach file" option.
> 
> Then they're broken.

Ok, but that doesn't help very much, right?

>>>> The "file too long" problem isn't rng's fault but a limitation of the  
>>>> shell which can't execute commands of unlimited length. Rng detects such  
>>>> cases where calling the MUA failed and puts the output in a file and  
>>>> asks the user kindly to attach it.
>>>>
>>> Yes, it's rng's fault.  I'm not sure why you say the shell has anything
>>> to do with this.
>> How do you think rng invokes the different MUAs? If you have a better
>> solution which supports calling MUAs with bodies of arbitrary
>> textlengths, then please send me a patch. I'd love to have this included
>> rather to rely on the user to attach a file.
> 
> There are lots of ways to invoke a program and give it some data that
> don't involve giving that data to the shell.

I'm still waiting for for a solution which works for python. Currently I
use the command module of python which in turn calls os.popen. The limit
of the command length seems to be somewhere between 10000 and 20000
characters (or maybe some completely different number) -- if you have a
way to call a program with arbitrary command length, please tell me how
-- I'll just apply the patch and we can forget about this whole "please
attach the file yourself" thing.


-- 
Bastian Venthur                                      http://venthur.de
Debian Developer                                 venthur at debian org




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to