[xmail] Re: Message ID Numbers?

2005-04-01 Thread Dustin C. Hatch

http://www.php.net/manual/en/function.imap-headers.php

That is the function required to download the headers for the messages. All it 
does is download each message in the order that it is listed, and stores it in 
an array with the keys coorisponding to the number to the left of the message 
in both UIDL and LIST.

Dustin C. Hatch
http://www.dchweb.com

 I would be looking further into the capabilities of pop3 under PHP.
 I would be _very_ surprised if it did not support UIDL.
 
 Rob :-)
 _
 Signature: Live like you'll die tomorrow!
 Reply: I tried your signature out once. It took years off my life!  
  
 
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Dustin C. Hatch
  Sent: Friday, April 01, 2005 10:13 AM
  To: xmail@xmailserver.org
  Subject: [xmail] Re: Message ID Numbers?
  
  
  As I said, PHP does the downloading, so I have no control 
  over what command it uses. I think I can make my program use 
  the message numbers only once, and after that use the UIDL 
  numbers, but I have no control over how they are referenced 
  initially by php.
  
  Dustin C. Hatch
  http://www.dchweb,com
  
   As Davide said, those numbers are only valid for the specific POP3 
   session that you received them in. Future sessions are not 
  guaranteed 
   to have the same numbers for the same messages.
   
   You should use the UIDL numbers. Retrieve them as:
   
   +OK Maildrop has 4 messages (12788 bytes)
   UIDL
   +OK 4
   1 1028745740408.1556.karen
   2 1062432866368.1924.karen
   3 1062433302173.1404.karen
   4 1067127927549.1956.karen
   
   These numbers (1028745740408.1556.karen) are guaranteed not 
  to change 
   between sessions.
   
   
   At 17:48 3/30/2005, Dustin C. Hatch wrote:
   
   Okay, I guess I should clarify what I mean by message ID 
  numbers. PHP 
   downloads the messages over POP3 as you would using telnet. The 
   message IDs that it uses are just like you would using the 
  command line to read mail:
   
   LIST
   +OK 15 70871
   1 5427
   2 1826
   3 16834
   4 4043
   5 3875
   6 2373
   7 15345
   8 1642
   9 3229
   10 2662
   11 3882
   12 3052
   13 3524
   14 1382
   15 1775
   
   The problem is that these IDs do not stay the same if new mail 
   arrives. I may be able to re-write the program to use the 
   Message-ID:  header, if this is unchangeable. If someone 
  has a better suggestion, let me know.
   
   Dustin C. Hatch
   http://www.dchweb.com
   
 On Wed, 30 Mar 2005, Dustin C. Hatch wrote:

 
  I recently developed a webmail client for POP3/POP3S 
  so that I 
  could use native XMail support and webmail. The way 
  the inbox is 
  designed, messages are released in reverse order of their MTA 
  assigned ID number, ie 1 is on the bottom, 2 next, a 
  googol on 
  the top, etc. This worked fine for a while, until I 
  started getting many messages in my inbox.
  Then I started noticing that the messages were no longer 
  arranged in order of their dates. I thought it was no 
  big deal 
  and just modified the code to sort the messages by date after 
  converting them to a UNIX timestamp, etc. This worked for a 
  while. The problem further complicated itself one day while I 
  was reading a message, and, for a reason I now have 
  forgotten, I 
  refrehed the page, and the email changed! A new message had 
  arrived while I was reading and had taken over the 
  old message's 
  ID number. This forced the message I was reading, and all 
  subsequent messages, to increment their IDs.
 
  I was wondering if this is a flaw in XMail, or if that is the 
  way all MTAs work. I have never used anything else, 
  so I don't 
  know if others just generate seemingly random IDs for 
  incoming 
  messages. If it is a flaw, can it be fixed? Because my client 
  fully relies on the message ID number for all functions, like 
  deletion, forwarding, and replying, I need to have 
  messages have constant ID numbers.

 You are aware that POP3 server are not guaranteed to preserve 
 message IDs across session, yes? That's why UIDL have 
  been added 
 to the protocol, and XMail supports it.



 - Davide

 -
 To unsubscribe from this list: send the line 
  unsubscribe xmail 
 in the body of a message to [EMAIL PROTECTED] For general 
 help: send the line help in the body of a message to 
 [EMAIL PROTECTED]


   -
   To unsubscribe from this list: send the line unsubscribe 
  xmail in 
   the body of a message to [EMAIL PROTECTED] For general help: 
   send the line help in the body of a message to 
   [EMAIL PROTECTED]
   
   -
   To unsubscribe from this list: send the line unsubscribe xmail in 
   the body of a message to [EMAIL PROTECTED] For general help: 
   send the line help in the body of a message to 
   [EMAIL 

[xmail] Re: Message ID Numbers?

2005-04-01 Thread Tracy
I wrote a web-based mail access program (very simplistic) a year or so ago. 
Writing a TCP/IP module to handle the POP3 access to the mail isn't that 
hard - might be worth doing to give yourself some flexibility.

At 19:20 3/31/2005, Dustin C. Hatch wrote:

As I said, PHP does the downloading, so I have no control over what 
command it uses. I think I can make my program use the message numbers 
only once, and after that use the UIDL numbers, but I have no control over 
how they are referenced initially by php.

Dustin C. Hatch
http://www.dchweb,com

  As Davide said, those numbers are only valid for the specific POP3 session
  that you received them in. Future sessions are not guaranteed to have the
  same numbers for the same messages.
 
  You should use the UIDL numbers. Retrieve them as:
 
  +OK Maildrop has 4 messages (12788 bytes)
  UIDL
  +OK 4
  1 1028745740408.1556.karen
  2 1062432866368.1924.karen
  3 1062433302173.1404.karen
  4 1067127927549.1956.karen
 
  These numbers (1028745740408.1556.karen) are guaranteed not to change
  between sessions.
 
 
  At 17:48 3/30/2005, Dustin C. Hatch wrote:
 
  Okay, I guess I should clarify what I mean by message ID numbers. PHP
  downloads the messages over POP3 as you would using telnet. The message
  IDs that it uses are just like you would using the command line to 
 read mail:
  
  LIST
  +OK 15 70871
  1 5427
  2 1826
  3 16834
  4 4043
  5 3875
  6 2373
  7 15345
  8 1642
  9 3229
  10 2662
  11 3882
  12 3052
  13 3524
  14 1382
  15 1775
  
  The problem is that these IDs do not stay the same if new mail arrives. I
  may be able to re-write the program to use the Message-ID:  header, if
  this is unchangeable. If someone has a better suggestion, let me know.
  
  Dustin C. Hatch
  http://www.dchweb.com
  
On Wed, 30 Mar 2005, Dustin C. Hatch wrote:
   

 I recently developed a webmail client for POP3/POP3S so that I 
 could use
 native XMail support and webmail. The way the inbox is designed,
 messages are released in reverse order of their MTA assigned ID 
 number,
 ie 1 is on the bottom, 2 next, a googol on the top, etc. This worked
 fine for a while, until I started getting many messages in my inbox.
 Then I started noticing that the messages were no longer arranged in
 order of their dates. I thought it was no big deal and just 
 modified the
 code to sort the messages by date after converting them to a UNIX
 timestamp, etc. This worked for a while. The problem further 
 complicated
 itself one day while I was reading a message, and, for a reason I now
 have forgotten, I refrehed the page, and the email changed! A new
 message
 had arrived while I was reading and had taken over the old 
 message's ID
 number. This forced the message I was reading, and all subsequent
 messages, to increment their IDs.

 I was wondering if this is a flaw in XMail, or if that is the way all
 MTAs work. I have never used anything else, so I don't know if others
 just generate seemingly random IDs for incoming messages. If it is a
 flaw, can it be fixed? Because my client fully relies on the 
 message ID
 number for all functions, like deletion, forwarding, and replying, I
 need to have messages have constant ID numbers.
   
You are aware that POP3 server are not guaranteed to preserve 
 message IDs
across session, yes? That's why UIDL have been added to the 
 protocol, and
XMail supports it.
   
   
   
- Davide
   
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]
   
   
  -
  To unsubscribe from this list: send the line unsubscribe xmail in
  the body of a message to [EMAIL PROTECTED]
  For general help: send the line help in the body of a message to
  [EMAIL PROTECTED]
 
  -
  To unsubscribe from this list: send the line unsubscribe xmail in
  the body of a message to [EMAIL PROTECTED]
  For general help: send the line help in the body of a message to
  [EMAIL PROTECTED]
 
 
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Two Quick Questions

2005-04-01 Thread Mike Harrington
1) Can someone tell me the difference between smtpgw.tab and smtpfwd.tab.
They seem to be exactly the same with the exception of smtpfwd.tab allows
you to specify a port.

2) I'm confused about the SmtpConfig options in the server.tab file.  I'm
assuming that only mail-auth is currently supported, and that it simply
requires all SMTP transactions to use authentication.  So if you have
SmtpConfig enabled, authentication would be required even when receiving a
message for a domain on the server.  While SmtpConfig-XXX.YYY.ZZZ.WWW would
require it specifically for that server.  Am I missing something?

-Mike

-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Need some direction... please

2005-04-01 Thread Kevin Williams
Randy Adams wrote:
 I am not a Perl wiz, wish I was.


Be careful what you wish for. ;)

--
Scanned for viruses by ClamAV
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Need some direction... please

2005-04-01 Thread Randy Adams
grrr what am I doing wrong?

I created a mailproc.tab in a user directory with:

external{tab}0{tab}0{tab}/usr/local/bin/ripmime{tab}-i
@@TMPFILE -d /var/www/html/{tab}{enter}

where
external is the command
0 is the priority
0 is the wait-timeout
/usr/local/bin/ripmime is the program that extracts attachments from
emails
-i @@TMPFILE -d /var/www/html/ where -i is the input file passed from
xmail (@@TMPFILE) and -d /var/www/html/ where the attactments are
saved.

When I send an email with an attacment to that user, I get nadda,
nothing, not even a error log message or anything.

Am I barking up the wrong tree here or what?

regards.


Randy Adams
IS Director
WHBQ Fox 13
Memphis, TN
901.320.1341

 [EMAIL PROTECTED] 04/01/05 12:18PM 
Randy Adams wrote:
 I am not a Perl wiz, wish I was.


Be careful what you wish for. ;)

--
Scanned for viruses by ClamAV
-
Check out ripMIME -
http://www.pldaniels.com/ripmime/ripmime-1.4.0.5.tar.gz 

Randy Adams wrote:

I have a special need of being able to check an incoming email for
the
type of attachment it has (if any).   And if that email contains an
..jpg
..bmp or .gif attachment, I need to copy that attachment to a
directory
located on the same server.

Its used for screening pictures that come into our TV station via
email.  We often have reporters and photographers email pictures from
their camera phone.  The quicker we can have pictures of breaking
news
on the air, the better our coverage of the event.

I am using xmail 1.21 on a Mandrake 10.1 official box.  And Qdig as
the
front end for the editors and graphics dept.

Anyone have a clue where I can start or any advice?

Best regards.




-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Need some direction... please

2005-04-01 Thread Adrian.h
Add another line below your external line as follows:

mailbox

That'll drop mail into the mailbox.


Adrian Hicks
--
Mis  Facilities Manager
Auston Int'l Group Ltd, singapore



- Original Message 
From: xmail@xmailserver.org
To: xmail@xmailserver.org xmail@xmailserver.org
Subject: [xmail] Re: Need some direction... please
Date: 02/04/05 05:35


 grrr what am I doing wrong?

 I created a mailproc.tab in a user directory with:


quot;externalquot;{tab}quot;0quot;{tab}quot;0quot;{tab}quot;/usr/local/bin/ripmimequot;{tab}quot;-i
 @@TMPFILE -d /var/www/html/quot;{tab}{enter}

 where
 quot;externalquot; is the command
 quot;0quot; is the priority
 quot;0quot; is the wait-timeout
 quot;/usr/local/bin/ripmimequot; is the program that extracts
attachments from
 emails
 quot;-i @@TMPFILE -d /var/www/html/quot; where -i is the input file
passed from
 xmail (@@TMPFILE) and -d /var/www/html/ where the attactments are
 saved.

 When I send an email with an attacment to that user, I get nadda,
 nothing, not even a error log message or anything.

 Am I barking up the wrong tree here or what?

 regards.


 Randy Adams
 IS Director
 WHBQ Fox 13
 Memphis, TN
 901.320.1341

 gt;gt;gt; [EMAIL PROTECTED] 04/01/05 12:18PM gt;gt;gt;
 Randy Adams wrote:
 gt; I am not a Perl wiz, wish I was.


 Be careful what you wish for. ;)

 --
 Scanned for viruses by ClamAV
 -
 Check out ripMIME -
 http://www.pldaniels.com/ripmime/ripmime-1.4.0.5.tar.gz

 Randy Adams wrote:

 gt;I have a special need of being able to check an incoming email for
 the
 gt;type of attachment it has (if any).   And if that email contains an
 ...jpg
 gt;..bmp or .gif attachment, I need to copy that attachment to a
 directory
 gt;located on the same server.
 gt;
 gt;Its used for screening pictures that come into our TV station via
 gt;email.  We often have reporters and photographers email pictures from
 gt;their camera phone.  The quicker we can have pictures of breaking
 news
 gt;on the air, the better our coverage of the event.
 gt;
 gt;I am using xmail 1.21 on a Mandrake 10.1 official box.  And Qdig as
 the
 gt;front end for the editors and graphics dept.
 gt;
 gt;Anyone have a clue where I can start or any advice?
 gt;
 gt;Best regards.
 gt;
 gt;
 gt;

 -
 To unsubscribe from this list: send the line quot;unsubscribe xmailquot;
in
 the body of a message to [EMAIL PROTECTED]
 For general help: send the line quot;helpquot; in the body of a message
to
 [EMAIL PROTECTED]

 ---
 [This E-mail was scanned for viruses.]






-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Re: Need some direction... please

2005-04-01 Thread Liron Newman
AFAIR it has to look like this:
external{tab}0{tab}0{tab}/usr/local/bin/ripmime{tab}-i{tab}@@TMPFILE{tab}-d{tab}/var/www/html/{enter}


Randy Adams wrote:

grrr what am I doing wrong?

I created a mailproc.tab in a user directory with:

external{tab}0{tab}0{tab}/usr/local/bin/ripmime{tab}-i
@@TMPFILE -d /var/www/html/{tab}{enter}

where
external is the command
0 is the priority
0 is the wait-timeout
/usr/local/bin/ripmime is the program that extracts attachments from
emails
-i @@TMPFILE -d /var/www/html/ where -i is the input file passed from
xmail (@@TMPFILE) and -d /var/www/html/ where the attactments are
saved.

When I send an email with an attacment to that user, I get nadda,
nothing, not even a error log message or anything.

Am I barking up the wrong tree here or what?

regards.


Randy Adams
IS Director
WHBQ Fox 13
Memphis, TN
901.320.1341

  

[EMAIL PROTECTED] 04/01/05 12:18PM 


Randy Adams wrote:
  

I am not a Perl wiz, wish I was.




Be careful what you wish for. ;)

--
Scanned for viruses by ClamAV
-
Check out ripMIME -
http://www.pldaniels.com/ripmime/ripmime-1.4.0.5.tar.gz 

Randy Adams wrote:

  

I have a special need of being able to check an incoming email for


the
  

type of attachment it has (if any).   And if that email contains an


..jpg
  

..bmp or .gif attachment, I need to copy that attachment to a


directory
  

located on the same server.

Its used for screening pictures that come into our TV station via
email.  We often have reporters and photographers email pictures from
their camera phone.  The quicker we can have pictures of breaking


news
  

on the air, the better our coverage of the event.

I am using xmail 1.21 on a Mandrake 10.1 official box.  And Qdig as


the
  

front end for the editors and graphics dept.

Anyone have a clue where I can start or any advice?

Best regards.






-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]


  



-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]



[xmail] Return-Path oddness

2005-04-01 Thread Kevin Williams
Please forgive me if this is a silly question.

When sending a message from XMail's sendmail, the messages have
'[EMAIL PROTECTED]' as the Return-Path. I can't figure out why this is.
More important is that I want to fix it.

I've been searching the mailing list and Googleing my fingers off trying
to figure this out. Does anyone know how to correct this?

Thanks in advance,

Kevin


--
Scanned for viruses by ClamAV
-
To unsubscribe from this list: send the line unsubscribe xmail in
the body of a message to [EMAIL PROTECTED]
For general help: send the line help in the body of a message to
[EMAIL PROTECTED]