summaryrefslogtreecommitdiffstats
path: root/modules/mailer
Commit message (Collapse)AuthorAgeFilesLines
* Add golangci (#6418)kolaente2019-06-121-9/+6
|
* Add SUBJECT_PREFIX mailer config option (#6605)zeripath2019-04-171-1/+5
| | | | | | | | * Add SUBJECT_PREFIX mailer config option * Add space between subject prefix and subject (Change from Gogs) Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add X-Auto-Response-Suppress header to outgoing messages (#6492)mrsdizzie2019-04-021-0/+1
| | | | | | | | | | This is a header used to suggest mail servers not to respond to a message with an auto-responder: https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxcmail/ced68690-498a-4567-9d14-5c01f974d8b1 This header is also used by github and gitlab in outgoing messages. Fixes #6484
* Better logging (#6038) (#6095)zeripath2019-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
* Make log mailer for testing (#5893)zeripath2019-02-021-3/+21
| | | | | | | | | | | | | | | | | | * Create log mailer for testing email settings Signed-off-by: Andrew Thornton <art27@cantab.net> * Switch on the log mailer for the integration tests This ensures that the sending mail process works Signed-off-by: Andrew Thornton <art27@cantab.net> * rename the from user for mysql/mssql * rename log sender to dummy sender * update the integration tests
* Explicitly decide whether to use TLS in mailer's configuration (#5024)Lanre Adelowo2018-11-261-3/+2
| | | | | | | | * explicitly decide on using TLS for mail connections * explicitly decide on using TLS for mail connections * keep compatibility
* Add support for extra sendmail arguments (#2731)Jonas Bröms2017-10-251-0/+1
| | | | | | | | | | | | * Add support for extra sendmail arguments * Sendmail args to exec.command should be a list * Add go-shellquote package * Use go-shellquote lib for parsing Sendmail args * Only parse if sendmail is configured
* Fix sending mail with a non-latin display name. #2102 (#2559)Rémi Saurel2017-09-211-3/+3
| | | | | | | | | | * Fix sending mail with a non-latin display name. #2102 Signed-off-by: Rémi Saurel <contact@remi-saurel.com> * Take into account the possibility that setting.MailService.From is in `name <email@address>` format. #2102 Signed-off-by: Rémi Saurel <contact@remi-saurel.com>
* Fix fmt error in mailer (#2490)Jonas Östanbäck2017-09-121-1/+1
|
* Fix slice out of bounds error in mailer (#2479)Jonas Östanbäck2017-09-111-1/+2
|
* fix misspell (#1996)Bo-Yi Wu2017-06-181-1/+1
| | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Send mails as HTML as default. Setting for send as plain text. (#1648)Jonas Östanbäck2017-06-071-13/+14
| | | | | | | | | | | | | * Send mails as HTML as default. Setting for send as plain text. * Add new option SendAsPlainText. remove EnableHTMLAlternative * Send HTML mails as default * Add html check if html2text should be performed * Send only multipart or plain. Add deprication warning for ENABLE_HTML_ALTERNATIVE * Still use ENABLE_HTML_ALTERNATIVE for backward compatibility * Changed to not ignore html2text errors
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-151-1/+1
|
* Cleanup log messagingGabriel Jackson2017-02-021-1/+1
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* fix gofmt errorBo-Yi Wu2016-12-301-3/+2
| | | | Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* Implement sendmail (#355)Philip Couling2016-12-251-6/+54
| | | | | | | | | | | | | | | | * Implemented sendmail. This piggybacks on existing configuration to keep the change simple * Changed privicy of new sendSMTP and sendSendmail functions * Fixed Lint errors * Seperated SMTP and sendmail into their own senders * Making new structs private as they should not be used externally now * Added sendmail setting to ini file * Minor code cleanup
* Golint fixed for modules/mailerLunny Xiao2016-11-251-1/+8
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-2/+2
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-2/+2
|
* Web editor: fix cannot create new file in subdirectoryUnknwon2016-08-291-2/+2
|
* #2854 fix no mail notification when issue is closed/reopenedUnknwon2016-07-162-191/+3
|
* #2954 minor fix for when to set HTML alternativeUnknwon2016-05-301-5/+3
|
* #2954 use text/plain as default email content formatUnknwon2016-05-301-7/+11
|
* Do not write HTML in text/plain mail part (#2954)Sandro Santilli2016-05-301-3/+11
| | | | | | | | | | * Do not write HTML in text/plain mail part Fixes #2928 * Pass text/plain first, text/html second * Do not send plain/text email if html2text failed (untested)
* Minor fix for #2660Unknwon2016-02-241-4/+3
|
* Test mailer button. Addresses #1531Josh Frye2016-02-241-0/+6
|
* #2334 strip whitespace for migrate URLUnknwon2016-02-201-1/+4
| | | | Also fix a possible race condition while install
* Make markdown as an independent moduleUnknwon2016-02-201-2/+3
|
* Fix issue email formatting. Addresses #2331Josh Frye2016-02-181-1/+2
|
* make mailer log more verboseUnknwon2015-12-191-9/+9
|
* fix #1829 and fix #890Unknwon2015-12-041-2/+2
|
* fix import path, fix #1782Unknwon2015-10-151-1/+1
|
* #1525 Triggere mailer for admin created accountsUnknwon2015-09-251-4/+18
|
* finish all new template for current onesUnknwon2015-09-171-36/+35
|
* finish new auth e-mailsUnknwon2015-09-171-15/+11
|
* user gomail and new activate account email tplUnknwon2015-09-172-212/+96
| | | | | | - #1496: fallback plain text - #1002: add date header - #913: fix encoding of header
* simplify namesUnknwon2015-09-161-2/+6
|
* #1649 Using commas to delineate emailsUnknwon2015-09-161-3/+3
|
* fix syntax errorHongcai Deng2015-09-071-3/+3
|
* implemented #1528Hongcai Deng2015-09-071-2/+4
|
* Fix missing space in issue emails subjectLouis Matthijssen2015-08-241-2/+2
|
* minor fix on #1517Unknwon2015-08-201-5/+5
|
* Added supported of 'AUTH LOGIN'Yixin Hao2015-08-201-1/+31
| | | i've been missing a 'r' in previous, lol~
* WIP: create PR - choose branchUnknwon2015-08-081-2/+2
|
* add config options for HELOUnknwon2015-07-031-6/+11
|
* #1067: Deleting users should remove them from collaborator listsUnknwon2015-03-171-1/+1
| | | | - fix delete user but repository watches are not decreased
* Merge pull request #943 from diseaz/mailer-client-cert无闻2015-02-281-0/+8
|\ | | | | Use client certificate for SMTP over TLS
| * Fix "forcing" client certificate for SMTPDmitry Azhichakov2015-02-131-6/+8
| |
| * New feature: SMTP connection may use client certificate.Dmitry Azhichakov2015-02-121-0/+6
| | | | | | | | | | | | New config keys in [mailer] section: - CERT_FILE: path to a certificate file. - KEY_FILE: path to a key file.
* | add error for hello funcGogs2015-02-201-1/+4
| |