The following issue has been RESOLVED. 
====================================================================== 
http://dbmail.org/mantis/view.php?id=660 
====================================================================== 
Reported By:                cloos
Assigned To:                paul
====================================================================== 
Project:                    DBMail
Issue ID:                   660
Category:                   IMAP daemon
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
target:                      
Resolution:                 fixed
Fixed in Version:           2.2.9
====================================================================== 
Date Submitted:             11-Dec-07 03:16 CET
Last Modified:              16-Dec-07 15:22 CET
====================================================================== 
Summary:                    imapd needs an option for full inetd compatability
Description: 
imapd spews messages which end up on the IMAP socket and screw up parsing
of the IMAP messages when run via inetd.

Using -n is not enough.  

The man page suggests that -q (or -qq) should do it, but contrary to the
man page imapd does not understand the -q option.
====================================================================== 

---------------------------------------------------------------------- 
 paul - 11-Dec-07 09:00  
---------------------------------------------------------------------- 
There is only one known instance where this might happen, and that is a
gmime bug where gmime spits out debug information on stdout while handling
severely broken Date: headers. There are no known cases where dbmail itself
sends out unwanted output on stdout. The gmime bug was fixed upstream
already, so unless you can provide some clear steps to reproduce this that
will show it's actually dbmail's problem I will close this report. The
gmime bug also affects lmtpd. 

---------------------------------------------------------------------- 
 cloos - 11-Dec-07 12:16  
---------------------------------------------------------------------- 
Grrr!  mantis corrupted my reply.

Again, from memory:

At least one of the spurious messages, a complaint about a two digit year,
does look like a gmime issue.  But I believe I've seen others which do not
seem to be gmime related.

I'm on the 2_2 branch, updated weekly or so.

I'm upgrading my gmime and will post later today on whether that fixed the
problem for me.

 

---------------------------------------------------------------------- 
 cloos - 11-Dec-07 12:14  
---------------------------------------------------------------------- 
Oh, even if this turns out to be fixed by the gmime fix, the man page
should still be edited to leave out mention of the non-extant -q
argument.... 

---------------------------------------------------------------------- 
 cloos - 14-Dec-07 11:44  
---------------------------------------------------------------------- 
I did get more spew to the imap stream.  

My ngrep was only monitoring 'dst port imap' so I do not have the exact
message, but it was an assert about some problem with a SEARCH command's
arguments. 

---------------------------------------------------------------------- 
 cloos - 16-Dec-07 05:32  
---------------------------------------------------------------------- 
Here is the ngrep output of an assert().

As you can see, there was some corruption to the SEARCH command emacs sent
(probably a 0x00 octet; I've had recurring problems with those creeping
into emacs' networking streams over the years) but imapd should deal with
that w/o generating an assert error message (except perhaps to syslog, of
course). 

---------------------------------------------------------------------- 
 paul - 16-Dec-07 15:22  
---------------------------------------------------------------------- 
I've committed a change that will silence all logging by the glib layer.
That will help in your case. Please test r2871 and feel free to re-open
this bug if there is still garbage showing up on the stdout stream in
inetd mode. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-Dec-07 03:16 cloos          New Issue                                    
11-Dec-07 09:00 paul           Note Added: 0002440                          
11-Dec-07 09:00 paul           Assigned To               => paul            
11-Dec-07 09:00 paul           Status                   new => feedback     
11-Dec-07 12:10 cloos          Note Added: 0002441                          
11-Dec-07 12:14 cloos          Note Added: 0002442                          
11-Dec-07 12:16 cloos          Note Edited: 0002441                         
14-Dec-07 11:44 cloos          Note Added: 0002444                          
16-Dec-07 05:32 cloos          Note Added: 0002445                          
16-Dec-07 05:32 cloos          File Added: dbmail-search-arg-assert             
      
16-Dec-07 15:22 paul           Note Added: 0002446                          
16-Dec-07 15:22 paul           Status                   feedback => resolved
16-Dec-07 15:22 paul           Resolution               open => fixed       
16-Dec-07 15:22 paul           Projection               none => minor fix   
16-Dec-07 15:22 paul           Fixed in Version          => 2.2.9           
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to