merhaba,

biraz araştırdıktan sonra cevabı courier manual larında buldum.

http://www.courier-mta.org/maildir.html

"Adding new mail to maildirs" kısmından;

The name of the file in new should be "time.MusecPpidVdevIino.host,S=*cnt*",
or "time.MusecPpidVdevIino_unique.host,S=*cnt*". "dev" is the message's
device number, "ino" is the message's inode number (from the previous fstat
(2) call); and "cnt" is the message's size, in bytes.

burada time değerinin hangi formata ait olduğunu araştırdım localtime olarak
kaydediliyormuş.

komut satırından bu formatta zamanı şu şekilde alabiliyoruz.

# date +%s gibi.

sonrasında python da yazacağım programım için bu formatı

import time

zaman=time.time()
zaman=str(zaman).split('.')
zaman=zaman[0]

bu şekilde kullanabiliyormuşuz.


2007/12/8 Mesut GÜLNAZ <[EMAIL PROTECTED]>:

>
>
> -rw-------  1 vpopmail  vchkpw 4766 Dec  8 16:56
> 1197125775.21229.ev.test.com,S=4766
>
>
>
> 1197125775.21229: zaman damgası: TAI (Temps Atomique International)
> timestamps of the time at which the file was 
> started.<http://1197125775.21229.ev.test.com>
>
> ev.test.com <http://1197125775.21229.ev.test.com> : bu makinenin adı
>
> S=4766 = Size In Bytes: mailin byte cinsinden değeri
>
>
>
> Yanlışım varsa arkadaşlar düzeltsinler lütfen.
>
>
>
> *From:* Ali Okan YÜKSEL [mailto:[EMAIL PROTECTED]
> *Sent:* Saturday, December 08, 2007 5:51 PM
> *To:* qmail@lists.enderunix.org
> *Subject:* [qmail] qmail - mail dosya adlarındaki sayılar
>
>
>
> Merhaba arkadaşlar,
>
> FreeBSD 5.4 sunucu üzerinde Qmail ve Vpopmail kullanmaktayım.
>
> Kaydedilen mail dosya adlarının neye göre oluşturulduğunu biliyor musunuz?
>
> Örneğin,
>
> # ls -al
> -rw-------  1 vpopmail  vchkpw 4766 Dec  8 16:56
> 1197125775.21229.ev.test.com,S=4766
> -rw-------  1 vpopmail  vchkpw 1519 Dec  8 16:57
> 1197125862.22558.ev.test.com,S=1519
> -rw-------  1 vpopmail  vchkpw 3959 Dec  8 17:04
> 1197126253.28256.ev.test.com,S=3959
> -rw-------  1 vpopmail  vchkpw 3074 Dec  8 17:05
> 1197126310.29282.ev.test.com,S=3074
> -rw-------  1 vpopmail  vchkpw 1112 Dec  8 17:21
> 1197127276.44356.ev.test.com,S=1112
>
> Bu çıktıda 1197127276.44356.ev.test.com,S=1112 dosya adındaki sayıların
> neye göre atandığını öğrenmek istiyorum. qmail manual ını biraz kurcaladım,
> listede de sormak istedim.
>
> teşekkürler.
> --
> http://www.knyksl.com/
>



-- 
http://www.knyksl.com/

Répondre à