mutt/2465: [PATCH] Use Delivered-to header in set_reverse_name()
>Number: 2465
>Notify-List:
>Category: mutt
>Synopsis: [PATCH] Use Delivered-to header in set_reverse_name()
>Confidential: no
>Severity: normal
>Priority: medium
>Responsible: mutt-dev
>State: open
>Keywords:
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Sep 03 21:30:45 +0200 2006
>Originator: Nathan Straz
>Release: cvs
>Organization:
>Environment:
Debian GNU/Linux
>Description:
This patch makes use of the Delivered-to: header when building the From:
address in set_reverse_name(). This is needed so that alternate addresses can
be found in emails sent from mailing lists where the alternate address isn't in
the normal To: or Cc: headers.
>How-To-Repeat:
>Fix:
Included
>Add-To-Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="use-delivered-to.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="use-delivered-to.patch"
SW5kZXg6IG11dHQuaAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3Zzcm9vdHMvbXV0dC9tdXR0Lmgs
dgpyZXRyaWV2aW5nIHJldmlzaW9uIDMuNjgKZGlmZiAtdSAtcjMuNjggbXV0dC5oCi0tLSBtdXR0
LmgJMTUgQXVnIDIwMDYgMTc6MDg6MzIgLTAwMDAJMy42OAorKysgbXV0dC5oCTMgU2VwIDIwMDYg
MTg6MDk6MjMgLTAwMDAKQEAgLTU3OSw2ICs1NzksNyBAQAogICBBRERSRVNTICpzZW5kZXI7CiAg
IEFERFJFU1MgKnJlcGx5X3RvOwogICBBRERSRVNTICptYWlsX2ZvbGxvd3VwX3RvOworICBBRERS
RVNTICpkZWxpdmVyZWRfdG87CiAgIGNoYXIgKmxpc3RfcG9zdDsJCS8qIHRoaXMgc3RvcmVzIGEg
bWFpbHRvIFVSTCwgb3Igbm90aGluZyAqLwogICBjaGFyICpzdWJqZWN0OwogICBjaGFyICpyZWFs
X3N1Ymo7C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