pyramid_mailer - qp

96 views
Skip to first unread message

Jonathan Vanasco

unread,
Aug 8, 2012, 7:46:10 PM8/8/12
to pylons-discuss
i'm trying to get pyramid_mailer working

i've got messages going into a maildir fine

the qp commant doesn't seem to do anything though

`qp --debug-smtp /path/to/maildir`

gives me nothing. nothing in the local mail.log either

i've tried setting a username , pass, hostname, forcetls , etc on the
commandline too. nothing appears on my logs.

anyone have insight ?

Jonathan Vanasco

unread,
Aug 8, 2012, 8:06:41 PM8/8/12
to pylons-discuss
after digging around code a lot, here's what i figured out:

i call pyramid_mailer's send_to_queue , which seems to place the
message in the maildir/tmp

the repoze.sendmail.queue console routine ( which is wrapped by qp )
calls the repoze.sendmail.maildir routine to loop through messages --
which only happens to the maildir/cur maildir/new directories

anyone know how/why my messages are in maildir/tmp and what i can do
to have them migrated into new/cur ? that should solve my problems

Marco

unread,
Aug 9, 2012, 12:51:52 AM8/9/12
to pylons-...@googlegroups.com
Did yo try setting mail.queue_path in your .ini?

Robert Forkel

unread,
Aug 9, 2012, 1:29:19 AM8/9/12
to pylons-...@googlegroups.com
This is not what I'm seeing with
pyramid-mailer==0.9
repoze.sendmail==3.2
Messages are placed in maildir/new and are picked up by qp ok.
regards
robert
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
>

Jonathan Vanasco

unread,
Aug 9, 2012, 10:16:56 AM8/9/12
to pylons-discuss
i went through all the code, this seems to be a documentation bug.

the send_to_queue command appears to be transactional, although it's
not stated as such in the docs

pyramid_mailer.Mailer.send_to_queue()
calls...

repoze.sendmail.delivery.QueuedMailDelivery().send()
calls...

which subclasses the `send` from
repoze.sendmail.delivery.AbstractMailDelivery() -- which is
transaction aware

the delivery mechanism also seems to rename the file from maildir/tmp
to maildir/new when ready. ( btw, there also seems to be no cleanup
code in there )

the send_immediately command bypasses all the transaction code
Reply all
Reply to author
Forward
0 new messages