Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 280129 Details for
Bug 375287
sys-process/fcron-3.0.6-r1 and sys-process/fcron-3.0.6-r2 mailing
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Add content-transfer-encoding and content-type tags in message header
content_msg_header.patch (text/plain), 1.07 KB, created by
Vadim Petryaev
on 2011-07-15 13:44:15 UTC
(
hide
)
Description:
Add content-transfer-encoding and content-type tags in message header
Filename:
MIME Type:
Creator:
Vadim Petryaev
Created:
2011-07-15 13:44:15 UTC
Size:
1.07 KB
patch
obsolete
>diff -urN fcron-3.0.6/job.c fcron-3.0.6.patch/job.c >--- fcron-3.0.6/job.c 2010-03-03 00:47:03.000000000 +0300 >+++ fcron-3.0.6.patch/job.c 2011-07-05 14:08:58.000000000 +0400 >@@ -232,11 +232,23 @@ > /* is this a complete mail address ? (ie. with a "@", not only a username) */ > char complete_adr = 0; > int i; >+ env_t *env; >+ char *env_string; > > if ( mailf == NULL ) > die_e("Could not fdopen() mailfd"); > > /* write mail header */ >+ for ( env = line->cl_file->cf_env_base; env; env = env->e_next) { >+ if ( strncmp(env->e_val,"CONTENT_TYPE=",strlen("CONTENT_TYPE="))==0 ) { >+ env_string=strchr(env->e_val,'=')+1; >+ fprintf(mailf, "Content-Type: %s\n", env_string); >+ } else >+ if ( strncmp(env->e_val,"CONTENT_TRANSFER_ENCODING=",strlen("CONTENT_TRANSFER_ENCODING="))==0 ) { >+ env_string=strchr(env->e_val,'=')+1; >+ fprintf(mailf, "Content-Transfer-Encoding: %s\n", env_string); >+ } >+ } > fprintf(mailf, "To: %s", line->cl_mailto); > > #ifdef HAVE_GETHOSTNAME
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 375287
: 280129