Author Topic: Message with attachment gets blank body in sent folder  (Read 6970 times)

Offline Erik B

  • Newbie
  • *
  • Posts: 9
Message with attachment gets blank body in sent folder
« on: September 14, 2010, 08:36:24 AM »
Hi!

We have used Roundcube for a few months now and absolutely love it!

But after upgrading to 0.4 (stable) we have seen a problem that we didn't have before. If I send an email (text or HTML) with an attachment, the body is blank when I look at it in my Sent-folder.

The recipient gets the email WITH the message in the body, no problem. And we have looked at older emails from before the update (0.3.1), and then we didn't have the problem. Tested on Chrome and Safari on Mac, and on IE and Firefox on PC.

Does anybody know if we can fix this by changing anything with us? Or should we report this as a bug in some way?

I know I prefixed this wrong, but couldn't find 0.4 stable. LEt me know if I should post this elsewhere.

Thanks in advance!
Erik Bennerhult
Loominous - Få en riktigt bra hemsida!
« Last Edit: September 14, 2010, 12:24:08 PM by Erik B »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Message with attachment gets blank body in sent folder
« Reply #1 on: September 14, 2010, 12:01:32 PM »
Its working fine for me, is there anything in your error log and are you using any plugins?

Offline Erik B

  • Newbie
  • *
  • Posts: 9
Message with attachment gets blank body in sent folder
« Reply #2 on: September 14, 2010, 12:23:10 PM »
Thanks for your input! So, you can send a message with an attachment with 4.0 and see the message in your sent-folder? Then I guess it's something in our configuration. Any ideas? :)

I do get
"[13-Sep-2010 16:20:15] PHP Warning:  Cannot use a scalar value as an array in /home/public_html/program/steps/mail/getunread.inc on line 39"
but we did get that before the upgrade as well. I don't know if it could be related.

Offline Erik B

  • Newbie
  • *
  • Posts: 9
Message with attachment gets blank body in sent folder
« Reply #3 on: September 14, 2010, 12:27:38 PM »
Oh, and about plugins. We don't use any. But we have made quite a few changes to the config-file.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Message with attachment gets blank body in sent folder
« Reply #4 on: September 14, 2010, 12:34:32 PM »
Can you enable imap_debug in /config/main.inc.php and post the output.

Offline Erik B

  • Newbie
  • *
  • Posts: 9
Message with attachment gets blank body in sent folder
« Reply #5 on: September 14, 2010, 12:48:54 PM »
Mmhmm, it outputs a lot. And it's my real email-client, so you'll get an excerpt :) Let me know if you need more!

[14-Sep-2010 18:43:03 +0200]: S: )
[14-Sep-2010 18:43:03 +0200]: S: * 1113 FETCH (UID 1116 RFC822.SIZE 4502 FLAGS (\Seen) INTERNALDATE "14-Sep-2010 18:43:01 +0200" BODY[HEADER.FIELDS (DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY X-DRAFT-INFO)] {401}
[14-Sep-2010 18:43:03 +0200]: S: Content-Type: multipart/mixed;
 boundary="=_13adccdc9c1b87c885dd45353a57b153"
Date: Tue, 14 Sep 2010 18:43:01 +0200
From: Erik Bennerhult
To: Erik Bennerhult
Subject: testsubject
Message-ID: <959a2a10a77b6386f5ec49c7875dd48a@lejbrink.space2u.com>

Content-Type: multipart/alternative;
 boundary="=_a4d4649c44bcdae12537818e468fae41"


[14-Sep-2010 18:43:03 +0200]: S: )
[14-Sep-2010 18:43:03 +0200]: S: FH12 OK FETCH completed
[14-Sep-2010 18:43:03 +0200]: C: srch1 SEARCH ALL UNSEEN
[14-Sep-2010 18:43:03 +0200]: S: * SEARCH
[14-Sep-2010 18:43:03 +0200]: S: srch1 OK SEARCH completed
[14-Sep-2010 18:43:03 +0200]: C: I LOGOUT
[14-Sep-2010 18:43:04 +0200]: S: * OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ SASL-IR LOGIN-REFERRALS] lejbrink.space2u.com IMAP4rev1 2007e.404 at Tue, 14 Sep 2010 18:43:04 +0200 (CEST)
[14-Sep-2010 18:43:04 +0200]: C: cp01 CAPABILITY
[14-Sep-2010 18:43:04 +0200]: S: * CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ IDLE UIDPLUS NAMESPACE CHILDREN MAILBOX-REFERRALS BINARY UNSELECT ESEARCH WITHIN SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND SASL-IR LOGIN-REFERRALS
[14-Sep-2010 18:43:04 +0200]: S: cp01 OK CAPABILITY completed
[14-Sep-2010 18:43:04 +0200]: C: a001 LOGIN "erik@lejbrinkbennerhult.se" "xxxx"
[14-Sep-2010 18:43:04 +0200]: S: a001 OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ IDLE UIDPLUS NAMESPACE CHILDREN MAILBOX-REFERRALS BINARY UNSELECT ESEARCH WITHIN SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User p33724x0 authenticated
[14-Sep-2010 18:43:04 +0200]: C: sel1 SELECT "Skickat"
[14-Sep-2010 18:43:04 +0200]: S: * 1113 EXISTS
[14-Sep-2010 18:43:04 +0200]: S: * 0 RECENT
[14-Sep-2010 18:43:04 +0200]: S: * OK [UIDVALIDITY 1268318146] UID validity status
[14-Sep-2010 18:43:04 +0200]: S: * OK [UIDNEXT 1117] Predicted next UID
[14-Sep-2010 18:43:04 +0200]: S: * FLAGS ($Forwarded \Answered \Flagged \Deleted \Draft \Seen)
[14-Sep-2010 18:43:04 +0200]: S: * OK [PERMANENTFLAGS ($Forwarded \* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags
[14-Sep-2010 18:43:04 +0200]: S: sel1 OK [READ-WRITE] SELECT completed
[14-Sep-2010 18:43:04 +0200]: C: FH12 UID FETCH 1116 (UID RFC822.SIZE FLAGS INTERNALDATE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY X-DRAFT-INFO)])
[14-Sep-2010 18:43:04 +0200]: S: * 1113 FETCH (UID 1116 RFC822.SIZE 4502 FLAGS (\Seen) INTERNALDATE "14-Sep-2010 18:43:01 +0200" BODYSTRUCTURE (("TEXT" "RTF" ("CHARSET" "UTF-8" "NAME" "hyresavtal, kontorsplatser.rtf") NIL NIL "BASE64" 3152 40 NIL ("ATTACHMENT" ("FILENAME" "hyresavtal, kontorsplatser.rtf")) NIL NIL) "MIXED" ("BOUNDARY" "=_13adccdc9c1b87c885dd45353a57b153") NIL NIL NIL) BODY[HEADER.FIELDS (DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY X-DRAFT-INFO)] {401}
[14-Sep-2010 18:43:04 +0200]: S: Content-Type: multipart/mixed;
 boundary="=_13adccdc9c1b87c885dd45353a57b153"
Date: Tue, 14 Sep 2010 18:43:01 +0200
From: Erik Bennerhult
To: Erik Bennerhult
Subject: testsubject
Message-ID: <959a2a10a77b6386f5ec49c7875dd48a@lejbrink.space2u.com>

Content-Type: multipart/alternative;
 boundary="=_a4d4649c44bcdae12537818e468fae41"

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Message with attachment gets blank body in sent folder
« Reply #6 on: September 14, 2010, 01:40:54 PM »
Can you post all of the log up to [14-Sep-2010 18:43:06 +0200] that way we can see the body of the message.

Offline Erik B

  • Newbie
  • *
  • Posts: 9
Message with attachment gets blank body in sent folder
« Reply #7 on: September 20, 2010, 03:38:27 AM »
Ok. Sorry for the late reply!!! I am really grateful that you take the time to help me with this.  I hope that I can helt out with the RoundCube-project myself eventually - I like it a lot.

I have attached the log up to 18:44.

Thanks in advance!
Erik

Offline toootooo

  • Jr. Member
  • **
  • Posts: 11
Message with attachment gets blank body in sent folder
« Reply #8 on: September 21, 2010, 09:21:18 AM »
Please, any solution for the problem!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Message with attachment gets blank body in sent folder
« Reply #9 on: September 21, 2010, 01:42:23 PM »
I am not see the imap server return a body for the email, its a little hard to tell with how much is in the log, could you turn off imap_debug then go to the sent folder and turn on imap_debug then click on the message and then turn off imap_debug so it just logs the opening of the message. Also what was in the message body of the email?

Offline Erik B

  • Newbie
  • *
  • Posts: 9
Message with attachment gets blank body in sent folder
« Reply #10 on: September 22, 2010, 09:49:04 AM »
Done deal! I typed "testing body text" as message body. See the attached Imap log as per your instructions.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Message with attachment gets blank body in sent folder
« Reply #11 on: September 22, 2010, 10:12:13 AM »
Your mail server definitely isn't returning the body of the message. What mail server are you using? Also out the curiosity can you download the attachment from them email in the sent folder?

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Message with attachment gets blank body in sent folder
« Reply #12 on: September 22, 2010, 12:37:48 PM »
It doesn't return body because Roundcube doesn't ask for it and this is because bodystructure response is wrong. Could you attach here complete raw message source from the server?

Offline toootooo

  • Jr. Member
  • **
  • Posts: 11
Message with attachment gets blank body in sent folder
« Reply #13 on: September 23, 2010, 12:44:05 AM »
In the full 'screen mode' - 2 clicks por  a message in 'Sent' folder i can see all the text and the attachments.

Offline Erik B

  • Newbie
  • *
  • Posts: 9
Message with attachment gets blank body in sent folder
« Reply #14 on: September 23, 2010, 05:53:02 AM »
Skaero - we use sendmail. And yes, I can open the attachment from the sent folder.