procmail
[Top] [All Lists]

headerless emails through procmail

2002-01-06 16:47:49
hi folks,

i keep getting a message from my POP3s daemon (courier) about headerless
emails, so i went VERBOSE on procmail and inspected postfix logs to
discover one such instance:





Jan  7 00:17:10 seamus postfix/smtpd[4796]: connect from
  murphy.debian.org[216.234.231.6]
Jan  7 00:17:11 seamus postfix/smtpd[4796]: 23C17E018:
  client=murphy.debian.org[216.234.231.6]
Jan  7 00:17:12 seamus postfix/cleanup[4797]: 23C17E018:
  message-id=<E16NMO7-0001nw-00(_at_)mail(_dot_)home>
Jan  7 00:17:12 seamus postfix/cleanup[4797]: 23C17E018:
  resent-message-id=<7iuCXC(_dot_)A(_dot_)HPF(_dot_)BjNO8(_at_)murphy>
Jan  7 00:17:12 seamus postfix/smtpd[4796]: disconnect from
  murphy.debian.org[216.234.231.6]
Jan  7 00:17:12 seamus postfix/qmgr[4786]: 23C17E018:
  
from=<bounce-debian-user=mass+deb-user=madduck(_dot_)net(_at_)lists(_dot_)debian(_dot_)org>,
  size=3181, nrcpt=1 (queue active)
Jan  7 00:17:18 seamus postfix/local[4870]: 23C17E018:
  to=<mass+deb-user(_at_)madduck(_dot_)net>, relay=local, delay=7,
  status=sent ("|/usr/bin/procmail")




the message had size 3181 and was delivered to procmail.

now the procmail log:






procmail: Assigning "MAILDIR=/home/madduck/mass/Mail"
procmail: [5306] Mon Jan  7 00:17:18 2002
procmail: Assigning "SPOOL=/home/madduck/mass/.maildir/"
procmail: Assigning "LINEBUF=16384"
procmail: Assigning "DEFAULT=/home/madduck/mass/Mail/mass/"
procmail: Assigning "UMASK=0007"
procmail: Assigning "INCLUDERC=/home/madduck/mass/.procmail/rc.pgp"
procmail: Match on ! "^Content-Type: message/"
procmail: Match on ! "^Content-Type: multipart/"
procmail: Match on ! "^Content-Type: application/pgp"
procmail: No match on "^-----BEGIN PGP MESSAGE-----"
procmail: Match on "^-----BEGIN PGP SIGNED MESSAGE-----"
procmail: Match on "^-----BEGIN PGP SIGNATURE-----"
procmail: Match on "^-----END PGP SIGNATURE-----"
procmail: Executing " formail -i "Content-Type: application/pgp; format=text;
  x-action=sign""
procmail: Assigning "LASTFOLDER=/home/madduck/mass/.maildir/new/
  1010359038.5306_0.seamus"
procmail: Assigning "INCLUDERC=/home/madduck/mass/.procmail/rc.daemon"
procmail: No match on "^From:.*AUTOLOG-DAEMON@"
procmail: No match on "^Subject: Bug#[0-9]*: Acknowledgement"
procmail: No match on "^From:.*MAILER-DAEMON@"
procmail: No match on "^From:.*postmaster@"
procmail: No match on 
"^From:(_dot_)*mailman-owner(_at_)lists\(_dot_)madduck\(_dot_)net"
procmail: No match on 
"^From:(_dot_)*-admin(_at_)lists\(_dot_)madduck\(_dot_)net"
procmail: No match on "^From:.*madduck@(.*\.)?madduck\.net"
procmail: No match on "^From:.*postmaster@(.*\.)?madduck\.net"
procmail: No match on "^From:.*madduck@(.*\.)?madduck\.net"
procmail: Assigning "LASTFOLDER=/home/madduck/mass/Mail/mass/new/
  1010359038.5306_1.seamus"
  Folder: /home/madduck/mass/Mail/mass/new/1010359038.5306_1.seamus           0



notice the 0 at the end of the last line. the file written into the
Maildir is of size 0. but postfix did deliver it correctly...

okay, so while writing this message, i noticed the PGP matching. that's
this recipe:




# handle old-style pgp messages
:0
* !^Content-Type: message/
* !^Content-Type: multipart/
* !^Content-Type: application/pgp
{
  :0 fBw
  * ^-----BEGIN PGP MESSAGE-----
  * ^-----END PGP MESSAGE-----
  | formail -i "Content-Type: application/pgp; format=text; x-action=encrypt"

  :0 fBw
  * ^-----BEGIN PGP SIGNED MESSAGE-----
  * ^-----BEGIN PGP SIGNATURE-----
  * ^-----END PGP SIGNATURE-----
  | formail -i "Content-Type: application/pgp; format=text; x-action=sign"
}



which is pretty much verbatim from e.g. [1]

  1. http://www.linuxdoc.org/HOWTO/Mutt-GnuPG-PGP-HOWTO-8.html

is this thing kaputt? i mean it's designated to be a filter through the
f flag, but don't i need that in the top-level :0 as well?


any help appreciated. especially if someone could attach a gzipped
version of that email (id: E16NMO7-0001nw-00(_at_)mail(_dot_)home) to an email 
to
me. gzipped so as to make sure that it passes the filters...

thanks,

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net(_at_)madduck
  
"friendships last when each friend thinks he has
 a slight superiority over the other."
                                                    -- honore debalzac

Attachment: pgpCpweqjJJmT.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>