Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(95)  |  Call(95)  |  Derive(0)  |  Import(0)
Add a header line to the MIME message.

The key is the name of the header, where the value obviously provides
the value of the header. The optional argument prefix determines
where the header is inserted; 0 means append at the end, 1 means
insert at the start. The default is to append.

src/e/n/Enigma2PC-HEAD/lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/plugin.py   Enigma2PC(Download)
	subject = "Automatically generated crashlogmail"
	# Define the main body headers.
	writer.addheader('To', "dream-multimedia-crashlogs <enigma2@crashlog.dream-multimedia-tv.de>")
	writer.addheader('From', "CrashlogAutoSubmitter <enigma2@crashlog.dream-multimedia-tv.de>")
	writer.addheader('Subject', str(subject))
	writer.addheader('Date', smtp.rfc822date())
	if config.plugins.crashlogautosubmit.attachemail.value is True:
		if  str(config.plugins.crashlogautosubmit.email.value) != "myemail@home.com":
			writer.addheader('Reply-To', str(str(config.plugins.crashlogautosubmit.email.value)))

src/s/i/silva.pageactions.mailpdf-1.0.2/silva/pageactions/mailpdf/mailpdf.py   silva.pageactions.mailpdf(Download)
        message = StringIO.StringIO()
        writer = MimeWriter.MimeWriter(message)
        writer.addheader('MIME-Version', '1.0')
        writer.addheader('Subject', subject)
        writer.addheader('To', to)
        writer.addheader('From', mail_from)

src/p/y/pyblosxom-1.5.3/Pyblosxom/plugins/comments.py   pyblosxom(Download)
    writer = MimeWriter.MimeWriter(out)
    for header,value in headers:
        writer.addheader(header, value)
    writer.addheader("MIME-Version", "1.0")
    writer.startmultipartbody("alternative")

src/p/y/pyblosxom-HEAD/Pyblosxom/plugins/comments.py   pyblosxom(Download)
    writer = MimeWriter.MimeWriter(out)
    for header,value in headers:
        writer.addheader(header, value)
    writer.addheader("MIME-Version", "1.0")
    writer.startmultipartbody("alternative")

src/g/t/gtfs-data-exchange-HEAD/contrib/EmailUtils.py   gtfs-data-exchange(Download)
    message = StringIO.StringIO()
    writer = MimeWriter.MimeWriter(message)
    writer.addheader('MIME-Version', '1.0')
    writer.addheader('Subject', subject)
    writer.addheader('To','<'+toemail+'>')
    #writer.addheader('Reply-To','"GTFS Data Exchange"<donotreply@'+params["webhost"]+'>')
    writer.addheader('From','"GTFS Data Exchange" <'+fromAddress+'>')

src/n/e/newspipe-HEAD/newspipe.py   newspipe(Download)
 
    for x,y in headers:
        writer.addheader(x, y.encode('utf-8'))
 
    writer.addheader("MIME-Version", "1.0")

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/test/test_MimeWriter.py   main(Download)
 
        toplevel = MimeWriter(buf)
        toplevel.addheader("From", "bwarsaw@cnri.reston.va.us")
        toplevel.addheader("Date", "Mon Feb 12 17:21:48 EST 1996")
        toplevel.addheader("To", "kss-submit@cnri.reston.va.us")
        toplevel.addheader("MIME-Version", "1.0")
        m = MimeWriter(md1.startbody("message/rfc822"))
        for key, value in SIMPLE_METADATA:
            m.addheader("KPMD-" + key, value)
        m.flushheaders()
        del md1

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/test/test_MimeWriter.py   main(Download)
 
        toplevel = MimeWriter(buf)
        toplevel.addheader("From", "bwarsaw@cnri.reston.va.us")
        toplevel.addheader("Date", "Mon Feb 12 17:21:48 EST 1996")
        toplevel.addheader("To", "kss-submit@cnri.reston.va.us")
        toplevel.addheader("MIME-Version", "1.0")
        m = MimeWriter(md1.startbody("message/rfc822"))
        for key, value in SIMPLE_METADATA:
            m.addheader("KPMD-" + key, value)
        m.flushheaders()
        del md1

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/test/test_MimeWriter.py   openvault-core(Download)
 
    toplevel = MimeWriter(sys.stdout)
    toplevel.addheader("From", "bwarsaw@cnri.reston.va.us")
    toplevel.addheader("Date", "Mon Feb 12 17:21:48 EST 1996")
    toplevel.addheader("To", "kss-submit@cnri.reston.va.us")
    toplevel.addheader("MIME-Version", "1.0")
    m = MimeWriter(md1.startbody("message/rfc822"))
    for key, value in SIMPLE_METADATA:
        m.addheader("KPMD-" + key, value)
    m.flushheaders()
    del md1

src/p/l/plexnet-HEAD/third_party/generic/pypy/lib-python/2.5.2/test/test_MimeWriter.py   plexnet(Download)
 
    toplevel = MimeWriter(sys.stdout)
    toplevel.addheader("From", "bwarsaw@cnri.reston.va.us")
    toplevel.addheader("Date", "Mon Feb 12 17:21:48 EST 1996")
    toplevel.addheader("To", "kss-submit@cnri.reston.va.us")
    toplevel.addheader("MIME-Version", "1.0")
    m = MimeWriter(md1.startbody("message/rfc822"))
    for key, value in SIMPLE_METADATA:
        m.addheader("KPMD-" + key, value)
    m.flushheaders()
    del md1

  1 | 2 | 3  Next