Author Topic: ForwardAttachment Full Headers Request  (Read 5531 times)

Offline stkcode

  • Jr. Member
  • **
  • Posts: 13
ForwardAttachment Full Headers Request
« on: October 17, 2010, 06:56:36 PM »
It would be nice if future forwardattachment plugin releases would include all email headers from the original email and not just the sender, recipient, subject and date as the regular forward works (not as an attachment).

Reason being is if one is forwarding the original message for abuse where all headers need to be intact so the admin can actually see the mail came from there system and not a just some bozo using forged headers.

Or when submitting it to train a spam filter (I realize markasjunk2 can do this).

Thanks.
« Last Edit: October 17, 2010, 07:14:16 PM by stkcode »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
ForwardAttachment Full Headers Request
« Reply #1 on: October 18, 2010, 01:21:30 AM »
Works for me. All original headers are included. Maybe it is an Imap server issue? I use imap->get_raw_body method which fetches the whole message source.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline stkcode

  • Jr. Member
  • **
  • Posts: 13
ForwardAttachment Full Headers Request
« Reply #2 on: October 18, 2010, 04:52:25 PM »
Hmm...actually, I'm thinking this might be an RC problem or a possible compatibility issue between plugins.

I can view all the headers in the original message by clicking on the little arrow below the Date field.  When I click on the forward button (not as an attachment), only the date, subject, to and from are there...rest of the headers are gone.

This use to work fine in Squirrelmail using the same imap server.

If I understand imap correctly, since the original message contains the full headers (viewable in the client..i.e RC), then the imap server has done it's job.  It sent the message in it's entirety.  It's the imap client's problem on how the message is handled after that, at least in regards to forwarding the message.

I'll run a couple of tests with something like outlook...see if it works ok.

I didn't see one but perhaps there's some option I missed to enable this in RC?

Apache 2.2.16
PHP 5.2.14
Cyrus-imap 2.3.16
Roundcube 0.4.2

Thanks,
Jon

Offline stkcode

  • Jr. Member
  • **
  • Posts: 13
ForwardAttachment Full Headers Request
« Reply #3 on: October 18, 2010, 05:15:38 PM »
Ok, well thanks anyway.

It was an RC issue or rather a setting.  I had to change under

Settings -> Composing Messages -> Attachment Names

From

"Full RFC 2231 (Firebird)"

to

"Full RFC 2047 (Other)".

While doing a regular forward still does not include all the headers, the forward as attachment does.

Just thought I'd post this here in case anyone else runs across the same problem.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
ForwardAttachment Full Headers Request
« Reply #4 on: October 19, 2010, 12:40:20 AM »
I think you misunderstand something.

Look into the source code of a email forwarded as attachment.
You'll see something like that:

Quote

Return-Path: xx@xx.com
Received: from smtp.mail4us.net ([127.0.0.1]) by smtp.xxx.de ; Tue, 19 Oct
 2010 06:31:29 +0200
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=_45e60277801b2f993865b6c66215576c"
Date: Tue, 19 Oct 2010 06:31:29 +0200
From: Rosali
To:
Subject: Fwd: [RCD] Roundcube plugin
Organization: Privat
Reply-To:
Message-ID: <2c96392a4f48e7abe9bf592392d6f019@sdfadaaf.de>
X-Sender: xx@xx.com
User-Agent: Mail4us.net Webmail/0.5-trunk

--=_45e60277801b2f993865b6c66215576c
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=UTF-8; format=flowed

 test
--=_45e60277801b2f993865b6c66215576c
Content-Transfer-Encoding: 8bit
Content-Type: message/rfc822; charset=UTF-8; name=Re___RCD__Fwd__R.eml
Content-Disposition: inline; filename=Re___RCD__Fwd__R.eml

MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Sun, 17 Oct 2010 09:39:40 +0200
From: Rosali
To:
Subject: Re: [RCD] Fwd: Roundcube plugin
Organization: Privat
Reply-To:
In-Reply-To: <0700fa115c350308e4e302b8e63dee01@xx.fr>
References: <0700fa115c350308e4e302b8e63dee01@xx.fr>
Message-ID: <243ed3b525570b3548ecf4aa5598b7fb@xx.de>
X-Sender: xx@xx.com
User-Agent: Mail4us.net Webmail/0.5-trunk

 On Thu, 27 May 2010 18:20:58 +0200, abc wrote:
> -------- Original Message --------
>
>        SUBJECT:
>        Roundcube plugin
>
Regards,
 R.

--=_45e60277801b2f993865b6c66215576c--



All original headers are present in the attached .eml file (Content-Type: message/rfc822;).

The header preview in Roundcube's preview pane shows the headers of the message which contains the .eml attachment and not the attachment's headers.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)