mail mimedecode with multiple mails in one mbox file
mail mimedecode with multiple mails in one mbox file
am 15.11.2009 20:22:34 von Ashley Sheridan
--=-Ax0Cm1WXUpVVHz4KEyV2
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi all,
I'm having a bit of difficulty seeing my way through this. I think I'm
on the right path with mimeDecode, but I can't get it to read all of the
emails in an mbox file which contains 100 emails; it only reads the
first.
I've looked over the docs on pear.php.net, but can't seem to find any
way to get the other 99 emails out!
Does anyone know of any way to do this, or have you done something
similar another way? Just to clarify, I won't be connecting to an
external mailbox for this, so it has to be something I can use on a
local mbox file.
Ps, sorry to anyone who thinks bad of me for opening two threads at
once, but they are quite separate, and valid, and contrary to popular
belief, us men *can* actually multitask!
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-Ax0Cm1WXUpVVHz4KEyV2--
Re: mail mimedecode with multiple mails in one mbox file
am 15.11.2009 20:54:02 von Per Jessen
Ashley Sheridan wrote:
> Hi all,
>=20
> I'm having a bit of difficulty seeing my way through this. I think I'=
m
> on the right path with mimeDecode, but I can't get it to read all of
> the emails in an mbox file which contains 100 emails; it only reads
> the first.
>=20
> I've looked over the docs on pear.php.net, but can't seem to find any=
> way to get the other 99 emails out!
>=20
> Does anyone know of any way to do this,=20
Look up "formail -s"
/Per
--=20
Per Jessen, Zürich (9.0°C)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: mail mimedecode with multiple mails in one mbox file
am 15.11.2009 21:34:49 von Ashley Sheridan
--=-WR/mZKrMb5kRWgnB5sUb
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Sun, 2009-11-15 at 20:54 +0100, Per Jessen wrote:
> Ashley Sheridan wrote:
>=20
> > Hi all,
> >=20
> > I'm having a bit of difficulty seeing my way through this. I think I'm
> > on the right path with mimeDecode, but I can't get it to read all of
> > the emails in an mbox file which contains 100 emails; it only reads
> > the first.
> >=20
> > I've looked over the docs on pear.php.net, but can't seem to find any
> > way to get the other 99 emails out!
> >=20
> > Does anyone know of any way to do this,=20
>=20
> Look up "formail -s"
>=20
>=20
> /Per
>=20
> --=20
> Per Jessen, Zürich (9.0°C)
>=20
>=20
Thanks, that's got me going in the right direction! There just seems to
be no end to what you can do on a Linux console does there?!
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-WR/mZKrMb5kRWgnB5sUb--
Re: mail mimedecode with multiple mails in one mbox file
am 16.11.2009 03:41:47 von Manuel Lemos
Hello,
on 11/15/2009 05:22 PM Ashley Sheridan said the following:
> Hi all,
>
> I'm having a bit of difficulty seeing my way through this. I think I'm
> on the right path with mimeDecode, but I can't get it to read all of the
> emails in an mbox file which contains 100 emails; it only reads the
> first.
>
> I've looked over the docs on pear.php.net, but can't seem to find any
> way to get the other 99 emails out!
>
> Does anyone know of any way to do this, or have you done something
> similar another way? Just to clarify, I won't be connecting to an
> external mailbox for this, so it has to be something I can use on a
> local mbox file.
The mbox format is not exactly compatible with the regular MIME message
format.
Anyway, you may use the MIME parser class which supports parsing single
MIME messages as well multi-message messages in the mbox format. Just
set the mbox class variable to 1.
http://www.phpclasses.org/mimeparser
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: mail mimedecode with multiple mails in one mbox file
am 16.11.2009 09:17:33 von Per Jessen
Ashley Sheridan wrote:
> On Sun, 2009-11-15 at 20:54 +0100, Per Jessen wrote:
>=20
>> Ashley Sheridan wrote:
>>=20
>> > Hi all,
>> >=20
>> > I'm having a bit of difficulty seeing my way through this. I think=
>> > I'm on the right path with mimeDecode, but I can't get it to read
>> > all of the emails in an mbox file which contains 100 emails; it
>> > only reads the first.
>> >=20
>> > I've looked over the docs on pear.php.net, but can't seem to find
>> > any way to get the other 99 emails out!
>> >=20
>> > Does anyone know of any way to do this,
>>=20
>> Look up "formail -s"
>>=20
>>=20
>> /Per
>>=20
>> --
>> Per Jessen, Zürich (9.0°C)
>>=20
>>=20
>=20
>=20
> Thanks, that's got me going in the right direction! There just seems
> to be no end to what you can do on a Linux console does there?!
Suggestions to the contrary would be heresy. :-[
formail has helped me a number of times when dealing with a mailbox
file, I'm pretty certain it'll do what you want.
/Per
--=20
Per Jessen, Zürich (10.1°C)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php