getmail

Received ヘッダにどのメールアドレス宛てかを追加したかった。(Sieve で振り分けできるように)
--- getmail-4.30.1/getmailcore/_retrieverbases.py.orig  2012-07-13 15:53:40.000000000 -0400
+++ getmail-4.30.1/getmailcore/_retrieverbases.py 2012-07-13 15:57:32.000000000 -0400
@@ -401,8 +401,9 @@
# Shouldn't happen
self.log.warn('unexpected peer address format %s', str(serveraddr))
self.remoteaddr = str(serveraddr)
- self.received_from = '%s (%s)' % (self.conf['server'],
- self.remoteaddr)
+ self.received_from = '%s (%s) for <%s>' % (self.conf['server'],
+ self.remoteaddr,
+ self.conf['username'])

def __str__(self):
self.log.trace()