[sylpheed:31725] Re: How can I disable X-Mail header in sylpheed?

zelehaist zelehaist at greyforest.org
Sat Sep 22 05:15:51 JST 2007


On Wed, 19 Sep 2007 14:47:46 -0400
misc <misc at mail333.com> wrote:

> I would like to remove X-Mailer header.

Edit and recompile src/compose.c source file removing/commenting:

>>start
 /* Program version and system info */
        if (compose->to_list && !IS_IN_CUSTOM_HEADER("X-Mailer")) {
                fprintf(fp, "X-Mailer: %s (GTK+ %d.%d.%d; %s)\n",
                        prog_version,
                        gtk_major_version, gtk_minor_version, gtk_micro_version,
                        TARGET_ALIAS);
        }
        if (compose->newsgroup_list && !IS_IN_CUSTOM_HEADER("X-Newsreader")) {
                fprintf(fp, "X-Newsreader: %s (GTK+ %d.%d.%d; %s)\n",
                        prog_version,
                        gtk_major_version, gtk_minor_version, gtk_micro_version,
                        TARGET_ALIAS);
        }
>>end

or simply use attached patch for sylhpeed 2.4.6 linux version. (hint: patch -p1 < no-useragent.patch )
If you want to use x-mailer again you can add it to customheaders.

Greets,
-- 
 zelehaist at greyforest.org
        \ http://greyforest.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.sraoss.jp/pipermail/sylpheed/attachments/20070921/ccabb509/attachment.bin 


More information about the Sylpheed mailing list