fetchmail-friends
[Top] [All Lists]

[fetchmail]Domino IMAP and missing Content-Transfer-Encoding

2006-02-16 08:46:33
Hello,

I'm having a problem with missing Content-Transfer-Encoding
headers.  The server is Domino IMAP4 Server Release 6.5.4FP1.
When reading email via IMAP, everything appears normal.  However,
after fetchmail retrieves the message, I lose the
Content-Transfer-Encoding header and often mails end up looking like
garbage (many =3D=3D=3D etc)

Here are the relevant headers when viewed through an IMAP connection:

Subject: Re: Extended Attributes API
Sender: owner-freebsd-current(_at_)freebsd(_dot_)org
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Original-To: freebsd-current(_at_)freebsd(_dot_)org
Delivered-To: freebsd-current(_at_)freebsd(_dot_)org
References: <20060215124132(_dot_)GA51235(_at_)idkfa(_dot_)ath(_dot_)cx>
        <20060215150037(_dot_)J98052(_at_)fw(_dot_)reifenberger(_dot_)com>
        <20060215163813(_dot_)GA69533(_at_)idkfa(_dot_)ath(_dot_)cx>
        
<20060215174212(_dot_)C67143(_at_)beagle(_dot_)kn(_dot_)op(_dot_)dlr(_dot_)de>
User-Agent: nail 11.2 8/15/04
MIME-Version: 1.0

The headers after fetchmail retrieves the mail are missing the
Content-Transfer-Encoding line.  If I manually add the header, the
messages reads fine in mutt.

Curiously, I ran tcpdump and it appears that during the RFC822
HEADER fetch, the Content-Transfer-Encoding is not retrieved:

0x01b0:  490d 0a53 656e 6465 723a 206f 776e 6572  I..Sender:.owner
0x01c0:  2d66 7265 6562 7364 2d63 7572 7265 6e74  -freebsd-current
0x01d0:  4066 7265 6562 7364 2e6f 7267 0d0a 436f  @freebsd.org..Co
0x01e0:  6e74 656e 742d 5479 7065 3a20 7465 7874  ntent-Type:.text
0x01f0:  2f70 6c61 696e 3b20 6368 6172 7365 743d  /plain;.charset=
0x0200:  6973 6f2d 3838 3539 2d31 0d0a 582d 4f72  iso-8859-1..X-Or
0x0210:  6967 696e 616c 2d54 6f3a 2066 7265 6562  iginal-To:.freeb
0x0220:  7364 2d63 7572 7265 6e74 4066 7265 6562  sd-current(_at_)freeb
0x0230:  7364 2e6f 7267 0d0a 4465 6c69 7665 7265  sd.org..Delivere
0x0240:  642d 546f 3a20 6672 6565 6273 642d 6375  d-To:.freebsd-cu
0x0250:  7272 656e 7440 6672 6565 6273 642e 6f72  rrent(_at_)freebsd(_dot_)or
0x0260:  670d 0a52 6566 6572 656e 6365 733a 203c  g..References:.<

Another odd thing, if I manually add the Content-Transfer-Encoding
header and copy the mail back to the IMAP server and re-retrieve it
using fetchmail, the header is successfully retained.

I don't know why this is happening.  If I can read the header via
IMAP, why wouldn't fetchmail retrieve it?  Is it a phantom header?
Any ideas?

fetchmail -V

This is fetchmail release 6.3.2+POP2+RPA+NTLM+SDPS+SSL+OPIE+NLS.

Copyright (C) 2002, 2003 Eric S. Raymond
Copyright (C) 2004 Matthias Andree, Eric S. Raymond, Rob F. Funk, Graham Wilson
Copyright (C) 2005 Matthias Andree, Sunil Shetye
Copyright (C) 2006 Matthias Andree
Fetchmail comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. For details,
please see the file COPYING in the source or documentation directory.

Fallback MDA: (none)
FreeBSD itsec.walgreens.com 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Thu Feb  
2 08:46:55 CST 2006     
root(_at_)itsec(_dot_)walgreens(_dot_)com:/usr/obj/usr/src/sys/WALGREENS  i386
Taking options from command line and /home/atk/.fetchmailrc
Poll interval is 300 seconds
Idfile is /home/atk/.fetchids
Fetchmail will forward misaddressed multidrop messages to atk.
Fetchmail will direct error mail to the postmaster.
Options for retrieving from akim(_at_)notesmail7(_dot_)walgreens(_dot_)com:
  True name of server is notesmail7.walgreens.com.
  Protocol is IMAP.
  All available authentication methods will be tried.
  Server nonresponse timeout is 300 seconds (default).
  Selected mailboxes are: ML
  All messages will be retrieved (--all on).
  Fetched messages will not be kept on the server (--keep off).
  Old messages will not be flushed before message retrieval (--flush off).
  Oversized messages will not be flushed before message retrieval (--limitflush 
off).
  Rewrite of server-local addresses is enabled (--norewrite off).
  Carriage-return stripping is enabled (stripcr on).
  Carriage-return forcing is disabled (forcecr off).
  Interpretation of Content-Transfer-Encoding is enabled (pass8bits off).
  MIME decoding is disabled (mimedecode off).
  Idle after poll is disabled (idle off).
  Nonempty Status lines will be kept (dropstatus off)
  Delivered-To lines will be kept (dropdelivered off)
  Fetch message size limit is 100 (--fetchsizelimit 100).
  Do binary search of UIDs during 9 out of 10 polls (--fastuidl 10).
  Messages will be delivered with "/usr/local/bin/procmail -d %T".
  Single-drop mode: 1 local name recognized.
  No UIDs saved from this host.


_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
http://lists.ccil.org/cgi-bin/mailman/listinfo/fetchmail-friends