summaryrefslogtreecommitdiff
path: root/libmailutils
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-03-10 09:58:45 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2011-03-10 09:58:45 +0200
commit0ac52e06cb1cb91602ee4dc4de32f66423e96b32 (patch)
tree9256c081ddffea363fcf2da1cc9ff4a6d4ee8370 /libmailutils
parentac1262fb8a5d845c9e16a9679239142d0bf00522 (diff)
downloadmailutils-0ac52e06cb1cb91602ee4dc4de32f66423e96b32.tar.gz
mailutils-0ac52e06cb1cb91602ee4dc4de32f66423e96b32.tar.bz2
message_stream: deduce default envelope address from the current user email
* libmailutils/stream/message_stream.c: Unless specified otherwise, set envelope address based on the current user email. * mh/tests/burst.at: Remove all X-Envelope headers before comparison.
Diffstat (limited to 'libmailutils')
-rw-r--r--libmailutils/stream/message_stream.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/libmailutils/stream/message_stream.c b/libmailutils/stream/message_stream.c
index ecef8bfe1..03e02603a 100644
--- a/libmailutils/stream/message_stream.c
+++ b/libmailutils/stream/message_stream.c
@@ -236,13 +236,15 @@ _message_open (mu_stream_t stream)
mu_address_t addr;
mu_address_create (&addr, from);
- if (!addr
- || mu_address_aget_email (addr, 1, &env_from))
- env_from = mu_strdup ("GNU-Mailutils");
- mu_address_destroy (&addr);
+ if (addr)
+ {
+ mu_address_aget_email (addr, 1, &env_from);
+ mu_address_destroy (&addr);
+ }
}
- else
- env_from = mu_strdup ("GNU-MH");
+
+ if (!env_from)
+ env_from = mu_get_user_email (NULL);
}
free (from);

Return to:

Send suggestions and report system problems to the System administrator.