forked from External/ergo
set the time of a multiline message at BATCH -
This commit is contained in:
parent
5d662742b9
commit
6e2b2a44b8
2 changed files with 8 additions and 6 deletions
|
|
@ -42,9 +42,6 @@ func MakeMessage(original string) (result SplitMessage) {
|
|||
}
|
||||
|
||||
func (sm *SplitMessage) Append(message string, concat bool) {
|
||||
if sm.Time.IsZero() {
|
||||
sm.Time = time.Now().UTC()
|
||||
}
|
||||
if sm.Msgid == "" {
|
||||
sm.Msgid = GenerateSecretToken()
|
||||
}
|
||||
|
|
@ -54,6 +51,10 @@ func (sm *SplitMessage) Append(message string, concat bool) {
|
|||
})
|
||||
}
|
||||
|
||||
func (sm *SplitMessage) SetTime() {
|
||||
sm.Time = time.Now().UTC()
|
||||
}
|
||||
|
||||
func (sm *SplitMessage) LenLines() int {
|
||||
if sm.Split == nil {
|
||||
if sm.Message == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue