Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [w. reg.] Pobieranie content-type z maila
Seth
post
Post #1





Grupa: Przyjaciele php.pl
Postów: 2 335
Pomógł: 6
Dołączył: 7.03.2002

Ostrzeżenie: (0%)
-----


Pisze wyrazenie regularne do pobrania Content-Typea z czystego maila i natrafilem na maly problem.

Mozliwe ustawienia Content-Type to:
Kod
Content-Type: multipart/alternative; boundary="jh2x4CpaBw6eoB8"

Kod
Content-Type: multipart/alternative; boundary=jh2x4CpaBw6eoB8

Kod
Content-Type: multipart/alternative;
     boundary="jh2x4CpaBw6eoB8"

Kod
Content-Type: multipart/alternative;
     boundary=jh2x4CpaBw6eoB8

Kod
Content-Type: multipart/alternative;
boundary="jh2x4CpaBw6eoB8"

Kod
Content-Type: text/plain; charset="utf-8"

Kod
Content-Type: text/plain;
     charset="utf-8"

itd...

Narazie mam takei wyrazenie:
Kod
/^content-type: (.*);$/im

ktore pobiera mi ta pierwsza opcje (multipart/alternatice itp.)


Nie wiem jednak jak sie zabrac do drugiej czesci: boundary i charset.

Moze ma ktos na to pomysl ?
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 14:30