List Info

Thread: dbmail-sievecmd BUG




dbmail-sievecmd BUG
country flaguser name
Austria
2007-08-26 17:16:14
If you make a mistake and forget to give the name of the
script:

dbmail-sievecmd  -u <username> -i <filename>

then the command silently hangs forever. Could it possibly
instead 
return an error please?

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                     
.network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg
--import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F
1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID:
1C6FE6B0

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: dbmail-sievecmd BUG
country flaguser name
Australia
2007-08-26 18:40:47
Hi Michael,

I believe if you omit the <filename> then it expects
the script to come 
from stdin. There are a lot of other utilities like this
also (e.g. grep)

The way to test is to press CTRL-D - if it exits then it was
expecting 
data from stdin.

Regards,
Josh.

Michael Monnerie wrote:
> If you make a mistake and forget to give the name of
the script:
>
> dbmail-sievecmd  -u <username> -i
<filename>
>
> then the command silently hangs forever. Could it
possibly instead 
> return an error please?
>
>   

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: dbmail-sievecmd BUG
country flaguser name
Austria
2007-08-26 19:52:13
On Montag, 27. August 2007 Josh Marshall wrote:
> I believe if you omit the <filename> then it
expects the script to
> come from stdin. There are a lot of other utilities
like this also
> (e.g. grep)

You're right. I wasn't thinking about it as I forgot the
script name, 
but entered the filename, which is translated as scriptname
then. That 
made it confusing.

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                     
.network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg
--import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F
1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID:
1C6FE6B0

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: dbmail-sievecmd BUG
country flaguser name
United States
2007-09-04 21:10:19
On Mon, 2007-08-27 at 02:52 +0200, Michael Monnerie wrote:
> On Montag, 27. August 2007 Josh Marshall wrote:
> > I believe if you omit the <filename> then it
expects the script to
> > come from stdin. There are a lot of other
utilities like this also
> > (e.g. grep)
> 
> You're right. I wasn't thinking about it as I forgot
the script name, 
> but entered the filename, which is translated as
scriptname then. That 
> made it confusing.

Right, the syntax is like this:

dbmail-sievecmd -u <username> -i [scriptname
[filename]]

I could write a line to stderr like "Please enter data
for <scriptname>
on stdin" which would clue you in to what's happening
and give
confirmation of the file name, in case it turns out to be
something
unexpected.

Aaron

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: dbmail-sievecmd BUG
country flaguser name
Austria
2007-09-05 03:32:37
On Mittwoch, 5. September 2007 Aaron Stone wrote:
> dbmail-sievecmd -u <username> -i [scriptname
[filename]]
>
> I could write a line to stderr like "Please enter
data for
> <scriptname> on stdin" which would clue you
in to what's happening
> and give confirmation of the file name, in case it
turns out to be
> something unexpected.

Yes, that could help resolve the confusion. I guess others
will run into 
the same sometimes, so it's better to write that info. Maybe
only write 
that info if the script was called from command line, not
from within 
another script? I don't know how to do that, though.
Possibly only 
write that message if stdin has no input available?

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                     
.network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg
--import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F
1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID:
1C6FE6B0

_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )