Commit ae378422 authored by Slava Monich's avatar Slava Monich

Merge pull request #15 from monich/no-empty-subject

[mms_task_encode] Don't encode empty subject
parents 341ec2da 35f8891c
......@@ -152,7 +152,9 @@ mms_encode_job_encode(
mms->sr.to = g_strdup(enc->to);
mms->sr.cc = g_strdup(enc->cc);
mms->sr.bcc = g_strdup(enc->bcc);
mms->sr.subject = g_strdup(enc->subject);
if (enc->subject && enc->subject[0]) {
mms->sr.subject = g_strdup(enc->subject);
}
mms->sr.dr = ((flags & MMS_SEND_FLAG_REQUEST_DELIVERY_REPORT) != 0);
mms->sr.rr = ((flags & MMS_SEND_FLAG_REQUEST_READ_REPORT) != 0);
mms->sr.content_type = mms_unparse_http_content_type((char**)ct);
......
......@@ -105,7 +105,7 @@ int main(int argc, char* argv[])
int ret = RET_ERR_CMDLINE;
gboolean ok, verbose = FALSE, dr = FALSE, rr = FALSE;
GError* error = NULL;
char* subject = NULL;
char* subject = "";
GOptionEntry entries[] = {
{ "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
"Enable verbose output", NULL },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment