<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 26, 2015, at 11:18 AM, Terry O'Leary <<a href="mailto:toleary@wth.com" class="">toleary@wth.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class="">We have 14 different queues so using fetchmail to manage the email accounts is useful for us. But that is where the problem lies as well I think. Fetchmail doesn’t seem to be deleting the email from the inbox consistently. Sometimes it works and sometimes it doesn’t. I have gone the route of working with the Network Engineering team to see if there were any configuration changes or updates to exchange that may have done but came up with nothing. The emails get to their respective inboxes, then fetchmail (I have running in a crontab every minute) executes to pick up and send any emails to RT mailgate.:<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class="">Here is an example:<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class="">poll<span class="Apple-converted-space"> </span><a href="http://imap.corp.test.com/" style="color: purple; text-decoration: underline;" class="">imap.corp.test.com</a><span class="Apple-converted-space"> </span>proto IMAP and port 143:<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class=""># Team Queue<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class="">username team password 123456 mda "/opt/rt4/bin/rt-mailgate --url<span class="Apple-converted-space"> </span><a href="http://test/" style="color: purple; text-decoration: underline;" class="">http://test</a><span class="Apple-converted-space"> </span>--queue 'Team Requests' --action correspond"<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class="">username team-comments password 123456 mda "/opt/rt4/bin/rt-mailgate --url<span class="Apple-converted-space"> </span><a href="http://test/" style="color: purple; text-decoration: underline;" class="">http://test</a><span class="Apple-converted-space"> </span>--queue 'Team Requests' --action comment"<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span style="color: rgb(31, 73, 125);" class="">I know this isn’t a fetchmail forum, but any input would be gladly taken.</span></div></div></div></blockquote><div><br class=""></div></div><div class=""><div>Just in case you are - I wouldn't cron it since you'll get duplicate processes checking the mailbox at the same time which would account for duplicates. If you have to cron it though use flock to make sure more than one is never running at the same time:</div><div><br class=""></div><div><font face="Courier New" class="">/usr/bin/flock -n /tmp/fetchmail.lockfile /path/to/fetchmail -blahblahblah</font></div><div><br class=""></div><div>I'm assuming you start fetchmail as a daemon instead of cron'd though. If you are running fetchmail as a daemon make sure you use --uidl when starting the daemon in the /etc/init.d (or equivalent) something like this:</div><div><br class=""></div><div><font face="Courier New" class="">/usr/bin/fetchmail --uidl -f /etc/fetchmail.conf</font></div><div><br class=""></div><div>-U | --uidl<div class=""><br class=""></div><div class=""> (Keyword: uidl)</div><div class=""> Force UIDL use (effective only with POP3). Force client-side tracking of 'newness' of messages</div><div class=""> (UIDL stands for "unique ID listing" and is described in RFC1939). Use with 'keep' to use a</div><div class=""> mailbox as a baby news drop for a group of users. The fact that seen messages are skipped is</div><div class=""> logged, unless error logging is done through syslog while running in daemon mode. Note that</div><div class=""> fetchmail may automatically enable this option depending on upstream server capabilities. Note</div><div class=""> also that this option may be removed and forced enabled in a future fetchmail version. See also:</div><div class=""> —idfile.</div><div class=""><br class=""></div></div></div><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Landon Stewart : <a href="mailto:lstewart@iweb.com" class="">lstewart@iweb.com</a><br class="">Lead Specialist, Abuse and Security Management<br class="">Spécialiste principal, gestion des abus et sécurité<br class=""><a href="http://iweb.com" class="">http://iweb.com</a> : +1 (888) 909-4932</div>
</div>
<br class=""></body></html>