Skip to content

Commit

Permalink
区分两个不同的to
Browse files Browse the repository at this point in the history
区分两个不同的to
  • Loading branch information
yumusb committed Dec 17, 2024
1 parent 14ef6c2 commit 638b60b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,13 @@ func (s *Session) Data(r io.Reader) error {
logrus.Errorf("Failed to parse email: %v - UUID: %s", err, s.UUID)
return err
}
logrus.Infof("Received email: From=%s To=%s Subject=%s - UUID: %s", env.GetHeader("From"), env.GetHeader("To"), env.GetHeader("Subject"), s.UUID)
logrus.Infof("Received email: From=%s HeaderTo=%s ParsedTo=%v Subject=%s - UUID: %s",
env.GetHeader("From"),
env.GetHeader("To"),
s.to,
env.GetHeader("Subject"),
s.UUID)

var attachments []string
for _, attachment := range env.Attachments {
disposition := attachment.Header.Get("Content-Disposition")
Expand Down
Empty file added test.go
Empty file.

0 comments on commit 638b60b

Please sign in to comment.