32 $this->_sender = $sender;
43 $headers = $message->getHeaders();
46 $headers->addPathHeader(
'X-Swift-Return-Path', $message->getReturnPath());
49 $message->setReturnPath($this->_sender);
62 $headers = $message->getHeaders();
64 if ($headers->has(
'X-Swift-Return-Path')) {
65 $message->setReturnPath($headers->get(
'X-Swift-Return-Path')->getAddress());
66 $headers->removeAll(
'X-Swift-Return-Path');