[GH-ISSUE #171] autoreply script always fail #156

Closed
opened 2026-02-27 11:10:22 +03:00 by kerem · 1 comment
Owner

Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/171

Originally assigned to: @tonioo on GitHub.

Originally created by Antoine Nguyen on 2011-08-25T09:32:01Z

It seems I have forgotten to adapt this script after the modification I made to the Mailbox model...

Traceback (most recent call last):   
File "/var/www/modoboa/scripts/postfix_autoreply/autoreply.py", line 65, in      
send_autoreply(sender, mbox, armessage)   
File "/var/www/modoboa/scripts/postfix_autoreply/autoreply.py", line 41, in send_autoreply     
s.sendmail(mailbox, sender, msg.as_string())   
File "/usr/lib/python2.6/email/message.py", line 135, in as_string     
g.flatten(self, unixfrom=unixfrom)   
File "/usr/lib/python2.6/email/generator.py", line 84, in flatten     
self._write(msg)   
File "/usr/lib/python2.6/email/generator.py", line 116, in _write     self._write_headers(msg)   
File "/usr/lib/python2.6/email/generator.py", line 162, in _write_headers     
header_name=h, continuation_ws='\t').encode()   
File "/usr/lib/python2.6/email/header.py", line 400, in encode     
newchunks += self._split(s, charset, targetlen, splitchars)   
File "/usr/lib/python2.6/email/header.py", line 285, in _split     
elen = charset.encoded_header_len(encoded)   
File "/usr/lib/python2.6/email/charset.py", line 339, in encoded_header_len     
return len(s) [[TypeError]]: object of type 'Mailbox' has no len()
Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/171 Originally assigned to: @tonioo on GitHub. **Originally created by Antoine Nguyen on 2011-08-25T09:32:01Z** It seems I have forgotten to adapt this script after the modification I made to the Mailbox model... <pre> Traceback (most recent call last): File "/var/www/modoboa/scripts/postfix_autoreply/autoreply.py", line 65, in <module> send_autoreply(sender, mbox, armessage) File "/var/www/modoboa/scripts/postfix_autoreply/autoreply.py", line 41, in send_autoreply s.sendmail(mailbox, sender, msg.as_string()) File "/usr/lib/python2.6/email/message.py", line 135, in as_string g.flatten(self, unixfrom=unixfrom) File "/usr/lib/python2.6/email/generator.py", line 84, in flatten self._write(msg) File "/usr/lib/python2.6/email/generator.py", line 116, in _write self._write_headers(msg) File "/usr/lib/python2.6/email/generator.py", line 162, in _write_headers header_name=h, continuation_ws='\t').encode() File "/usr/lib/python2.6/email/header.py", line 400, in encode newchunks += self._split(s, charset, targetlen, splitchars) File "/usr/lib/python2.6/email/header.py", line 285, in _split elen = charset.encoded_header_len(encoded) File "/usr/lib/python2.6/email/charset.py", line 339, in encoded_header_len return len(s) [[TypeError]]: object of type 'Mailbox' has no len() </pre>
kerem 2026-02-27 11:10:22 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Redmine Admin on 2011-08-25T09:34:10Z

In [58ba1ee996e60db749bb7b9504d7373c3d3d661d]:

#!CommitTicketReference repository="" revision="58ba1ee996e60db749bb7b9504d7373c3d3d661d"
Auto-reply extension was a little bit broken :p
fixed #157 & #158
<!-- gh-comment-id:29813925 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Redmine Admin on 2011-08-25T09:34:10Z** In [58ba1ee996e60db749bb7b9504d7373c3d3d661d]: <pre> #!CommitTicketReference repository="" revision="58ba1ee996e60db749bb7b9504d7373c3d3d661d" Auto-reply extension was a little bit broken :p fixed #157 & #158 </pre>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#156
No description provided.