fetchmail-friends
[Top] [All Lists]

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

2006-02-16 11:35:49
On Thu, Feb 16, 2006, Matthias Andree wrote:
Well, this pretty clearly is a server bug.

There is nothing in fetchmail that would say
"send me all headers but xyz".

That's what I hoped to here.. eliminates one of the variables
entirely.

What does your mailer request?
Does it retrieve header and body separately.
What command does it send?

I am using mutt's imap implementation.

It's doing a FETCH -- I assume in standard fashion.
Client sends:

0x0030:  0500 4fff 6130 3035 3220 4645 5443 4820  ..O.a0052.FETCH.
0x0040:  313a 3120 2855 4944 2046 4c41 4753 2049  1:1.(UID.FLAGS.I
0x0050:  4e54 4552 4e41 4c44 4154 4520 5246 4338  NTERNALDATE.RFC8
0x0060:  3232 2e53 495a 4520 424f 4459 2e50 4545  22.SIZE.BODY.PEE
0x0070:  4b5b 4845 4144 4552 2e46 4945 4c44 5320  K[HEADER.FIELDS.
0x0080:  2844 4154 4520 4652 4f4d 2053 5542 4a45  (DATE.FROM.SUBJE
0x0090:  4354 2054 4f20 4343 204d 4553 5341 4745  CT.TO.CC.MESSAGE
0x00a0:  2d49 4420 5245 4645 5245 4e43 4553 2043  -ID.REFERENCES.C
0x00b0:  4f4e 5445 4e54 2d54 5950 4520 434f 4e54  ONTENT-TYPE.CONT
0x00c0:  454e 542d 4445 5343 5249 5054 494f 4e20  ENT-DESCRIPTION.
0x00d0:  494e 2d52 4550 4c59 2d54 4f20 5245 504c  IN-REPLY-TO.REPL
0x00e0:  592d 544f 204c 494e 4553 204c 4953 542d  Y-TO.LINES.LIST-
0x00f0:  504f 5354 2058 2d4c 4142 454c 295d 290d  POST.X-LABEL)]).

Server responds:

0x0030:  48b8 07ee 2a20 3120 4645 5443 4820 2855  H...*.1.FETCH.(U
0x0040:  4944 2031 3620 494e 5445 524e 414c 4441  ID.16.INTERNALDA
0x0050:  5445 2022 3136 2d46 6562 2d32 3030 3620  TE."16-Feb-2006.
0x0060:  3138 3a31 333a 3039 202b 3030 3030 2220  18:13:09.+0000".
0x0070:  5246 4338 3232 2e53 495a 4520 3234 3136  RFC822.SIZE.2416
0x0080:  2042 4f44 595b 4845 4144 4552 2e46 4945  .BODY[HEADER.FIE
0x0090:  4c44 5320 2844 4154 4520 4652 4f4d 2053  LDS.(DATE.FROM.S
0x00a0:  5542 4a45 4354 2054 4f20 4343 204d 4553  UBJECT.TO.CC.MES
0x00b0:  5341 4745 2d49 4420 5245 4645 5245 4e43  SAGE-ID.REFERENC
0x00c0:  4553 2043 4f4e 5445 4e54 2d54 5950 4520  ES.CONTENT-TYPE.
0x00d0:  434f 4e54 454e 542d 4445 5343 5249 5054  CONTENT-DESCRIPT
0x00e0:  494f 4e20 494e 2d52 4550 4c59 2d54 4f20  ION.IN-REPLY-TO.
0x00f0:  5245 504c 592d 544f 204c 494e 4553 204c  REPLY-TO.LINES.L
0x0100:  4953 542d 504f 5354 2058 2d4c 4142 454c  IST-POST.X-LABEL
0x0110:  295d 207b 3236 367d 0d0a 4d65 7373 6167  )].{266}..Messag
0x0120:  652d 4944 3a20 3c32 3030 3630 3231 3631  e-ID:.<200602161
0x0130:  3831 3330 342e 3130 3333 352e 716d 6169  81304.10335.qmai
0x0140:  6c40 7765 6233 3339 3131 2e6d 6169 6c2e  
l(_at_)web33911(_dot_)mail(_dot_)
0x0150:  6d75 642e 7961 686f 6f2e 636f 6d3e 0d0a  mud.yahoo.com>..
0x0160:  4461 7465 3a20 5468 752c 2031 3620 4665  Date:.Thu,.16.Fe
0x0170:  6220 3230 3036 2031 303a 3133 3a30 3420  b.2006.10:13:04.
0x0180:  2d30 3830 3020 2850 5354 290d 0a46 726f  -0800.(PST)..Fro
0x0190:  6d3a 2041 6e74 686f 6e79 204b 696d 203c  m:.Anthony.Kim.<
...
0x01b0:  636f 6d3e 0d0a 5375 626a 6563 743a 2052  com>..Subject:.R
0x01c0:  653a 2054 6869 7320 6973 2061 2074 6573  e:.This.is.a.tes
0x01d0:  740d 0a54 6f3a 2061 6e74 686f 6e79 2e6b  t..To:.anthony.k
0x01e0:  696d 4077 616c 6772 6565 6e73 2e63 6f6d  im(_at_)walgreens(_dot_)com
0x01f0:  0d0a 436f 6e74 656e 742d 5479 7065 3a20  ..Content-Type:.
0x0200:  7465 7874 2f70 6c61 696e 3b20 6368 6172  text/plain;.char
0x0210:  7365 743d 6973 6f2d 3838 3539 2d31 0d0a  set=iso-8859-1..
0x0220:  0d0a 0d0a 2046 4c41 4753 2028 2929 0d0a  .....FLAGS.())..
0x0230:  6130 3035 3220 4f4b 2046 4554 4348 2063  a0052.OK.FETCH.c
0x0240:  6f6d 706c 6574 6564 0d0a                 ompleted..

Server says OK FETCH completed although you don't see the
Content-Transfer-Encoding header here.  Is that normal?

Now, when the server responds with BODY - you DO see the
Content-Transfer-Encoding header:
...
0x0030:  48b8 0a86 2a20 3120 4645 5443 4820 2842  H...*.1.FETCH.(B
0x0040:  4f44 595b 5d20 7b32 3431 367d 0d0a 5265  ODY[].{2416}..Re
0x0050:  6365 6976 6564 3a20 6672 6f6d 2064 6f6d  ceived:.from.dom
0x0060:  736d 7470 312e 7761 6c67 7265 656e 732e  smtp1.walgreens.
0x0430:  636f 6d3e 0d0a 5375 626a 6563 743a 2052  com>..Subject:.R
0x0440:  653a 2054 6869 7320 6973 2061 2074 6573  e:.This.is.a.tes
0x0450:  740d 0a54 6f3a 2061 6e74 686f 6e79 2e6b  t..To:.anthony.k
0x0460:  696d 4077 616c 6772 6565 6e73 2e63 6f6d  im(_at_)walgreens(_dot_)com
0x0470:  0d0a 436f 6e74 656e 742d 5479 7065 3a20  ..Content-Type:.
0x0480:  7465 7874 2f70 6c61 696e 3b20 6368 6172  text/plain;.char
0x0490:  7365 743d 6973 6f2d 3838 3539 2d31 0d0a  set=iso-8859-1..
0x04a0:  436f 6e74 656e 742d 5472 616e 7366 6572  Content-Transfer
0x04b0:  2d45 6e63 6f64 696e 673a 2071 756f 7465  -Encoding:.quote
0x04c0:  642d 7072 696e 7461 626c 650d 0a44 6f6d  d-printable..Dom
0x04d0:  6169 6e4b 6579 2d53 6967 6e61 7475 7265  ainKey-Signature
0x04e0:  3a20 613d 7273 612d 7368 6131 3b20 713d  :.a=rsa-sha1;.q=
0x04f0:  646e 733b 2063 3d6e 6f66 7773 3b0d 0a20  dns;.c=nofws;...

Looks definitely like a server problem :(

And then when I run fetchmail, like before, I'm not given the
CTE header and the quoted-printable output looks like garbage.

I don't know if the problem in fact is Domino being stupid and due
to some strange reaction from our antispam engine.  I see this
later in the mail headers:

X-PMX-Version: 5.1.2.240295, Antispam-Engine: 2.3.0.0, Antispam-Data: 
2006.02.15.154604
X-MIME-Autoconverted: from 8bit to quoted-printable by iwagmail7.walgreens.com 
id k1G07s8X
030905
X-MIMETrack: Itemize by SMTP Server on DomSMTP1/Walgreens(Release 
6.5.5|November 30, 2005)
...

It's that Autoconvert line that has me thinking.  But since I'm not
the server admin, I'll have to make due.

Is there any harm in a procmail recipe that adds CTE:
quoted-printable to my mails?

Anthony


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